GithubHelp home page GithubHelp logo

dasetiawan / esp32-pzem004t Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 21 KB

power metering using ESP32 and PZEM004T over MQTT

C++ 100.00%
internet-of-things smart-home smarthome smartgrid smartmetering esp32 pzem004t30 pzem004t

esp32-pzem004t's Introduction

Project Description

This IoT project is to measure power and energy consumption using PZEM-004T v3 sensor and NodeMCU ESP32

Before start to monitoring, the PZEM-004T sensor must be modified first because the voltage on the sensor is 5V while the ESP32 is 3.3V. Modifications are made to the sensor by adding a resistor with a value of 1k ohms. Data read by the sensor is voltage, current, power and energy data. Data on ESP32 is converted into JSON file format and then sent to the MQTT broker (in this project I use Eclipse Mosquitto) via WiFi.

for details, check my wiki on: https://github.com/dasetiawan/ESP32-PZEM004T/wiki/ESP32-PZEM004T-Wiki!

esp32-pzem004t's People

Contributors

dasetiawan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

esp32-pzem004t's Issues

Code "Hangs" while no AC Grid Connected

Hi @dasetiawan !

Thank you for your easy to use Library!

I have a question, if I disconnect the PZEM from the Grid, the ESP/Arduino want´s always to send data and hangs in a "loop" so nothing else is excecuted untill i connect the AC Grid back? Do you have any idea how to chance this?

Thans in advance.

Did you make it work in ESP32

Hi, I try to connect PZEM004Tv3 to esp32. No back response. Works fine with ESP8266 (Software serial).
The RX LED on PZEM flashes, but not the TX LED flash (as with ESP8266)
Pins 16,17.
Any suggestions ?

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.