Blynk ESP8266 (NodeMCU) Program to connect multiple PZEM 004T v3.0 Power Meter.
1) PZEM-004T v3.02) NodeMCU
3) Blynk App
Open settings.h and change Bynk Auth code, Wifi settings, server settings and few other parameters as per your project requirement.
PZEM-004T v3.0 to NodeMCU
PZEM Device 1:
5v to vin
RX to D6 (TX Pin)
TX to D5 (RX Pin)
GND to GND
PZEM Device 2:
5v to vin
RX to D6 (TX Pin)
TX to D5 (RX Pin)
GND to GND
For wiring image: https://didactronica.com/wp-content/uploads/2019/03/ASDADSASD.png
-
Download and install the Blynk Mobile App for iOS or Android.
-
Scan the QR code at the bottom of this page to clone the screenshot below, or create a new project yourself and manually arrange and setup the widgets.
-
Email yourself the Auth code.
-
Download this repo and copy the files in to your sketches directory. Open the sketch in Arduino IDE.
-
Go to the settings.h tab. This is where all the customisable settings are. You should be able to change almost everything from there before compiling.
Note:
For multiple PZEM 004T v3.0 device, first we need to assign address to each device or else this program won't work. Make sure you assign address to each PZEM device one by one by connection only one PZEM device to network/Nodemcu and upload our program and uncomment below line in the program.
changeAddress(0x01, 0x02);
This task need to be done once only. Once address assignment is done, comment it again and upload the program to NodeMCU and connect all the new address assigned PZEM devices to network(nodemcu) and now you will start receving data from multipe pzem devices.