Pre-configure fan PWM frequency
vwegert last edited by
I'm apparently facing some kind of mental blockage here... I have the situation that my part cooling fan only works if it is set to 100%. From what I've read so far, that is most likely a PWM frequency issue (can't try that at the moment because I don't want to disturb a long-running print). From https://duet3d.dozuki.com/Wiki/Gcode#Section_M106_Fan_On, I understand that the PWM frequency is set when turning the fan on. Do i need to run my generated G-Code file from the slicer through a post-processing script to have the F parameter added to each and every M106 command or is there a way to preconfigure the PWM frequency once during system startup?
Phaedrux last edited by
You can configure the PWM frequency in the M106 commands in config.g so they are applied at boot up. No need for slicer changes or post processing.
Veti last edited by
some fans dont like being powered by pwm signals though.
They either run at full speed or they dont run at all.
wilriker last edited by
@vwegert I know that problem. I have to lower the PWM frequency down to 10Hz to get it to run decently. Use
M106 P0 S0 F10 C"Part Cooling Fan"
config.gas @Phaedrux already mentioned.
P0stands for the fan port 0
S0says leave the fan off at startup of the machine
F10sets the PWM frequency in Hz
C"name"assigns a name (optional)
Adjust these to your requirements.