klipper icon indicating copy to clipboard operation
klipper copied to clipboard

Motors on, fans on. Possible?

Open swatti87 opened this issue 8 years ago • 10 comments

Is it possible to turn on fans when motors are active?

I have a bit of an odd fan-setup but it keeps the noise down.

Block cooler fires off when heater active and shuts down when temp is below 90. This one works. [Fan] is clearly the part cooler, controlled via Cura, based on layers.

Now i need 2 more. Or atleast one.

When motors on, turn on "stepper-fan" - with max power below 1.0 ( the noise)

When power on, turn on motherboard/driver fan - with max power below 1.0

Those last two are over-sized fans with the idea of running them at half-power for good cooling and low noise. I prefer to control these separate from each other but their power can be static. Only the part-cooler needs a variable speed.

It seems when i make a new "[fan]" or change the name of the default part-cooler, my klippy goes crazy.

swatti87 avatar Oct 08 '18 12:10 swatti87

Yes, it's possible. I'm using this method for my delta controller fans. Please see https://github.com/KevinOConnor/klipper/issues/529#issuecomment-411653844 Just use right pins I'm not sure about fan power regulation when using this method.

mcmatrix avatar Oct 08 '18 13:10 mcmatrix

Yes, it's possible. I'm using this setup for controller fans. Please see #529 (comment)

Well, better than nothing but i'd prefer to control them individually. At ~50% power my driver fan already screams like crazy but at the same power my stepper coolers dont do much.

swatti87 avatar Oct 08 '18 13:10 swatti87

Can i do "multiple" code-snippets and add power-variables to them?

[multi_pin my_enable_pin] pins: !ar25

ar25 being z-stepper enable ar13 being the "yuuuge" driver fan, should not run higher than 0.3 power ar10 is the stepper blowers. At 0.8 power they become silent ar11 is the part-coolers. They can run at 100% as i can control them via Cura

swatti87 avatar Oct 08 '18 13:10 swatti87

Can i trigger several pins in with one go? That would do as a temporary setup... Max-out all the fans aaaand let all smaller than an elephant fly into orbit. I dont want to re-wire them as i'd have to do that again later...

swatti87 avatar Oct 08 '18 15:10 swatti87

I suspect most people use a [heater_fan] section even for stepper driver and board coolers (under the assumption that the motors typically only step when the extruder is on). An alternative is to add a thermistor and use a [temperate_fan] section. Both sections are described in config/example-extras.cfg .

-Kevin

KevinOConnor avatar Oct 08 '18 15:10 KevinOConnor

I do what Kevin describes. My driver cooling fan turns on when my extruder is active. An alternative approach is to define a run-time configurable fan and add lines to your start and end g-code to turn it on and off. Either approach will work with PWM.

jakep82 avatar Oct 08 '18 15:10 jakep82

Problem is i kinda need all the fans at different power. Else they make too much noise or run too low. Rest i could run at full power, maybe, but that board-cooler "big fan" screams like an ex-pornstar on b-movies.

How complicated is to add more fan-options? Simply add manually conrolled fans.

swatti87 avatar Oct 09 '18 13:10 swatti87

Please read example-extras.cfg. You can set up as many fans as you want, each with it's own PWM value. Also, your description is in poor taste and unnecessary.

jakep82 avatar Oct 09 '18 15:10 jakep82

[output_pin fan22] pin = arXX pwm = True cycle_time = 0.0100 hardware_pwm = True value = 0.05 scale = 255 shutdown_value = 1 #Use The fan22 port with "SET_PIN PIN=fan22 VALUE=xxx(0-255, off-max)"

Hywelmartin avatar Oct 09 '18 19:10 Hywelmartin

I just config my setup. All working good. I put "SET_PIN PIN=fan22 VALUE=xxx(0-255, off-max)" to my octoprint gcode start script.

cosminr86 avatar Oct 12 '18 23:10 cosminr86