Hi all
I'm going to try and build a central heating controller, but am struggling with a couple of concepts. It branches out a bit more from the 'do more than one thing at once' classic question - I have read this, but think it's a little different. I'm a newbie, please don't be too harsh on me!
The central heating controller is quite simple - all it involves is closing a circuit to heat, and opening the circuit again when the room reaches the desired temp. I have absolutely no problem writing the sketch to monitor the temp and switch on/off the system to control the temp. I don't even really need to worry about building a variable in there I can set as we only ever have it on one temp.
I would really like to build in a few extra functions, that the controller doesn't have, namely
-a timer
-SMS/ethernet control capability
I'm fine with the hardware aspect of these features, but what really confuses me is knowing how to write the code so if for example, the timer code monitors and determines a criteria is met, how do I get that to 'kick off' the 'core' element of the sketch (i.e. switch on the system, and have it controlled by the thermostat)? Also, when I add the GSM capability, how would I get an SMS 'command' to override the timer, and switch on/off the system when the timer code says to do otherwise?
Again, I am more than capable of teaching myself how to code to receive SMS commands etc, the issue I'm having is I don't have enough programming experience to know how to 'structure' something like this - all the coding I've ever done is procedural.
I don't expect complete answers, but if someone could tell me what I would search for/read about to learn how to do this, it would be a massive helping hand. I don't really know what to search for, or more importantly, how to logically design the code.
Any pointers would be greatly appreciated!