Go Down

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

wildbill

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.

Greenbeast

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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy