Monitor for central heating system (e.g. 2zones+hw) Supports up to 15 temp probes (DS18B20/DS18S20) 3 valve monitors Gas pulse meter recording Use stand-alone or with nodeEnergyServer See http://robdobson.com/2015/09/central-heating-monitor

Dependencies:   EthernetInterfacePlusHostname NTPClient Onewire RdWebServer SDFileSystem-RTOS mbed-rtos mbed-src

Committer:
Bobty
Date:
Fri Oct 16 09:07:04 2015 +0000
Revision:
23:fd5a5a9f30bc
Parent:
10:72eb217def1f
Added index.html file to project for completeness

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Bobty 10:72eb217def1f 1 // Detect stat of Volt-Alerter
Bobty 10:72eb217def1f 2 // Device produces a square wave when voltage detected
Bobty 10:72eb217def1f 3 // Cycle time of square wave around 100ms
Bobty 10:72eb217def1f 4 // Rob Dobson, 2015
Bobty 10:72eb217def1f 5
Bobty 10:72eb217def1f 6 #ifndef __VOLTALERTER__H
Bobty 10:72eb217def1f 7 #define __VOLTALERTER__H
Bobty 10:72eb217def1f 8 #include "mbed.h"
Bobty 10:72eb217def1f 9
Bobty 10:72eb217def1f 10 class VoltAlerter
Bobty 10:72eb217def1f 11 {
Bobty 10:72eb217def1f 12 public:
Bobty 10:72eb217def1f 13 VoltAlerter(PinName pinName);
Bobty 10:72eb217def1f 14 void Service();
Bobty 10:72eb217def1f 15 int GetState()
Bobty 10:72eb217def1f 16 {
Bobty 10:72eb217def1f 17 return _curPinState;
Bobty 10:72eb217def1f 18 };
Bobty 10:72eb217def1f 19
Bobty 10:72eb217def1f 20 static const int CONSECUTIVE_LOWS_REQD_FOR_LOW = 10;
Bobty 10:72eb217def1f 21
Bobty 10:72eb217def1f 22 private:
Bobty 10:72eb217def1f 23 DigitalIn _inPin;
Bobty 10:72eb217def1f 24 bool _curPinState;
Bobty 10:72eb217def1f 25 int _consecutiveLows;
Bobty 10:72eb217def1f 26 };
Bobty 10:72eb217def1f 27
Bobty 10:72eb217def1f 28
Bobty 10:72eb217def1f 29 #endif