Fan curve control implemented (Patreon)
Content
Today I was able to configure the motors and electronic fans based on the new Danger Klipper temperature_fan: curve control algorithm. Here is an example of the configuration for the electronics:
[temperature_fan BTT_Kraken]
Pin: PA3
max_power: 1.0
shutdown_speed: 0
cycle_time: 0.03
hardware_pwm: False
kick_start_time: 0.1
min_power: 0.2
#sensor configuration
sensor_type: temperature_mcu
min_temp: 10
max_temp: 80
target_temp: 65.0
#fan curve
min_speed: 0.0
control: curve
Points:
50.0, 0.0
60.0, 0.5
65.0, 1.0
The configuration is quite simple, you define points on a curve and the algorithm defines the values between them based on a smoothing algorithm. In this example, the fans are set to off for temperatures below 50°C. For values between 50°C and 60°C, the fan gradually increases to 50%. For values between 60°C and 65°C the fan will increase rapidly from 50% to 100% and will stay at max for temperatures over 65°C up to 80°C which is defined as maximum temperature where the firmware should shutdown the MCU completely
Files
Previews only