Giter Site home page Giter Site logo

blynk-multiple-pzem-016's Introduction

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

blynk-multiple-pzem-016's People

Contributors

pkarun avatar

Stargazers

 avatar

Watchers

 avatar

blynk-multiple-pzem-016's Issues

ESP keeps disconnecting from Blynk when PZEM not connected with Power supply

NodeMCU (ESP8266) Keeps frequently disconnecting from the blynk server when all Pzem devices (3 no) not connected with the power supply; that is when we don't give AC input to PZEM devices.

It works fine if all PZEM devices are connected with AC Input. It fails only when no AC input to all 3 PZEM devices.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.