Meter PZEM-004 + ESP8266 & Platform IoT Blynk App

by Jhon_Control in Circuits > Arduino

249 Views, 0 Favorites, 0 Comments

Meter PZEM-004 + ESP8266 & Platform IoT Blynk App

media_vista_blynk.jpg

In this opportunity we will integrate our active power meter or electric consumption, Peacefair Pzem-004 with the IoT Blynk app platform available in Android & iOS apps stores using an ESP8266 module, later we will create a dashboard to visualize the 4 available variables as active power, accumulated electrical consumption, voltage and current.

Complete Tutorial PDAControl

  • Meter PZEM-004 + ESP8266 & Platform IoT Blynk App

http://pdacontrolen.com/meter-pzem-004-esp8266-pla...

  • Medidor PZEM-004 + ESP8266 & Plataforma IoT Blynk App

http://pdacontroles.com/medidor-pzem-004-esp8266-p...

Materials and Where to Buy Them Very Cheap !!

vista_completa_blynk.jpg

Simple Test Meter PZEM-004 & ESP8266 Platform IoT Blynk App (Complete)

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

Power Meter PZEM 004 Peacefair + Arduino & ESP8266

Power Meter PZEM 004 Peacefair + Arduino & ESP8266 : PDAControl

Arduino IDE Code

Arduino_ide.png

The routine created in Arduino IDE, esp8266 performs the reading of the meter pzem-004 through the serial port.

5 variables have been defined:

  1. Instantaneous voltageInstant current.
  2. Instant power.
  3. Accumulated power.
  4. Scan ms, to verify the communication with the esp8266.

For the sending to the Blynk platform, 8 virtual writing variables have been created, and the data is sent every 10 seconds.

Dashboard and Widgets Blynk

Widgets.png
runtime.png
diseño_dash.png

Conclusions and More Test

20180224_132156.jpg
20180224_132110.jpg

Conclusions

The application worked excellent without any problem, as long as the correct reading of the meter is guaranteed, the visualization in Blynk will not be affected In general there was no major complication, this is only a basic test, in future integrations with Blynk derived from this project we could perform:

  • Measurements of temperature
  • Heating resistance control via Relay or PWM AC.
  • Integrations with Wifimanager to facilitate configuration.
  • OTA integrations for remote programming of esp8266.

Note: If you plan to make a complete or permanent connection application with Blynk you should consider the general questions and terms attached.

Blynk is free?

Complete Tutorial PDAControl

  • Meter PZEM-004 + ESP8266 & Platform IoT Blynk App

http://pdacontrolen.com/meter-pzem-004-esp8266-pla...

  • Medidor PZEM-004 + ESP8266 & Plataforma IoT Blynk App

http://pdacontrolen.com/meter-pzem-004-esp8266-pla...