I'm trying to make a thermostat but not sure if I'm taking the right approach and need some help. I want to allow the temperature to drop say 10 degrees before C.1 goes high again after its switched off to stop it hunting and give some hysterisis---think thats the right word!
This is the bare bones of my code without the display etc to see if anyone can point me in the right direction
Many Thanks Peter
This is the bare bones of my code without the display etc to see if anyone can point me in the right direction
Many Thanks Peter
Code:
symbol varA = b0
symbol varB = b1
start:
readtemp C.4, varA ; Temp Sensor on pin C.4
readadc C.2, varB ; Adjust temp on pin C.2
if varA <= varB then high C.1
else
low C.1
endif
goto start