Simple Test Meter PZEM-004 & ESP8266 Platform IoT Node-RED Dashboard Modbus TCP/IP
ConnectionsNote: The PZEM-004 meter requires an adaptation to 3.3v communication, more information references below.
The routine created in Arduino IDE, ESP8266performs the reading of the meter PZEM-004 through the serial port, from previous tests with Modbus TCP / IP a routine was created cut for sending and receiving of Holding Registers.
4 variables have been defined in 4 Holding Registers:
- empty = Holding Register[0].
- Instantaneous voltage = Holding Register[1].
- Instant current = Holding Register[2].
- Instant power = Holding Register[3].
- Accumulated power = Holding Register[4].
The values of the meter are floating type, the Holding Registers are 16-bit Integers, in this case by practicality simply multiplying by 10 we perform the sending of the value, in next tests we will carry out the shipment in 2 integers of 16 bits.
Complete Documentation and downloads:
http://pdacontrolen.com/meter-pzem-004-esp8266-platform-iot-node-red-modbus-tcp-ip/
Documentacion Completa y descargas:
http://pdacontroles.com/medidor-pzem-004-esp8266-plataforma-iot-node-red-modbus-tcpip/
Comments
Please log in or sign up to comment.