Hi, guys I want to try to make a project such as an automatic transfer switch with a microcontroller can you teach me how to control the relay using pzem004t ?? so, when the 220v voltage turns off pzem004t will detect no 220v voltage then will replace the relay to turn on the generator and when the 220v voltage is back the relay will turn off the generator and return to 220v
IchsanKautsar:
Hi, guys I want to try to make a project such as an automatic transfer switch with a microcontroller can you teach me how to control the relay using pzem004t ?? so, when the 220v voltage turns off pzem004t will detect no 220v voltage then will replace the relay to turn on the generator and when the 220v voltage is back the relay will turn off the generator and return to 220v
sorry my English is bad
You'll require much more than a single relay.
Not to mention local authority approvals.
There are required delays which must be observed in both operations.
Many places do not allow software to control the actual change over detection.
I agree with previous comments about using approved equipment and local regulations .
As an example - what earth do you use ? The supply authorities earth may not be acceptable ( imagine workers somewhere working on power plant when your generator faults and puts power on an earth wire that the worker have disconnected).