Welcome! Log In Create A New Profile

Advanced

Fan only runs at full speed on Marlin

Posted by Wisar 
Fan only runs at full speed on Marlin
April 21, 2014 02:32AM
I have a Prusa I3 that I am driving with Marlin. I have a cooling fan mounted on the extruder assembly but am unable to get it to run at other than full speed. I use slic3r to generate G-code and can see the M106 S99 command but it is being ignored. At the console I can get the fan to run but only if I exclude the S99 (speed) part of the command. Without the speed component the Marlin code defaults to full speed (PWM 255). Any ideas?

Regards
Re: Fan only runs at full speed on Marlin
April 21, 2014 06:29AM
Where is the fan wired to?


_______________________________________
Waitaki 3D Printer
Re: Fan only runs at full speed on Marlin
April 21, 2014 07:20AM
Doop! Crucial missing data. D9 on a RAMPS 1.4 board...is that just a 12V supply? How should it be wired?

Thanks
Re: Fan only runs at full speed on Marlin
April 21, 2014 09:03AM
d9 is PWM capable

unfortunately not all fans are able to be PWM....

But some just require full on to start then you can reduce it after


try a m106 s255 then a m106 s128. see if it will do that
Re: Fan only runs at full speed on Marlin
April 21, 2014 01:52PM
Starting at full speed then issuing a second command for a slower speed results in the fan turning itself off! I have another fan that I will try ...or...I will try hooking up the fan that I want to use to another motor driver and see if it plays with PWM. In the meantime I am printing a fan duct to try and force the air flow where I want it and vent some of the 'extra' to where it does not matter.

Cheers,
Wisar
Re: Fan only runs at full speed on Marlin
April 22, 2014 02:07AM
Some people have had good success with putting a small capacitor across the fan terminals, mentioned [forums.reprap.org]

also [blog.arcol.hu]
Re: Fan only runs at full speed on Marlin
April 22, 2014 02:37AM
Thanks Dust, will try that as soon as a couple prints of PLA stuff finish. Running the fan at 100% works for PLA but I need more control for ABS to keep the bed from cooling to the unstick point! Will post a result when I have one.

Cheers,
Wisar
Re: Fan only runs at full speed on Marlin
April 23, 2014 02:10AM
Capacitor did the trick. Seems to require an electrolytic capacitor of a reasonably low capacitance. E.g. 47uf worked but at a 1000uf the fan ran but at full tilt (without the capacitor it would not run at all unless asked to run at full). Did not seem to care about the voltage specification? In any case the fan now responds to the PWM speed command.

Thanks for the help,
Wisar
Re: Fan only runs at full speed on Marlin
July 27, 2015 12:51AM
Wisar, can you explain what you were trying to say about the different capacitor sizes?

Thanks!
Sorry, only registered users may post in this forum.

Click here to login