Go Down

Topic: Implementing a compressor start delay for fridge control (Read 5439 times) previous topic - next topic


This would be a good candidate for a state machine - there are plenty of examples in the forums. However, you probably don't want to rejig your entire sketch just for this change.

So, replace the if that implements "ALL OFF" with two separate ifs. One checks that heater is on and temp > setpoint and turns it off. The other handles the fridge.


thankyou, i might investigate state machines all the same, might work out tidier in the end

Go Up