Blynk ESP8266 (NodeMCU) Program for PZEM 016 Power Meter.
- If voltage is lessthan minimum set value for all 3 Phase, then it turn OFF Relay 1
- Monitors 3 PZEM 016 device data with one ESP8266 (NodeMCU) device (multiple salve)
- 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
- If voltage is lessthan minimum set value for all 3 Phase, then it turn OFF Relay 1
- Show sum of voltage, current usage, active power, active energy, frequency and power factor
- 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
- For other 1 Relays user can connect other devices to control On/Off through internet using blynk app
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
- 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.
GND to GND
5v to Vin
A to A
B to B
VCC to 3V
GND to GND
DI to D6/GPIO12
DE to D1/GPIO5
RE to D2/GPIO4
RO to D5/GPIO14
D4 to Relay Pin 1
D0 to Relay Pin 2
Vin to VCC
GND to GND
-
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.