All,
Im on to my next Nanode project - a central heating controller (ie replacing the programmer to hot water and room heating).
My plan is to use the Nanode measure the temperatures (ambient and water) and use mains relays to perform the duties of controlling the boiler and valves at the relevant times. Ultimately, Id like to build into the Nanode code some 'intelligence' ie be able to use historic temperature delta rates to determine when to turn and off the relevant parts to achieve desired states at target times...
I plan to use a remote and separate management system to send reprogramming commands and have the management/interface control and monitor it. Both management system and nanode will be on an Ethernet network, communicating via a series of messages to set the parameters, or immediate demand etc.
Obviously, I want to be mindful of codesize (in the Nanode),
So my questions for the group are :
- Anyone aware of a project similar ? (I couldnt find one with a quick search).
- Whats the lightest weight messaging system over Ethernet anyone has used ?
- Are there benefits in using MQTT or other (e.g. I remember a 'Home Hub' messaging system proposed too) ?
- Should I simply write a simple message handling myself ? if so, anyone got some examples I can look at ?
- Given the management system will be web based, does it make more sense to put a simple webserver in the Nanode to handle the messaging/control ?
Any other thoughts ?
Jon.
All,
Many thanks for your thoughtful and considered responses to my questions. It sounds like Im following similar paths to a few of you.
A little more detail may help...
I have a couple of Raspberry Pi's already on my Ethernet network - including one running the fantastic Wview which monitors the weather outside and reads one internal room temp.
My plan was to use this as a central hub for the simple CH/HW control - and have it perform the 'override' or intelligence beyond the standard timing and PID control, which Id hoped to build into the Nanode at the Bioler/heating. The balance of what is performed by which component will probably lie in the code size of the Nanode.
As mentioned before the Nanode will control the relays and measure (via DS18B20's) room and water temps - and as I already have Powerline Ethernet networking, so I was going to invest £25 or so in an additional mains ethernet device, to provide power and Ethernet to the remote Nanode without requiring wireless protocols etc etc. Im hoping I can cannibalise the powerline device to provide the 5v for the Nanode too... As a side note - this would be like a Sheevaplug - but with Ethernet over mains... anyone working on such a device that would be in the £50 or so range ?!
I think I'll start by getting the Nanode to emulate a simple programmer first - using the simple HTML webserver arduino example code to take and receive commands. But Im expecting to have to rip this out to a lighter weight push/pull messaging system.
I'll let you know how I get on.
Once again, many thanks group - you're very helpful!
Jon
On Sunday, November 25, 2012 11:32:37 AM UTC, Jon Bartlett wrote: