Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 2.32 KB

File metadata and controls

56 lines (35 loc) · 2.32 KB

Blynk-PZEM-004T-v3.0-Multiple-device

Blynk ESP8266 (NodeMCU) Program to connect multiple PZEM 004T v3.0 Power Meter.

Requirements

1) PZEM-004T v3.0
2) NodeMCU
3) Blynk App

Installation

Open settings.h and change Bynk Auth code, Wifi settings, server settings and few other parameters as per your project requirement.

Hardware Connection

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

Software Setup

  1. Download and install the Blynk Mobile App for iOS or Android.

  2. 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.

  3. Email yourself the Auth code.

  4. Download this repo and copy the files in to your sketches directory. Open the sketch in Arduino IDE.

  5. 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.

Screenshot

project screenshot 1

Scan QR Code on Blynk App

Blynk Project QR code