This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Thermostat script
#1
Hello, can you please  suggest   how to create   thermostat script with 3 thermo sensors in zone?

There are  3 thermosensors in 1 room- current temperaturete  at a height of 1 meter ,  current temperaturete  at a height of 2 meters, floor temperature to protect against overheating, setpoint temperature and control valve (1 bit output). Can I use the average temperature of the sensors at 1 and 2 meters? At what temperature should the overheating protection of the floor be activated? How to make the right heating control algorithm for underfloor heating / for radiators?
Best regards
A
Reply
#2
For several temperature sensors you can calculate the average and use it as a source temperature for PID regulator.
PID example: https://openrb.com/example-pid-thermostat-with-lm2/
It requires minor modifications to work with 1 bit output instead of 1 byte: https://forum.logicmachine.net/showthread.php?tid=386
To prevent overheating you can make a separate script that activates PID "manual" object and turns off the valve if the temperature raises above a certain level. The temperature limit depends on many factors like the sensor placement and flooring material.
Reply


Forum Jump: