Giter Club home page Giter Club logo

esp8266-pzem004t's Introduction

ESP8266-PZEM004T

A WiFi enabled PowerMeter for AC Voltage, Current and Power. Implementing a nice looking Web-Interface, a RESTful API, OpenHAB 1 & 2 Callbacks and a MQTT client.

Precompiled Firmware

Find the precompiled firmware in the firmware directory.

Compile

This is a PlatformIO project.

Firmware Reset

  1. Power on the PowerMeter (plug in)
  2. Press down and hold the Button during the first 5s
  3. Release Button when the WiFi LED starts rapidly fast blinking
  4. The firmware reset ends after about 30s indicated by a permanent WiFi LED on.

Default Settings

After a firmware reset the following values are set.

value description
WiFi SSID PowerMeter-esp id SSID in accesspoint mode
IP Address 192.168.192.1 ip address in accesspoint mode
Admin password admin Setup admin password
OTA Hostname wifi-socket-1 Over The Air hostname
OTA Password otapass OTA firmware upload password
OpenHAB Callback Enabled false
OpenHAB Version 1 Callback for OpenHAB version 1 or 2
OpenHAB Item Voltage PowerMeter1Voltage
OpenHAB Item Current PowerMeter1Current
OpenHAB Item Power PowerMeter1Power
OpenHAB Host 192.168.1.1
OpenHAB Port 80
OpenHAB Use Authentication false
OpenHAB User user  
OpenHAB Password password  
OpenHAB SendingInterval 60 interval time in seconds 
MQTT Enabled false  
MQTT ClientId PowerMeter1  
MQTT Host 192.168.1.1
MQTT Port 80
MQTT Use Authentication false
MQTT User user  
MQTT Password password  
MQTT Topic Voltage powermeter1/voltage  
MQTT Topic Current powermeter1/current  
MQTT Topic Power powermeter1/power  
MQTT Topic JSON powermeter1/json  sending all values in JSON format
MQTT Sending Interval 60  interval time in seconds

Hardware

hardware description pins
ESP8266 Mainboard WEMOS D1 mini lite
OLED Display WEMOS OLED Shield D1 (SCL,GPIO5), D2 (SDA,GPIO4)
AC Digital Multifunction Meter PZEM004T Module D5 (RX,GPIO14), D6 (TX,GPIO12)
WiFi LED LED + 150Ω Resistor D0 (GPIO16)
Button Touch button D7 (GPIO13)

References

esp8266-pzem004t's People

Contributors

thorsten-l avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.