New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set auto fan pins to RAMPS D8 pin #4579
Comments
What version of Marlin are you using? |
Marlin 1.10 RC7 On Thu, Aug 11, 2016 at 9:58 AM, Scott Lahteine notifications@github.com
|
Do you experience the same issue with Try with |
hmm... he might be on to something one output cant rarely be tied to more than one pin in the pins file... maybe test this theory by setting all FAN_PIN to -1 just a thought |
@boelle That's one way, but I have a technique to see exactly what's going on. I use the given config, and then I add pre-compiler code that checks the values of the pins I'm interested in. When I compile, I can see whether they are set to expected values or something else. If needed, I can add code to print out the values of all the pins at runtime. |
I have upgraded to Thank you very much for your help, thinyhead. |
Your configuration is good, and everything seems to be setting up correctly, so the #if HAS_AUTO_FAN_0
#if EXTRUDER_0_AUTO_FAN_PIN == FAN1_PIN
SET_OUTPUT(EXTRUDER_0_AUTO_FAN_PIN);
#else
pinMode(EXTRUDER_0_AUTO_FAN_PIN, OUTPUT);
#endif
#endif |
I just did a test of |
@diegotrap had any chance to test this? |
I have a fan connected with the right polarity to the D8 RAMPS pin. I have changed the fan, measured with a multimeter and there is no signal in that output. Should I try all the new commits? |
I have tested the latest version of I still can't make it work. I have used two different RAMPS, checked all the hardware part and have not being able to get the fan to turn on. Have you made it work with my same settings in a physical machine? |
More or less. I was easily able to override the pin and have it function on my Delta, which is also a RAMPS 1.4 variant. As I wrote above:
I didn't borrow all your settings, but there aren't any other settings that could prevent the auto fan code from being invoked. You only need to set Try this: Scroll down to the #if HAS_AUTO_FAN
+ #error "Yep! This code is being compiled!"
void Temperature::checkExtruderAutoFans() {
. . . |
I had the same problem. But when I changed the heated bed pin in pins_RAMPS_13.h to -1 the fan turned on.
|
@Jochem77 What is your |
I have 2 printers: one with a Megatronics v3.1 and one with Ramps 1.4. I have no heated bed. Extruder is connected to MOSFET D10, filament fan to MOSFET D9 and E3D extruder fan to MOSFET D8. |
@Jochem77 I see. Since RC6 (and RC7) this has changed. Marlin |
@Jochem77 @thinkyhead maybe close this one as it seems fixed? |
I couldn't fix my issue and tried several times with your proposed solutions. Nevertheless, I don't have much more time to test this and I understand that the thread is closed. I'll try to have a look again in the future, thanks for your help anyways :) |
@diegotrap If you are able to collect more diagnostics on your end I'm sure we can track it down. The feature still works for me with the current #define EXTRUDER_0_AUTO_FAN_PIN FAN1_PIN The pin gets defined and then the auto fan just works. |
I have had the exactly the same problem and spent few hours solving it. It turned out that there was no input power on 10A 12V which is used by D8's MOSFET. I just connected 10A input to 5A and the problem gone. |
Thank you very much a29er! That was the issue, I am sure. Since I wasn't
using a heated bed I hadn't connected the 10A power line.
Thank you very much for your help and for taking the time to share it here
with the community.
…On Wed, Jun 7, 2017 at 9:22 PM, a29er ***@***.***> wrote:
I have had the exactly the same problem and spent few hours solving it. It
turned out that there was no input power on 10A 12V which is used by D8's
MOSFET. I just connected 10A input to 5A and the problem gone.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4579 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEE56ZOowPh-Dkjb7l_Ul_jRrkGHt_4Zks5sBvhrgaJpZM4JgZ6a>
.
|
Hi guys! Do you know how to enable SOFT_PWM for AUTO_FAN? In my and in Configurations.h : but the FAN_1 spin with standard 500Hz frequency.. I have tried to define FAST_PWM_FAN, but it does not change the PWM frequency too. If I use #define E0_AUTO_FAN_PIN -1 in Configurations_adv.h then changing the frequency works for FAN1_PIN |
The number of rotations per second of a fan does not depend on the pwm-frequency. It depends only on the relation of the on- to the off-phases - not on how often the cycle is repeated. |
Hi, AnHardt. With 500Hz I do not mind the rps of the fan, but PWM frequency on FAN1_PIN Output. The FAN_SOFT_PWM or FAST_PWM_FAN does not work for FAN_PIN assigned to AUTO_FAN_PIN. It seems that If I define AUTO_FAN it runs only with standard analogWrite(). I want to change pwm frequency cause this 500hz are very annoying.. |
Correct. At this time |
What a pity.. Then I have an another solution for me, but I need your help. I want to turn the FAN1 on by turning on my 3D printer. Can I just set the pwm value for that FAN_PIN in loop() function? What for function do I need for setting the pwm value if I want to use SOFT_PWM? Thanks in advance! Edit: |
That's a fine solution. To use fewer CPU cycles, you might move it to |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
2 similar comments
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
RAMPS_D9_PIN: FAN_PIN (part cooling fan) RAMPS_D8_PIN: FAN1_PIN (extruder / hot end fan), set as auto fan pin to turn on the fan when hot end reaches 50°C. MarlinFirmware/Marlin#3234 (comment) MarlinFirmware/Marlin#4579 (comment) https://www.youtube.com/watch?v=0W3VQpL0e8g Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
RAMPS_D9_PIN: FAN_PIN (part cooling fan) RAMPS_D8_PIN: FAN1_PIN (extruder / hot end fan), set as auto fan pin to turn on the fan when hot end reaches 50°C. MarlinFirmware/Marlin#3234 (comment) MarlinFirmware/Marlin#4579 (comment) https://www.youtube.com/watch?v=0W3VQpL0e8g Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I have set the
Configuration_adv.h
parameters to be able to use the D8 (MOSFET) port in my RAMPS 1.4 to connect an extruder fan. This fan has to be ON whenever the hotend is working (typical case for an all metal extruder). These are the resulting lines of code:This doesn't turn on the fan when the temperature is above 5ºC (always). I have tested it in both RAMPS_14_EFB and RAMPS_14_EFF pin maps.
I think the problem is that pin number 8 is already been used for the bed/other fan and this setting is overriden, but it should be a way to make it work. Many printers use a noisy hotend fan and it would be a great way to turn it off without disconnecting the whole printer.
The text was updated successfully, but these errors were encountered: