# automatically toggle a switch at a specified temperature
# useful to turn on a fan or water pump to cool the hotend
temperatureswitch.hotend.enable true #
temperatureswitch.hotend.switch fan2 # select which MOSFET to use, must match a switch configuration (fan2 below)
temperatureswitch.hotend.designator T # first character of the temperature control designator to use as the temperature sensor to monitor
temperatureswitch.hotend.threshold_temp 60.0 # temperature to turn on (if rising) or off the switch
temperatureswitch.hotend.heatup_poll 15 # poll heatup at 15 sec intervals
temperatureswitch.hotend.cooldown_poll 60 # poll cooldown at 60 sec intervals
switch.fan2.enable true # enable
switch.fan2.input_on_command M42 # gcode to turn on
switch.fan2.input_off_command M43 # gcode to turn off
switch.fan2.output_pin 2.4 # pin that controls the fan
switch.fan2.output_type pwm # pwm output settable with S parameter in the input_on_comand
#switch.fan2.max_pwm 110 # set max pwm for the pin default is 255 (12v fan on 24v PSU)I want to run a 12v fan blowing across the Smoothie system board that should turn on when the stepper motors are enabled. And this printer uses a 24v PSU so I'm thinking I would rather pwm limit my 12v fan.
I'd rather do this than tie two fans together, or use resistor, etc. because the mosfet output is available right there unused, and then I can have the pwm option to set the fan rpm down into the quiet zone.
I'd like to use small mosfet pin 2.6 but haven't found where to specify an output based on motor.enable.
I suppose I could toggle the fan based on some minimum temperature, but would rather switch based off the motor_enable:
I figure if it can be done it will be very similar to this code that I'm using to control the fan on my E3D v6 hotend. Note this is not the part cooling fan.# automatically toggle a switch at a specified temperature # useful to turn on a fan or water pump to cool the hotend temperatureswitch.hotend.enable true # temperatureswitch.hotend.switch fan2 # select which MOSFET to use, must match a switch configuration (fan2 below) temperatureswitch.hotend.designator T # first character of the temperature control designator to use as the temperature sensor to monitor temperatureswitch.hotend.threshold_temp 60.0 # temperature to turn on (if rising) or off the switch temperatureswitch.hotend.heatup_poll 15 # poll heatup at 15 sec intervals temperatureswitch.hotend.cooldown_poll 60 # poll cooldown at 60 sec intervals switch.fan2.enable true # enable switch.fan2.input_on_command M42 # gcode to turn on switch.fan2.input_off_command M43 # gcode to turn off switch.fan2.output_pin 2.4 # pin that controls the fanswitch.fan2.output_type pwm # pwm output settable with S parameter in the input_on_comand #switch.fan2.max_pwm 110 # set max pwm for the pin default is 255 (12v fan on 24v PSU)
But instead turn on-off simply if any of the stepper motors is enabled-disabled.
Can this be done?
--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gotcha - what I'll do then is make a 12v subsystem. Use a DC-DC buck converter to reduce the voltage from 24 to 12 for my fans. I'll supply the + side of each fan with 12v from the buck and connect the - side of the fan to the mosfet pin.
I assume I can pull the -12v side down to the mosfet pins?
Would I need to modify the board, for example remove the LED's for those mosfets?
--
You received this message because you are subscribed to a topic in the Google Groups "Smoothieware Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/smoothieware-support/MOshKPLzbe4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to smoothieware-sup...@googlegroups.com.
I have some much nicer/larger silent fans and squirrel blowers I intend to install with the tall Kossel vertices now in place and will probably use your approach.