A DIY attempt to make an electronic energy meter using Arduino.
Note This project is made by a beginner as a learning experience. There might be mistakes in the design, wiring, or code. Please replicate at your own risk, and feel free to improve or suggest changes!
- Measures voltage, current, power, and total energy consumed.
- Displays real-time values on an OLED screen.
- Stores total energy across restarts.
- On boot, if D7 (or chosen pin) is connected to GND, the energy counter is reset.
arduino-cli compile -b arduino:avr:nano . \
&& arduino-cli upload -v -p /dev/ttyUSB* -b arduino:avr:nano:cpu=atmega328old . \
&& arduino-cli monitor -p /dev/ttyUSB* --config 115200
Make sure the correct port /dev/ttyUSB* is used and accessible.
- Input Voltage: 0 V – 30 V
- Current Range: 0 A – ~8 A
- Shunt Resistor: 0.05 Ω, ≥2 W
Front View | Back View (ugly) |
---|---|
![]() |
![]() |