Gas monitoring
This page pulls together information from various sections of the site as the community works toward improving gas meter monitoring methodology and expanding OpenEnergyMonitor capability to include gas consumption monitoring.
The method used counts the revolutions of a dial to determine the volume of gas consumed.
If you are very lucky, your gas meter has a connector that provides access to the meter's pulse output, enabling you to determine gas consumption via pulse counting.
Rotating Ring Counting
Whilst most meters don't have that capability, many gas meters have a unique "spot" on their rotating disk which can be read with a suitable pickup and electronics. This may be:
- A small magnet embedded in the disk. A Hall effect sensor or a reed switch can detect disk rotation.
- A reflective spot on the dial that can be read by an infra-red reflective sensor.
- A uniquely coloured numeral that can be detected by an infra-red reflective sensor. (can be difficult)
Magnetic Counting
Hall Effect
Hall effect sensors can detect a magnetic field. Sensor output is a voltage which varies in response to a magnetic field. A microcontroller with a Hall effect sensor attached to an interrupt line, can count each complete disk rotation.
The image below shows an Actaris gas meter, suitable for monitoring via this method. The magnetic point is visible as a small silver oval on the rightmost digit. The hall effect sensor can be located on the underside of the cut-out section, pointing upwards, or attached directly to the dial face.
Since a gas meter will not usually have a mains power connection located nearby, it's desirable for a Hall effect sensor to be a low-power device. Low power consumption enables use with a battery powered emonTx or JeeNode.
Paul Allen (MarsFlyer) has successfully used a Melexis MLX90248 hall effect sensor. Its average supply current is 10uA. This sensor will react to either a North or South magnetic pole (omnipolar), which simplifies installation. The sensor is supplied as a surface mount SOT23 package which will need to be soldered onto a breakout board to enable wires to be connected.
The sensor mentioned above is difficult to source in the UK – neither RS nor Farnel electronics stock it. A suitable substitute, Diodes AH180N has very similar specifications, is readily available and very low cost. The AH180N is also in a SOT23 package, has an average current consumption of 8-16uA and operates between 2.5 and 5.5 Volts.
Reed Switch
Reflective Spot Counting
I have been using this method on my Schroder BK-G4 meter for over a year. Details here.
Reference
There is a forum post listing some common UK gas meters and methods of interfacing them with an emonTX.
http://wattdata.blogspot.com/2011/05/gaslog-arduino-measuring-gas-meter.html -
https://github.com/MarsFlyer/ArduinoEnergyProjects
http://sustburbia.blogspot.com/2010/10/gas-meters-revisited.html
https://github.com/kristopher/PS2-Mouse-Arduino - using an optical computer mouse to read a rotating dial
Related forum threads
A few forum threads deal with gas metering / water / pulse counting.
Gas meters and sensors:
Cracking Gas metering (list of UK gas meters)
Wireless Pulse Module / Hall effect sensors & Reed switch debouncing
Direct monitoring of power meter pulse using Raspberry Pi & an LDR
Gas meter monitoring with Hall effect sensor (and Reed switch)
Monitoring Gas meters without pulsed output or magnet
British Gas Smart Meters - Part 1
emonTH gas with phototransistor or reed switch
Battery / autonomy
Battery-efficient pulse measurement
Power down, watchdog wake up and power computation
Pulse processing:
https://openenergymonitor.org/emon/node/3467
https://openenergymonitor.org/emon/node/1056
https://openenergymonitor.org/emon/node/2457
https://openenergymonitor.org/emon/node/3183
https://openenergymonitor.org/emon/node/3387
https://openenergymonitor.org/emon/node/2850
https://openenergymonitor.org/emon/node/3338