Sous vide (in progress)
Remark: Logic for a sous vide system
Set lo
w_temperature
Set high_temperature
Set start_time
Set end_time
Turn on heat
Turn on led
if end_time < start_time then stop.
loop until time > end_time.
Get temperature
if temperature > high_temperature then turn off heat and turn off led
if temperature < low_temperature then turn on heat and turn on led
get time
loop
turn led off
end
The more I thought about this , it came to me you could use the same idea for an air conditioning system controller. of course the logic would have to be a bit different.
Set lo
w_temperature
Set high_temperature
Set mid temp range
Set low temperature
Set start_time
Set end_time
Turn off Heater and AC
Turn on led
if end_time < start_time then stop.
loop until time > end_time.
Get temperature
if temperature > high_temperature then turn on the AC and turn off the heat
if temperature = mid_temperature then turn off both the AC and the Heater
if temperature < low_temperature then turn on heat and turn off the AC
get time
loop
turn led off
end
Comments
Post a Comment