Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output goes to 0 when above setpoint. #124

Open
ZachElkins opened this issue Sep 12, 2022 · 2 comments
Open

Output goes to 0 when above setpoint. #124

ZachElkins opened this issue Sep 12, 2022 · 2 comments

Comments

@ZachElkins
Copy link

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)

@heaterC
Copy link

heaterC commented Oct 2, 2022

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

@drf5n
Copy link

drf5n commented Feb 22, 2023

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants