In this opportunity we will integrate our active power meter or electric consumption,Pzem-004 - Peacefair with the IoT Node-RED integration platform used in previous tutorials, we will use an ESP8266 module configured as Modbus TCP / IP slave, later we will visualize the measurements in Node- RED Dashboard to visualize the 4 available variables such as active power, accumulated electrical consumption, voltage and current.
Previous Tutorials Recommended
Installation Platform Node-Red
In the following tutorial we will indicate how to install Node-RED for linux and in case of other OS we recommend Virtualbox.
Updating ESP8266 Industrial Modbus TCP IP V2.0
A long time ago I made some tests of ESP8266 as a Modbus TCP/IP slave, the following tutorial can be taken as background information of the current tests.
Electricity consumption meter Peacefair PZEM 004 + ESP8266 & Arduino Nano
If you want to know more about Pzem-004 Peacefair , I recommend the following tutorial:
Features, Arduino connections and ESP8266.
We will measure the electrical consumption of a resistance to heat water, consume approximately 920 Watts and we will visualize the measurements in a dashboard created in Node-RED Dashboard and the communication implemented Modbus TCP / IP.
Materials and where to buy them very cheap !!
- Meter PZEM 004 with display
- Meter PZEM 004T & Three phase meters
- Immersion heater / Resistance Water heater
- ESP8266 NodeMCU
Video Complete Test:
Documentacion Completa y descargas: http://pdacontroles.com/medidor-pzem-004-esp8266-plataforma-iot-node-red-modbus-tcpip/
Complete Documentation and downloads: http://pdacontrolen.com/meter-pzem-004-esp8266-platform-iot-node-red-modbus-tcp-ip/