Monitor the counter of an electricity meter with Arduino and infrared light sensor
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
arduino_sketch Revert "output trigger state to digital pin 8" Apr 3, 2016
www Directory www added May 17, 2016
.gitignore Directory www added May 17, 2016
LICENSE Initial commit Jun 7, 2015
README.md Readme updated Jun 10, 2015
emeir.py Directory www added May 17, 2016

README.md

emeir

Monitor the counter of an electricity meter with Arduino and infrared light sensor.

Electricity meter with infrared light barrier

The software consists of two parts:

  • Data acquisition part running on an Arduino Nano. It controls the infrared light barrier, detects trigger levels 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.

There is a blog in german language that explains use case and function: Infrarot Lichtschranke mit Arduino zum Auslesen des Stromzählers.

Commands from host (RasPi) to Arduino

  • 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

Schematics

Schematics