HOW I BUILT MY PROJECT and WORKING:
The Node-MCU(Controller) is connected to PZEM sensor which calculates the units of power used and Relay controls the MCB.
We set the limit of power consumed and if it reached the limit the relays turns on and switches the MCB off to stop the power supply.
Relay will turn the MCB off when it detects that the supply and return current are not balanced.
The load wire is inserted inside the PZEM sensor which calculates the power used displays it in LCD. We can see the power consumed by using the HTML page, by copying the IP address and pasting it in the chrome browser.
A static IP address is created for this.
It displays the power consumed, current, and voltage etc., used.
By using the mobile phone we can see the amount of power consumed in our home or work place and conserve the electricity accordingly.
IMAGES:
CIRCUIT DIAGRAM: