I’m using a PID function to control a PWM gpio output, I’ve set the “Min Duty Cycle” to 50 and the “Always Min” checkbox is checked, yet the output is showing 0%.
A portion of the log:
2023-01-23 22:29:15,166 - DEBUG - mycodo.controllers.controller_pid_43ebc41d - PID: Input: 29.1, Output: P: -18.000000000000043, I: -0.0, D: 0.0, Out: -18.000000000000043
2023-01-23 22:29:25,209 - DEBUG - mycodo.controllers.controller_pid_43ebc41d - Latest (CH0, Unit: C): 29.1 @ 1970-01-20 01:09:01.762903
2023-01-23 22:29:25,209 - DEBUG - mycodo.controllers.controller_pid_43ebc41d - PID: Input: 29.1, Output: P: -18.000000000000043, I: -0.0, D: 0.0, Out: -18.000000000000043
2023-01-23 22:29:35,140 - DEBUG - mycodo.controllers.controller_pid_43ebc41d - Latest (CH0, Unit: C): 29.2 @ 1970-01-20 01:09:01.772955
2023-01-23 22:29:35,141 - DEBUG - mycodo.controllers.controller_pid_43ebc41d - PID: Input: 29.2, Output: P: -19.50000000000001, I: -0.0, D: -0.0, Out: -19.50000000000001
2023-01-23 22:29:45,113 - DEBUG - mycodo.controllers.controller_pid_43ebc41d - Latest (CH0, Unit: C): 29.2 @ 1970-01-20 01:09:01.783050
2023-01-23 22:29:45,113 - DEBUG - mycodo.controllers.controller_pid_43ebc41d - PID: Input: 29.2, Output: P: -19.50000000000001, I: -0.0, D: 0.0, Out: -19.50000000000001
2023-01-23 22:29:55,167 - DEBUG - mycodo.controllers.controller_pid_43ebc41d - Latest (CH0, Unit: C): 29.1 @ 1970-01-20 01:09:01.793065
2023-01-23 22:29:55,168 - DEBUG - mycodo.controllers.controller_pid_43ebc41d - PID: Input: 29.1, Output: P: -18.000000000000043, I: -0.0, D: 0.0, Out: -18.000000000000043
The “@ 1970-01-20 01:09:01.793065” part is weird but I doubt related. The clock on the rpi4 is definitely set correctly.