Development of an ESP32-Based 24 VDC Automatic Transfer Switch for Uninterrupted DC Power Supply

Authors

  • M. Taufik Permana Politeknik Negeri Sriwijaya
  • Ade Silvia Handayani Politeknik Negeri Sriwijaya
  • Suroso Politeknik Negeri Sriwijaya
  • Idham Mashar PT. Kamiko Cipta Solusi

DOI:

https://doi.org/10.31851/ampere.v11.i1.22010

Keywords:

Automatic Transfer Switch, ESP32, Solid State Relay, PZEM-004T, PZEM-017

Abstract

Disturbances in the main power source can cause DC loads to stop operating and may damage industrial equipment. Designing an ESP32-based 24VDC Automatic Transfer Switch (ATS) hardware system to ensure DC load power continuity was the goal of this project. Solid State Relays (SSR1 and SSR2) were controlled by an ESP32 microcontroller that processed data from the PZEM-004T AC sensor and the PZEM-017 DC sensor. SSRs were chosen because of their long operating lifetime and rapid switching speed. The PZEM-004T sensor demonstrated a mean error of 0.22% during evaluation, while the PZEM-017 sensor registered a deviation of 1.86%. The automatic system achieved an average transfer time of 1.06 s from the power supply to the battery and 1.10 s from the battery back to the power supply. The developed hardware successfully maintained power continuity for DC loads automatically.

References

[1] V. M. Ojo, K. E., Saha, A. K., & Srivastava, “Microgrids ’ Control Strategies And Real-Time Monitoring Systems : A Comprehensive Review,” Energies, Pp. 1–34, 2025, Doi: Https://Doi.Org/10.3390/En18133576.

[2] M. Veizaga Et Al., “Classification Of Voltage Sags Causes In Industrial Power Networks Using Multivariate Time-Series,” Iet Gener. Transm. Distrib., 2023, Doi: 10.1049/Gtd2.12765.

[3] N. R. As, F. I. Prakoso, E. Supriyadi, S.-T. Elektro, F. T. Industri, And I. Sains, “Analisa Panel Ats Dan Amf Genset Secara Automatis,” Sinusoida, No. 2, Pp. 1–8, 2022, Doi: Https://Doi.Org/10.37277/S.V24i2.1461.

[4] L. D. Asrar And B. Kurniawan, “Perancangan Automatic Transfer Switch ( Ats ) Berbasis Arduino Uno Dengan Sensor Pzem-004t,” J. Kaji. Tek. Elektro, Vol. 2, No. September, Pp. 70–74, 2022, Doi: Https://Doi.Org/10.52447/Jkte.V7i2.6526.

[5] A. Irawati, I., Sunardi, S., & Nurwanto, “Rancang Bangun Pembangkit Listrik Tenaga Surya (Plts) Dengan Sistem Kontrol Automatic Transfer Switch (Ats) Dan Optimalisasi Kapasitas Baterai,” Jeis J. Elektro Dan Inform. Swadharma, Vol. 3, No. (1), Pp. 22–30, 2023, Doi: Https://Doi.Org/10.56486/Jeis.Vol3no1.288.

[6] M. H. Yusra And A. W. Dani, “Perancangan Sistem Automatic Transfer Switch Berbasis Esp32 Terintegrasi Scada Dan Iot Pada Plts,” J. Teknol. Elektro, Vol. 17, No. 01, Pp. 35–43, 2026, Doi: 10.22441/Jte.2026.V17i1.006.

[7] L. A. Wenno, B. J. Waworuntu, S. N. Rumokoy, H. G. Kaunang, And S. B. Dodie, “Konsep Pemanfaatan Teknologi Iot Berbasis Esp32 Untuk Sakelar Cerdas Pada Sistem Plts Rakit Rumah Apung,” J. Elektr., Vol. 04, No. 02, Pp. 1–9, 2025, Doi: Https://Doi.Org/10.65485/Elektrik.V4i2.1171.

[8] A. Wisnu, A. Kristanto, S. T. Elektro, F. Teknik, And U. N. Surabaya, “Pemodelan Automatic Transfer Switch (Ats) Pada System Smartgrid Pembangkit Photovoltaic Dan Pln Berbasis Internet Of Things (Iot) Untuk Monitoring Penggunaan Daya Listrik,” J. Tek. Elektro, Pp. 351–360, 2022, Doi: Https://Doi.Org/10.26740/Jte.V11n2.P351-360.

[9] N. Salsabila And S. I. Haryudo, “The Control And Monitoring System Of Hybrid Internet Of Things-Based Automatic Transfer Switch (Ats) Model,” J. Telecommun. Electron. Control Eng., Vol. 8275, Pp. 119–131, 2023, Doi: Https://Doi.Org/10.20895/Jtece.V5i2.1119.

[10] M. A. Basil And H. Afrisal, “Perancangan Sistem Automatic Transfer Switch Pada Inverter Dengan Monitoring Baterai Berbasis Mikrokontroler,” Transient J. Ilm. Tek. Elektro, Vol. 10, No. 4, Pp. 566–571, 2021, Doi: 10.14710/Transient.V10i4.566-571.

