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:
Mon Feb 02 16:24:30 2015 +0000
Revision:
4:0d3a207680b0
Parent:
2:6bfef0839102
Child:
5:5bccf48799d4
Starting to add SD File System

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Bobty 2:6bfef0839102 1 #ifndef __PULSEPIN__H
Bobty 2:6bfef0839102 2 #define __PULSEPIN__H
Bobty 2:6bfef0839102 3 #include "mbed.h"
Bobty 2:6bfef0839102 4
Bobty 2:6bfef0839102 5 class PulsePin
Bobty 2:6bfef0839102 6 {
Bobty 2:6bfef0839102 7 public:
Bobty 2:6bfef0839102 8 PulsePin(DigitalIn& pin, bool risingEdge, int pinStableTimeMs);
Bobty 2:6bfef0839102 9 bool Service();
Bobty 2:6bfef0839102 10 int GetLastCycleTimeMs();
Bobty 2:6bfef0839102 11
Bobty 2:6bfef0839102 12 private:
Bobty 2:6bfef0839102 13 DigitalIn& _pin;
Bobty 2:6bfef0839102 14 Timer _pinTimer;
Bobty 2:6bfef0839102 15 bool _curPinState;
Bobty 2:6bfef0839102 16 bool _firstEdgeDetected;
Bobty 2:6bfef0839102 17 int _lastStableTimeMs;
Bobty 2:6bfef0839102 18 int _waitForPinStabilisationMs;
Bobty 4:0d3a207680b0 19 bool _detectRisingEdge;
Bobty 2:6bfef0839102 20 int _timeBetweenEdgesMs;
Bobty 2:6bfef0839102 21 };
Bobty 2:6bfef0839102 22
Bobty 2:6bfef0839102 23
Bobty 2:6bfef0839102 24 #endif