Simple Test Meter PZEM-004 & ESP8266 Platform IoT Blynk App (Complete): PDAControl
8 Comments


Recommended Tutorials .. We will measure electricity consumption Using a PZEM-004 meter and an ESP8266 module “NodeMCU” The meter uses a “CT” current transformer to measure in one phase We will use a heater resistance for water as our AC load For the visualization of data we will use the Blynk platform It is an App available for “Android” and “iOs” We install the application on our device, in my case I will open it a look at the arduino IDE code an “Auth Token” is required, generated by the project in Blynk Communication with meter “PZEM” Sending data to Blynk, from virtual variables We will create a new project add “widgets” to “dashboard” blynk has “energy” units, they give us $ 2000 units of energy, each “widget” has a cost Select device “ESP8266” Automatically the “Auth Token” will be sent to our registration email we will use the “Value Display” widget $ 200 We will select the “Virtual” and the variable voltage assigned to V0 We add the following current variable V2 Sorry Voltage is the virtual variable V1 We add the following variable Power V3 We add the following variable Accumulated Power V4 We have 1200 “energy” units available We added the latest display variable scan of the esp8266 V5 Add widget “SuperChart” trend graph $ 900 Allows to graph several widgets in Simultaneous graph active power=Watts and Current Ready our Dashboard Connect our AC load Display running … 890 Watts, there was an error in the display of the current, it was in the Arduino IDE code already corrected Well this is an initial test, in next tutorials we will integrate more things, temperature and control via relay or PWM / AC Documentation, Downloads and more tests in pdacontrolen.com and pdacontroles.com … greetings

8 thoughts on “Simple Test Meter PZEM-004 & ESP8266 Platform IoT Blynk App (Complete): PDAControl

  1. Não funcionou. A mensagem que o App Blynk mostra é: "Wasn’t online yet".

    1- Procurei na web e alguns forum citam que é alguma coisa relacionada a não receber dados das portas virtuais;

    2 – Fazendo um Debug via serial percebi que o PZEM simplesmente não se conecta com o NodeMCU Lolin (fiz um while para forçar a conexão via IP com o PZEM com o Node e o código não sai da rotina);

    3 – Fiz IP fixo dentro do Node, tomando cuidado para não usar mesmas variáveis de IP do PZEM… no meu computador o PING para o IP está OK, ou seja, o Node está se comunicando com a rede wifi.

  2. Consegui resolver os problemas e fazer funcionar! Obrigado pelas dicas do site e do canal! Fiz um vídeo dele funcionando:
    https://youtu.be/hhIPwD6E43A

  3. Parabéns pelo trabalho. Preciso de sua ajuda, ao compilar o código na IDE Arduíno apresenta uma falha.

    C:Program Files (x86)ArduinolibrariesPZEM004T-masterPZEM004T.cpp: In member function 'bool PZEM004T::recieve(uint8_t, uint8_t*)':

    C:Program Files (x86)ArduinolibrariesPZEM004T-masterPZEM004T.cpp:137:37: error: 'class SoftwareSerial' has no member named 'listen'

    ((SoftwareSerial *)serial)->listen();

Leave a Reply

Your email address will not be published. Required fields are marked *