[11] A. Rizal-Alfariski, M., Dhandi, M., & Kiswantono, “Automatic Transfer Switch ( Ats ) Using Arduino Uno , Iot-Based Relay And Monitoring Dan Monitoring Berbasis Iot,” Jtecs J. Sist. Telekomun. Elektron. Sist. Kontrol Power Sist. Dan Komput., Pp. 1–8, 2022, Doi: Https://Doi.Org/10.32503/Jtecs.V2i1.2238.

[12] S. I. Akbar, “Monitoring Automatic Transfer Switch Dan Baterai Berbasis Iot Menggunakan Mikrokontroler Avr Dan Esp32,” Transient J. Ilm. Tek. Elektro, Vol. 10, No. 2, Pp. 51–60, 2022, Doi: Https://Doi.Org/10.14710/Transient.V11i2.51-60.

[13] S. Dahlan, M., Wibowo, B. C., & Solekhan, “Monitoring The Amount Of Electricity Installation Using The Android Application,” J. Tek. Elektro Dan Komput., Vol. 11, No. 2, Pp. 77–86, 2022, Doi: 10.35793/Jtek.11.2.2022.39994.

[14] G. F. Putra, M. Fajar, H. Nauwir, And A. Pangkung, “Sistem Data Logger Pembangkit Listrik Tenaga Surya Berbasis Iot Menggunakan Sensor Pzem- 004t,” Sinergi, Vol. 23, No. 1, Pp. 93–99, 2025, Doi: Http://Dx.Doi.Org/10.31963/Sinergi.V23i1.5515 Sistem.

[15] B. Zurifqyaldi, T. Hasannuddin, And T. Zulfadli, “Perancangan Sistem Monitoring Arus Dan Tegangan Menggunakan Iot Pada Plts Off Grid,” J. TEKTRO, vol. 9, no. 2, pp. 115–122, 2025, doi: http://dx.doi.org/10.30811/tektro.v9i2.8282.

[16] R. Falentino and R. P. Pratama, “Rancang Bangun Monitoring Kondisi Baterai dan Lokasi Kendaraan Listrik Berbasis Mikrokontroler Esp32,” Mars J. Tek. Mesin, Ind. Elektro dan Ilmu Komput., vol. 3, 2025, doi: https://doi.org/10.61132/mars.v3i3.916.

[17] S. Widiastuti, “Rancang Bangun Panel Ats (Automatic Transfer Switch) Sebagai Listrik Alternatif Pada Sumber PLN Sri,” J. Ilm. Wahana Pendidik., vol. 9, no. June, pp. 880–884, 2023, doi: https://doi.org/10.5281/zenodo.8185986.

[18] A. Kurniawan and S. I. Haryudo, “Design and Construction of a 1 Phase Automatic Transfer Switch ( ATS ) System Based on Outseal PLC Mega V . 3 for Household Electrical Installations,” J. Telecommun. Electron. Control Eng., vol. 06, no. 02, pp. 97–108, 2024, doi: 10.20895/JTECE.V6I2.1432.

[19] M. N. Hidayat, W. S. Wijaya, and R. I. Putri, “Automatic transfer switch for DC system application,” Int. J. Power Electron. Drive Syst., vol. 15, no. 1, pp. 386–394, 2024, doi: 10.11591/ijpeds.v15.i1.pp386-394.

[20] I. Musi, B. Widarto, and M. F. Rahman, “Sistem Otomatisasi Perpindahan Sumber Daya Listrik Pln- Genset Berbasis Iot Dengan Mikrokontroler Esp32-Arduino,” J. Tek. Elektro dan Inform., vol. 20, pp. 12–19, 2025, doi: https://doi.org/10.30587/e-link.v20i2.10057.

[21] L. F. Ishak and B. I. Kurniawan, “Rancang Bangun Panel Automatic Transfer Switch ( Ats ) Untuk Daya Satu Phasa Berbasis Web Server,” J. LITEK J. List. Telekomun. Elektron., vol. 18, no. 2, 2021, doi: http://dx.doi.org/10.30811/litek.v18i2.2292.

[22] S. L. Zaen, “Sistem Monitoring Pemakaian Energi Listrik Rumah TanggA,” J. ELKON, vol. 01, no. 01, pp. 15–24, 2021, doi: https://doi.org/10.31963/sinergi.v23i1.5515.

[23] A. Delila, L. Ganda, P. Tumanggor, S. T. Aditya, F. Mutiah, and I. Halimi, “Sistem Monitoring Beban DC Menggunakan Sensor PZEM-017 Terintegrasi PLC Outseal dan HMI,” Pros. Semin. Nas. Tek. Elektro, vol. 11, pp. 1–5, 2025, [Online]. Available: https://prosiding.pnj.ac.id/index.php/SNTE/article/view/4073

Downloads

Published

2026-07-27

How to Cite

[1]
“Development of an ESP32-Based 24 VDC Automatic Transfer Switch for Uninterrupted DC Power Supply”, AMPERE, vol. 11, no. 1, pp. 61–70, Jul. 2026, doi: 10.31851/ampere.v11.i1.22010.