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

Avoid turning heater on/off often due to temperature oscillation #2

Open
quicklywilliam opened this issue Jan 3, 2018 · 0 comments

Comments

@quicklywilliam
Copy link

If I am reading the code correctly the heater is turned on the moment the temperature goes below the target and turns back off the moment it goes above. I'm concerned that this will lead to turning the heater on and off very often, which seems inefficient and possibly bad for the heater.

Suggest implementing a minimum deviation from target temperature before toggling the heater on/off and/or a minimum time period between toggles. A more complicated solution would be to use a PID controller such as https://www.npmjs.com/package/node-pid-controller.

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

No branches or pull requests

2 participants