Blynk-PZEM-004T-Phase-Failure-Automation

Blynk PZEM 004T 3 Phase failure motor automation.

What it Does?

1) If voltage is lessthan minimum set value for all 3 Phase, then it turn OFF Relay 1
2) Monitors 3 PZEM 004T v3.0 device data with one ESP8266 device (multiple salve)
3) Auto Mode ON/OFF - With Auto Mode ON, it turn ON Relay 1 if it meets all 3 Phase voltage reaches minimum voltage value. If any those condition don't satisify, then it won't turn on
4) If voltage is lessthan minimum set value for all 3 Phase, then it turn OFF Relay 1
5) Show sum of voltage, current usage, active power, active energy, frequency and power factor
6) You can update firmware using "HTTP Server OTA" method. In other words, through internet you can update firware without having physical access to device or without connecting to same network
7) For other 3 Relays user can connect other devices to control On/Off through internet using blynk app

Requirements

1) 3 PZEM-004T v3.0
2) NodeMCU
3) 4 Channel Relay Module
4) Blynk App

Installation

  • Open secret.h and change Bynk Auth code, Wifi settings, server settings and few other parameters as per your project requirement.
  • Open settings.h - Usually you don't need to change any values here, but if you need any customization feel free play with it.

Hardware Connection

PZEM-004T v3.0 to NodeMCU

PZEM Device 1:

5v to vin
RX to D6 (has TX Pin)
TX to D5 (has RX Pin)
GND to GND

PZEM Device 2:

5v to vin
RX to D6 (has TX Pin)
TX to D5 (has TX Pin)
GND to GND

PZEM Device 3:

5v to vin
RX to D6 (has TX Pin)
TX to D5 (has TX Pin)
GND to GND

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.

  6. Go to the secret.h tab. Here you change Bynk Auth code, Wifi settings, server settings and few other parameters as per your project requirement.

Screenshot

Blynk PZEM 004T 3 Phase Failure Automation Screenshot 1


Blynk PZEM 004T 3 Phase Failure Automation Screenshot 2

Blynk PZEM 004T 3 Phase Failure Automation Screenshot 3

Blynk PZEM 004T 3 Phase Failure Automation Screenshot 4

Blynk PZEM 004T 3 Phase Failure Automation Screenshot 5

Scan QR Code on Blynk App

Blynk Project QR code