While idle..'warm' 5160s

I added thermistors to the heatsinks on my 5160 drivers on X &Y. I have them visible in the temp graph in the dashboard. My 'controller fan' kicks on whenever any stepper in not idle. But while idle, if the 5160s warm to a certain point, I'd like to have them kick on that controller fan. The problem I'm running into it most temp sensor fans are tied to heaters.
So.... what combo of settings are needed to use a thermistor reading to kick on a fan when not related to a heater?? Current sensors in printer.cfg.... (T2 and T3 inputs on an Octopus Pro 446) ################################################# Additional temp sensors on 5160 drivers ################################################# [temperature_sensor TMC5160_X] sensor_type: ATC Semitec 104NT-4-R025H42G sensor_pin: PF6 #T2 sensor input [temperature_sensor TMC5160_Y] sensor_type: ATC Semitec 104NT-4-R025H42G sensor_pin: PF7 #T3 sensor input
No description
14 Replies
ptegler
ptegler2y ago
again... slap in the head...was mentally stuck looking at https://www.klipper3d.org/Config_Reference.html?h=thermistor#temperature-sensors vs the resultant function I wanted as you pointed out. again... tnx maybe this ol' fart just needs to get some sleep.
8Complex
8Complex2y ago
I added a second control to my controller fan based upon my raspberry pi temperature (temperature_host)... you could just change the sensor_type to one/both of your drivers
##################################################
### Case Fan Control
##################################################
[duplicate_pin_override]
pins: fan_controller_board_pin

[temperature_fan case_fan]
pin: fan_controller_board_pin
sensor_type: temperature_host
control: watermark
max_delta: 3.0
min_temp: 0
max_temp: 100
target_temp: 48
kick_start_time: 0.8
##################################################
### Case Fan Control
##################################################
[duplicate_pin_override]
pins: fan_controller_board_pin

[temperature_fan case_fan]
pin: fan_controller_board_pin
sensor_type: temperature_host
control: watermark
max_delta: 3.0
min_temp: 0
max_temp: 100
target_temp: 48
kick_start_time: 0.8
I went with watermark as I didn't want to have to deal with trying to PID tune it
ptegler
ptegler2y ago
temperature_fan (last section) errors out on sensor pin. Have tried PF6, T2, TMC5160_X etc...all fail. Trying to reuse the PF6 fails with 'duplicate used'
[fan] ## Print Cooling Fan - FAN0 24V Sanyo 4028 --added section 20221017-pat
pin: PA8
kick_start_time: 0.6
off_below: 0.10
# not messing with toolhead cooling fan(PE5) all is handled elsewhere -pat20221023
[heater_fan toolhead_cooling_fan]
#see https://github.com/jscancella/myKlipperFiles/blob/main/vcore3-printer.cfg#L248-L249
heater_temp: 35 #turn off hotendfan when it reaches 35C

[controller_fan my_controller_fan] # ------added section 20221017-pat
## Octopus board cooling fans x2 24V Fans 0-7
pin: PD12 # x2 40x10 24V fans on octopus board
pin: PD13 # x2 Noctura 40x20 12V stepper motor fans mounted under XY stepper heat sinks
max_power: 1.0
#shutdown_speed: 1
kick_start_time: 0.60
off_below: 0.1
fan_speed: 1.0
idle_timeout: 60
stepper: stepper_x, stepper_y

#################################################
## Additional temp sensors on 5160 drivers
#################################################
[temperature_sensor TMC5160_X]
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: PF6 #T2 sensor input

[temperature_sensor TMC5160_Y]
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: PF7 #T3 sensor input

[temperature_fan 5160_fan]
pin: PD12
shutdown_speed: 1.0
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: PF6
min_temp: 0
max_temp: 35
[fan] ## Print Cooling Fan - FAN0 24V Sanyo 4028 --added section 20221017-pat
pin: PA8
kick_start_time: 0.6
off_below: 0.10
# not messing with toolhead cooling fan(PE5) all is handled elsewhere -pat20221023
[heater_fan toolhead_cooling_fan]
#see https://github.com/jscancella/myKlipperFiles/blob/main/vcore3-printer.cfg#L248-L249
heater_temp: 35 #turn off hotendfan when it reaches 35C

[controller_fan my_controller_fan] # ------added section 20221017-pat
## Octopus board cooling fans x2 24V Fans 0-7
pin: PD12 # x2 40x10 24V fans on octopus board
pin: PD13 # x2 Noctura 40x20 12V stepper motor fans mounted under XY stepper heat sinks
max_power: 1.0
#shutdown_speed: 1
kick_start_time: 0.60
off_below: 0.1
fan_speed: 1.0
idle_timeout: 60
stepper: stepper_x, stepper_y

