Automatic Power Transfer Control System Using Esp 32 Based on Wokwi Simulation
Keywords:
power systems, ESP32, microcontrollerAbstract
The reliability of electrical power systems is crucial for supporting the continuity of critical sector operations. This study aims to design, implement, and evaluate an Automatic Transfer Switch (ATS) system using ESP32 microcontroller through Wokwi simulation platform. The research employs Research and Development (R&D) methodology with ADDIE approach, encompassing analysis, design, development, implementation, and evaluation phases. The system is equipped with intelligent control algorithms including moving average filter with 10-sample window size and multi-criteria fault detection requiring 5 consecutive samples for verification. Testing was conducted through four main scenarios: fault detection, transfer time measurement, return transfer, and system stability evaluation. Results demonstrate that the system achieves excellent performance with average transfer time of 2,391 seconds, significantly faster than IEEE 446-2017 standard (10 seconds). Voltage detection accuracy reaches 98.9% with MAPE of 1.08%, while system stability shows false switching rate of only 1.25%. The switching mechanism is dominated by relay mechanical delay (91.5% of total transfer time), with detection time contributing only 6.5% and processing time 2.0%. Compared to previous studies, ESP32-based ATS offers competitive performance with optimal balance between speed, accuracy, and cost-effectiveness. This research validates the effectiveness of simulation-driven development methodology using Wokwi platform, reducing development time by 65% and prototyping costs by 70%. The findings provide a significant contribution to developing accessible and efficient ATS solutions for small and medium-scale applications, while demonstrating Wokwi's capability as a reliable embedded systems development tool.
Downloads
References
Ahmed, F., & Rahman, M. (2021). Design and implementation of automatic transfer switch for uninterrupted power supply systems. Journal of Electrical Systems, 17(3), 345-358.
Anderson, K., & Brown, L. (2023). Accuracy assessment of web-based simulation tools for ESP32 microcontroller development. Microprocessors and Microsystems, 96, 104-118.https://doi.org/10.1016/j.micpro.2023.104741
Chen, X., Liu, Y., & Zhang, W. (2022). Simulation-driven development methodology for embedded control systems: Cost and time analysis. IEEE Transactions on Industrial Electronics, 69(8), 8234-8244.https://doi.org/10.1109/TIE.2021.3112345
Hassan, M., Ali, S., & Khan, R. (2023). Intelligent voltage monitoring and switching algorithms for automatic transfer switches. Electric Power Systems Research, 215, 108-120.https://doi.org/10.1016/j.epsr.2022.108956
Ibrahim, A., & Hassan, K. (2021). Voltage measurement and signal conditioning techniques for microcontroller-based monitoring systems. Measurement, 178, 109-121.https://doi.org/10.1016/j.measurement.2021.109385
Johnson, M., & Williams, R. (2023). Evaluating web-based simulation platforms for embedded systems education. International Journal of Engineering Education, 39(2), 445-458.
Kumar, A., & Patel, D. (2022). Advanced signal processing techniques for power quality monitoring in smart grids. International Journal of Electrical Power & Energy Systems, 142, 108-119.https://doi.org/10.1016/j.ijepes.2022.108345
Kumar, A., & Singh, P. (2022). ESP32-based smart energy management system for residential applications. Journal of Electrical Engineering & Technology, 17(4), 2315-2327.https://doi.org/10.1007/s42835-022-01089-3
Maier, A., Sharp, C., & Vagapov, Y. (2022). Comparative analysis and practical implementation of the ESP32 microcontroller module for the internet of things. Internet of Things, 20, 100-115.https://doi.org/10.1016/j.iot.2022.100634
Nugroho, S., Prasetyo, B., & Wibowo, A. (2023). Automatic transfer switch using Arduino Mega 2560 for hospital backup power system. Journal of Electrical Technology, 14(1), 56-64.
Rahman, F., Hidayat, N., & Susanto, D. (2021). Design and construction of a PLC-based automatic transfer switch for office buildings. Journal of Electrical Engineering, 17(2), 89-97.
Singh, A., & Verma, R. (2021). Performance analysis of automatic transfer switches in critical power systems. Electric Power Components and Systems, 49(6-7), 567-580.https://doi.org/10.1080/15325008.2021.1943063
Wijaya, K., & Kusuma, H. (2022). Development of an automatic transfer switch using ESP8266 for residential electrical systems. Journal of Automation, Control, and Instrumentation, 13(2), 78-86.
Zhao, J., & Liu, M. (2023). High-precision voltage measurement techniques using microcontroller ADC with calibration algorithms. Sensors, 23(4), 2156-2171.
Hamdani, AS, & Firmansyah, D. Study of 50 kg capacity smart goods lift development using solar power plant (PLTs).
Situmorang, HF, Hamdani, ST, & Pristisal Wibowo, ST (2024). Analysis of the Use of Capacitor Banks in Efforts to Improve Power Factors in Low Voltage Main Distribution Panels (LVMDP) at PT. PHPO Kim II. Repository-Panca Budi Development University.
Tharo, Z., Hamdani, H., & Andriana, M. (2019, May). Hybrid solar and wind power plants as an alternative source to address the fossil fuel crisis in Sumatra. In Proceedings of the UISU National Engineering Seminar (SEMNASTEK) (Vol. 2, No. 1, pp. 141-144).https://doi.org/10.36217/semnastek.v2i1.86
Anisah, S., Tharo, Z., Hamdani, H., & Butar, AKB (2023). Optimization Analysis of Solar and Wind Power Hybrid Power Plant Systems. Proceedings of Dharmawangsa University, 3(1), 614-624.https://doi.org/10.46576/jpkm.v3i1.2578











