Arduino-PID-Library icon indicating copy to clipboard operation
Arduino-PID-Library copied to clipboard

Output goes to 0 when above setpoint.

Open ZachElkins opened this issue 2 years ago • 2 comments

I am running in to an issue where the output is always 0 when the input is greater than the set-point, but seems to be working fine when it is below it.

I think at least one other person is having the same issue, found in the Google Group. (https://groups.google.com/g/diy-pid-control/c/Z9zokl6ngZQ)

ZachElkins avatar Sep 12 '22 17:09 ZachElkins

As you can find in the documentation, the output window is by default 0-255, but you can easily change this.

heaterC avatar Oct 02 '22 09:10 heaterC

Yes, the default output range is set to the analogWrite(...) range of 0-255. If you want it to go negative, use SetOutputLimits:

https://playground.arduino.cc/Code/PIDLibrarySetOutputLimits/

drf5n avatar Feb 22 '23 23:02 drf5n