#################################################
## Additional temp sensors on 5160 drivers
#################################################
[temperature_sensor TMC5160_X]
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: PF6 #T2 sensor input

[temperature_sensor TMC5160_Y]
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: PF7 #T3 sensor input

[temperature_fan 5160_fan]
pin: PD12
shutdown_speed: 1.0
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: PF6
min_temp: 0
max_temp: 35
8Complex
8Complex2y ago
I think when you're defining a temperature_fan, you need to define the pin as the alias of what the pin is already assigned to Also, the duplicate line above it allows it to be assigned a second time, from what I understand
ptegler
ptegler2y ago
I'll continue here as this has to do with the heat at idle of the TMC5160 Pro. I've been playing with the spreadsheets designed to tune parameters for the various stepper drivers. (example https://github.com/Klipper3d/klipper/issues/3062) What I'm questioning is the register settings we've got in the RatOS ldo stepper motor files. I'm not suggesting what's there is wrong, just trying to understand them. For the oem RR XY motors (ldo 42sth48-2504ac ) via the spreadsheets, those current setting might be why these 5160 Pros run a bit warm at idle. I keep coming up with a warning about the max volts should not exceed 42V wit the settings supplied in the config files. Many of us are running 48V. I know it's a small margin, but it may just be enough to push current flow at idle to the disapprobation point that warms these stepper. As I play with settings I can shift that '42V warning' up in value a bit but not to above the 48V supply voltage being used. thoughts? ideas? anyone else ever play with this? It would seem an apropos study to see if we're pushing the electronics to the edge of proper operational stats. Plus I could get rid of the temp sensors on the heat sinks of my 5160s and not worry about 40°C temps there when I haven't even run the stepper motor after bootup.
GitHub
Issues · Klipper3d/klipper
Klipper is a 3d-printer firmware. Contribute to Klipper3d/klipper development by creating an account on GitHub.
8Complex
8Complex2y ago
I followed these to tune my steppers -- https://www.youtube.com/watch?v=uwkFOvV1BlA https://www.advanced3dprinting.com/2021/09/05/tuning-stepper-drivers/ On that second page is the primary info on it and he's got a 5160 driver tune listed already. The one thing I found interesting was that you had to re-tune every time you changed your stepper currents
ptegler
ptegler2y ago
btdt...those are the ss I was using, when seeing a warning of 42V for these ldo 42sth48-2504ac motor specs based on the params in the cfg files for RO v2
miklschmidt
miklschmidt2y ago
The reason 5160's are warm when idle (ie. not enabled, motors disabled) is because of the 12V dc/dc converter on those chips. It's normal. It has nothing to do with the settings (those aren't even initialized)
Andrew46
Andrew4615mo ago
Is passive cooling acceptable for this? Considering they only get warm and that would indicate sub 30deg temps or would this lead to burning them out.
ptegler
ptegler15mo ago
Intersting that this thread is being revisited.... as just recently I also noticed that even though the motors are disabled.... (idle timeout) the AB motors are much warmer than the 2209 drivien Z motors. Not hot, but easily noted well above room temp compared to the Z.s
miklschmidt
miklschmidt15mo ago
Should be fine Just make sure natural convection isn’t inhibited
Andrew46
Andrew4615mo ago
are you sure the motors are Disabled? mine are stone cold when Idle. even tho the 5160s are "warm"
ptegler
ptegler15mo ago
ok...had to play..... AB (xy) steppers here are 48V at the 1.768A settings (via the includes)
[include RatOS/steppers/ldo/42sth48-2504ac/5160/50v-1.768a-x.cfg]
[include RatOS/steppers/ldo/42sth48-2504ac/5160/50v-1.768a-y.cfg]
[include RatOS/steppers/ldo/42sth48-2504ac/5160/50v-1.768a-x.cfg]
[include RatOS/steppers/ldo/42sth48-2504ac/5160/50v-1.768a-y.cfg]
. ...BUT.... I have a stepper motor analyzer inline with those motors and the settings DO NOT agree. I was under the impression the set current in the include files was the RMS value? or is it the peak value? and for reference..... at an idle (motors NOT disabled) they are being driven with approx 0.5-06A. DISABLED, they are drawing about 260mA per coil So disabled, the motors are still seeing roughly a hair over 1/2A of power through the coils, doing nothing but warming the coils
Want results from more Discord servers?
Add your server