Drivers and coldend fan config

I have Kingroon KP3S printer with custom Sherpa Mini and e3d V6 hotend (Robin Nano v1.3 with GD32F103 mcu and Radxa Zero SBC board).
klippy.zip (331.6 KB)

I have my coldend (e3d v6 heatsink) fan and a board cooling fan connected in parallel and attached to the spare heater output of the board (HE1 or E1) so I can turn it on/off when not printing.

It is setup like this at the moment:

[heater_fan e3d_heatsink_board]
pin: PB0
heater: extruder
heater_temp: 50.0
fan_speed: 1
shutdown_speed: 1

so both fans are activated on heater enable.

What would be the best way to set this up so fans would activate on steppers activation as well as on heater? So when I’m doing something without heater my drivers won’t overheat. Homing override?

Thanks.

https://www.klipper3d.org/Config_Reference.html#controller_fan

Thanks for a quick reply.

But how do I setup [controller_fan] and [heater_fan] on the same pin?

You can’t use it that way. A controller fan can be configured to also turn on when a specific heater is enabled, but you need to be careful. As soon as the heater and drivers are turned off the fan will also turn off. I believe you can set a delayed turn off which you would want to use, and set it to a long enough time for the hotend to cool.

The simplest I came up with is this:

[gcode_macro G28]
rename_existing: G28.000
gcode:
  M117 Homing
  {% if printer.extruder.target < 10 %}
      SET_HEATER_TEMPERATURE HEATER=extruder TARGET=10 #enable the fans
  {% endif %}
  G28.000

[idle_timeout]
timeout: 1800 # 30 mins

[heater_fan e3d_heatsink_board]
pin: PB0
heater: extruder
heater_temp: 50.0
fan_speed: 1
shutdown_speed: 1

I have the same board (kp3s v3), and I am trying to connect hotend fan to HE1 and enable it when hotend is on.
Is it normal when I turn on the printer the fan connected to he1 is also turned on? (Even before klipper has started)

Hello @Ximenin !

Not quite the same.

For this thread is quite old and already solved, I recommend to open a new thread with all requested information.

Yes, same board. Printer is kp3s v3, board 1.3

But please open a new thread.