Energy-Meter

This is a very handy project to monitor and log your energy consumption.

Using simply

  1. PZEM-004T

  2. Hi-Link AC/DC (230V/5V) module

  3. ESP8266 (1Mbit)

  4. DIY socket case

allows to control your energy.

I've added a little webserver on the ESP so locally it's easy to control the data and also store in Thingspeak. Therefore one has to adjust the setting within the sketch (channel+key) and long term monitoring is easy visualized.

Software is written within Arduino, the website has to be uploaded via SPIFF uploader - and can easily be adapted to own need as well as look'n'feel. Besides an WiFi Manager (easy selection of available SSID) an OTA interface is installed, which allows to update the firmware later on.

+

+

+

Webserver

The web interface looks like this and is straightforward. The setting dialog allows to adjust the time for storing within Thingsspeak and also a reset function is implemented - this will erase the non-volatile energy counter within the PZEM-004T.

Within the local network you can address like HTTP://energy.local as the code uses mDNS function

Firmware

can be found on Github; this also includes the web sites, JS and CSS


Schematic

for level converting, power regulation and mounting I'm using my standard ESP8266 adapter, schematic below and in the Github. As an advantage, this hosts already the programming interface (for wired programming) and is easy to mount.