Design and Build Automatic Transfer Switch (ATS) with Zero Crossing Detection for Off-Grid Solar Power Systems and PLN Networks
Downloads
Power interruptions can disrupt the operation of essential electrical loads, while transferring between utility-grid power and a photovoltaic (PV) inverter requires careful coordination when both sources are energized. This study designed, developed, and evaluated an automatic transfer switch (ATS) incorporating zero-crossing detection to estimate the phase-angle difference between a battery-backed, off-grid PV inverter and the utility grid operated by Indonesia's State Electricity Company (Perusahaan Listrik Negara, PLN). An Arduino Nano ESP32 microcontroller controlled electrically interlocked relays across three operating modes, supported by a local display and remote monitoring through the Blynk platform. Laboratory testing evaluated voltage and frequency measurement accuracy by comparing sensor readings with reference multimeter and oscilloscope measurements. The tests also assessed control logic, phase-angle-based transfer decisions, and switching performance under resistive and nonlinear electrical loads. The mean absolute percentage errors (MAPEs) for voltage and frequency measurements were below 5%, while the mean absolute phase-angle error was 1.20°. The prototype operated as intended across all 17 operating scenarios and six additional trials involving configurable phase-angle thresholds ranging from 5° to 10°. Following a utility-grid failure, the transfer from PLN to the inverter was completed within 46.8 ms. During planned transfers back to the PLN grid, the controller delayed switching until the measured phase-angle difference satisfied the configured threshold. These findings demonstrated that the proposed ATS prototype could restore power rapidly following a utility-grid interruption while incorporating a configurable phase-angle criterion for planned source transfers. The results supported the feasibility of integrating zero-crossing detection with microcontroller-based ATS control for battery-backed off-grid PV systems, although the demonstrated performance was limited to the specified laboratory conditions and tested load characteristics.
Copyright (c) 2026 Rendy Wahyudi, Dedi Nugroho

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlike 4.0 International (CC-BY-SA). that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.





