Skip to content

pkarun/Blynk-Multiple-PZEM-016

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blynk with 3 PZEM-016 and NodeMCU for Phase Failure Automation

Blynk ESP8266 (NodeMCU) Program for PZEM 016 Power Meter.

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 016 device data with one ESP8266 (NodeMCU) 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 1 Relays user can connect other devices to control On/Off through internet using blynk app

Requirements

1) PZEM-016 (3 No)
2) NodeMCU (1 No)
3) MAX485 Module RS-485 TTL to RS485 MAX485CSA Converter Module (1 No)
4) 2 Channel Relay Module (1 No)
5) USB to RS485 485 Converter Adapter (optional)
6) 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-016 to NodeMCU

GND to GND
5v to Vin

Connect 3 PZEM-016 to RS485

A to A
B to B

RS-485 TTL to NodeMCU

VCC to 3V
GND to GND
DI to D6/GPIO12
DE to D1/GPIO5
RE to D2/GPIO4
RO to D5/GPIO14

NodeMCU to 2 channel Relay Module

D4 to Relay Pin 1
D0 to Relay Pin 2
Vin to VCC
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.

Product Images

PZEM-016

MAX485 Module RS-485 TTL to RS485 MAX485CSA Converter Module

USB to RS485 485 Converter Adapter

Project Screenshots

PZEM-016

PZEM-016

PZEM-016

PZEM-016

PZEM-016

Scan QR Code on Blynk App

Blynk Project QR code

Releases

No releases published

Packages

No packages published