Wednesday 2 April 2014

Tidying and Linking

A lot of housekeeping today.


  • A separate test bed Arduino for the temperature sensor has been integrated with the boiler controller sketch. It polls the sensor every 10 seconds and keeps the average of the last 10 as the 'current' temp.
  • Calibration of the temperature sensor has been added. Simple as adjusting the reported value by a set amount which is stored by the Pi and (eventually) the user can calibrate the sensor from the web interface.
  • If the boiler is turned off by the system, there's a 5 minute 'cooldown' before a new 'on' signal can be triggered to prevent excessive cycling of the boiler. The boiler has this protection built in anyway but if controlled by the Arduino it's something that can be tracked and fed back to the user in case they're wondering why the boiler hasn't actually fired up.
  • Lots of code tidying and organisation.
  • NodeJS backend now handles any data sent from the Arduino and handles the various 'packets' accordingly. Temperature readings and boiler state transmissions so far (along with any error codes).
  • Same backend has rudimentary authentication for visiting users. Once authenticated, connected users receive updates from the Arduino as the Pi gets them allowing for the current temperature to be updated on the interface every 10 seconds in real time.
Well... its a start...

No comments:

Post a Comment