-
Notifications
You must be signed in to change notification settings - Fork 20
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
PID does not work properly on my environment. #29
Comments
Hi, here is some suggestions Disclaimer: I'm neither an expert in this field nor very experienced. This is just what I found logical to do. ============================== |
Thank you for your comment. |
I'm afraid there is nothing that I can do for you then. This blog helps me a lot in understanding some basics of PID |
Looking at the output of the
|
First of all, thank you for this library. It is really a piece of art.
Probably Iam just stupid and can't use it properly.
My setup
The esp32 hosts a webpage where a user can create it's own zones ( rooms ) and can put heating controller inside it.
The user can pick which thermostat to use for which room and can select separate pins for the boiler start, valve open and pump circulation. He can also set how much time it takes for the valve to be opened fully, so the heating can begin and the pumps can circulate the water across the tubes.
This system is represented as separate classes in code.
So it goes like this:
Heating loop will periodically checks if we can start to heat or not. For this it will ask the thermostat class which will decide based on the measured and set temperature. If it says we can heat, the heating system will start the process.
Meanwhile the heating system will periodically checks if the temp is on the set temp. If it is, ( +- hysteresis ) it will start the stop process
It is working good, but now i want to give the user the option to be able to controll it with PID
For this i have created a wokwi project which tries to simulate my environmnet and for the life of me i can't figure out why it does not work.
Here is the wokwi simulation: https://wokwi.com/projects/357187661998047233
Do you have any suggestions? ( sorry for the long issue )
( meanwhile I will try to create a more representative simulation at wokwi )Here is a more detailed simulation of my system.
https://wokwi.com/projects/357256912224692225
If you let the
usePID
variablefalse
it will do a normal heating controll and controlls the temperature fine.If you set it to
true
it will use thePID
for temp controll.The text was updated successfully, but these errors were encountered: