Monitor the counter of an electricity meter with Arduino and light sensor.
This repository is a fork of the emeir project by Martin Kompf. This fork is alternative firmware, which runs on the same hardware but with a "simplified" sensor, to use the "emeir" hardware on modern digital electricity meters which send light pulses with an (infrared) LED.
The software consists of two parts:
- Data acquisition part running on an Arduino Nano. It controls a light sensor, detects trigger levels, skips pulses if so desired and communicates with a master computer over USB serial.
- Data recording part running on a the master computer (Raspberry Pi). It retrieves the data from the Arduino over USB serial and stores counter and consumption values into a round robin database.
More information about circuit, setup and calibration can be found in the project Wiki.
- D - retrieve and print raw data
- T - enter trigger mode and print trigger data (0/1)
- S low high - Set trigger levels (e.g. 85 90)
- C - Cancel data acquisition and enter command mode
Arduino is in trigger mode upon start - Send C to enter command mode

