I just got my first smoothie board. I have almost everything working properly, but I’ve run into a snag with fan control.
Is it possible to control the hotend cooler on P2.4 while independently controlling the print cooler fan(s) on P2.6? I have tried duplicating the switch.fan commands and changed the pin, 2.4 and 2.6 respectively, but it seems like one is overwriting the other and only controlling the hotend fan.
# Switch module for fan control
switch.fan.enable true # Enable this module
switch.fan.input_on_command M106 # Command that will turn this switch on
switch.fan.input_off_command M107 # Command that will turn this switch off
switch.fan.output_pin 2.4 # Pin this module controls
switch.fan.output_type pwm # PWM output settable with S parameter in the input_on_comand
#switch.fan.max_pwm 255 # Set max pwm for the pin default is 255
#switch.misc.enable true # Enable this module
#switch.misc.input_on_command M42 # Command that will turn this switch on
#switch.misc.input_off_command M43 # Command that will turn this switch off
#switch.misc.output_pin 2.4 # Pin this module controls
#switch.misc.output_type digital # Digital means this is just an on or off pin
Switch module for fan control
switch.fan.enable true # Enable this module
switch.fan.input_on_command M106 # Command that will turn this switch on
switch.fan.input_off_command M107 # Command that will turn this switch off
switch.fan.output_pin 2.6 # Pin this module controls
switch.fan.output_type pwm # PWM output settable with S parameter in the input_on_comand
#switch.fan.max_pwm 255 # Set max pwm for the pin default is 255
#switch.misc.enable true # Enable this module
#switch.misc.input_on_command M42 # Command that will turn this switch on
#switch.misc.input_off_command M43 # Command that will turn this switch off
#switch.misc.output_pin 2.6 # Pin this module controls
#switch.misc.output_type digital # Digital means this is just an on or off pin
Any help would be greatly appreciated.
Thanks,
Bg
Imported from wikidot
I am looking into the same thing. not there yet.
I think you have to rename the 2nd module to something else like fan2, so switch.fan2.enable … This is how the hotend moduless are named. You should also be using different M commands.
Let me know if this works
You need to rename the second fan module to something like fan2. You will also need to add a sub code to the M command. Lastly, you need to have something call it.
So, for the nozzle fan, have this:
switch.fan.enable true # Enable this module
switch.fan.input_on_command M106 # Command that will turn this switch on
switch.fan.input_off_command M107 # Command that will turn this switch off
switch.fan.output_pin 2.6 # Pin this module controls
switch.fan.output_type pwm # PWM output settable with S parameter in the input_on_comand
switch.fan.max_pwm 255 # Set max pwm for the pin default is 255
For your hotend cooler, use this:
switch.hfan.enable true # Enable this module
switch.hfan.input_on_command M106 # Command that will turn this switch on
switch.hfan.input_off_command M107 # Command that will turn this switch off
switch.hfan.subcode 1 #
switch.hfan.output_pin 2.4 # Pin this module controls
switch.hfan.output_type digital #
switch.hfan.startup_state false #
Then also add something like this:
temperatureswitch.hotend.enable true #
temperatureswitch.hotend.designator T0 #
temperatureswitch.hotend.switch hfan #
temperatureswitch.hotend.threshold_temp 60.0 #
temperatureswitch.hotend.heatup_poll 15 #
temperatureswitch.hotend.cooldown_poll 60 #
This will cause the hotend fan to kick on at 60C and turn off when it drops below 60C — automatically. If you want to manually turn the hotend fan on or off, you can enter into the terminal M106.1 or M107.1 respectively.
*Please* don’t call the MKS SBASE a smoothieboard, it’s not. Smoothieboard is a specific board, and the “smoothie” namespace is reserved for boards that respect the community’s work and the project.
You probably want to read : http://smoothieware.org/troubleshooting#somebody-refused-to-help-me-because-my-board-is-a-mks-what-s-that-all-about
About your problem looks like you got an answer.