Design and Implementation of a Microcontroller-Based Automatic Phase Selector Using Dual-Timescale Voltage Stability Evaluation
DOI:
https://doi.org/10.83080/rejost.vol6no10.365Keywords:
Automatic phase selector, voltage stability, time-based evaluation, ESP32, PZEM-004T, dual-timescale algorithm, residential power supplyAbstract
Automatic phase selectors that rely on instantaneous voltage readings are prone to unnecessary switching during transient disturbances, accelerating contactor wear. This paper presents a microcontroller-based automatic phase selector that evaluates voltage-to-time stability using two independent timescales. A four-band voltage classification is implemented: a voltage strictly below 170 V or strictly above 250 V triggers an immediate fault with no tolerance; a grace zone (170 ≤ V < 180 V and 240 < V ≤ 250 V) is tolerated for up to five seconds before being treated as a fault; an acceptable band (180 ≤ V ≤ 240 V) is never treated as a fault; and a recovery band (200–235 V) that a phase must hold continuously for one hour before earning full automatic trust. The system uses an ESP32, four PZEM-004T sensing modules, three 100 A contactors with dual-layer interlocking, and a 2.8-inch thin-film transistor (TFT) display. Bench testing yielded a switching response time of 1.93 seconds, voltage sensing accuracy with a maximum absolute error of ±0.50%, and current sensing accuracy with a maximum absolute error of ±0.50% at the 2–12 A test points the bench could supply. High-current protection was verified by injecting simulated current values because the bench could not supply 80–98 A. The prototype demonstrates the feasibility of time-based phase selection, but further testing with calibrated instruments, representative loads, and a physical high-current test setup is needed before field deployment or claims of improved contactor lifespan can be established.
References
Adamu, A. U. D., Mohammed, H., & Moshud, K. M. (2025). Construction of automatic phase selector for the generation of a steady power supply. International Journal of Development Mathematics, 2(3), 176–187. https://doi.org/10.62054-/ijdm/0203.12
Adeniyi, O. (2022). The economics of generator dependence among Nigerian SMEs. Journal of Energy Policy Studies, 14(2), 45–62.
Adesina, L. M., Ogunbiyi, O., & Jimada-Ojualope, B. (2024). Development of an automatic phase selector for Nigerian power utility customers. ABUAD Journal of Engineering Research and Development, 7(2), 16–26. https://doi.org/10.53982/ajerd.2024.0702.02-j
Akinola, O. A., Afolabi, A. S., Adebayo, A. T., Ojo, E. K., & Raji, A. A. (2024). Three phase microcontroller based automatic change-over selection switch. LAUTECH Journal of Engineering and Technology, 18(2), 161–174.
Akpan, E. P., Orike, S., & Odeyemi, F. M. (2019). An improved microcontroller-based automatic three-phase analyzer and selector. Journal of Newviews in Engineering and Technology, 1(1), 53–61.
Akinola, O. A., Afolabi, A. S., Adebayo, A. T., Ojo, E. K., & Raji, A. A. (2024). Three phase microcontroller based automatic change-over selection switch. LAUTECH Journal of Engineering and Technology, 18(2), 161–174.
Asiwe, U. M., & Usiaade, R. E. (2021). Design and construction of automatic phase selector using OP-AMP comparator. Innovative Journal of Engineering Technology, 2(1), 1–11. Retrieved from http://journals.rasetass.org/index.php/ijet/article/view/75
British Standards Institution (BSI), & Institution of Engineering and Technology (IET). (2008). BS 7671:2008 Requirements for electrical installations: IET wiring regulations (17th ed.). London, UK: BSI and IET.
Buică, E.-V., Militaru, A., Leț, D. D., & Andrei, H. L. (2026). Neutral conductor loss in residential photovoltaic installations: Overvoltage analysis and design of a contactor-based automatic transfer switch. Energies, 19(10), Article 2346. https://doi.org/10.3390/en19102346
Cárdenas Magaña, J. A., Mojica Magaña, A., & Hernández López, F. M. (2026). Experimental validation of a low-cost IoT-based residential electrical monitoring system using ESP32 and PZEM-004T. International Journal of Electrical and Computer Engineering Research, 6(2), 7–14. https://doi.org/10.53375/ijecer.202-6.527
Espressif Systems. (2022). ESP32-WROOM-32 datasheet. Shanghai, China: Espressif Systems. Retrieved from https://www.-espressif.com/sites/default/files/documentation/esp32-wroom-32_datasheet_en.pdf
Ezirim, U. I., Oweziem, U. B., Obinwa, C. C., & Ekwueme, S. O. (2015). Design of an automatic power phase selector. International Journal of Engineering and Innovative Technology (IJEIT), 5(2), 1–5.
Hidayat, K. M. W., & Al-Faris, M. G. (2025). IoT-based electrical power consumption monitoring system in households using ESP32 and PZEM-004T. Brilliance: Research of Artificial Intelligence, 5(2), 1077–1081. https://doi.org/10.47709/-brilliance.v5i2.6368
IEEE. (2019). IEEE recommended practice for monitoring electric power quality (IEEE Std 1159-2019). IEEE. https://doi.org/-10.1109/IEEESTD.2019.8796486
Ish, U. (2024). Design and construction of an automatic phase selector for 3-phase power supply. International Journal of Innovative Scientific and Engineering Technologies Research, 12(3), 64–70.
Khaldi, B. F., Dekhandji, F. Z., & Recioui, A. (2025). Low-cost IoT-based smart meter for real-time power quality monitoring and disturbance detection using embedded 1D CNN. Journal of Energy Systems, 9(4), 365–379.
Madueme, V. C., Okoli, C. C., & Obiora, G. (2018). Design and construction of an automatic phase selector with digital display. NEEE Journal of Research and Innovative Technology, 1(1), 86–93.
Mbaocha, C. (2012). Smart phase change-over system with AT89C52 microcontroller. IOSR Journal of Electrical and Electronics Engineering, 1(3), 31–34.
Mustofa, A. B. (2026). Prototype of a three-phase voltage monitoring system for induction motor protection based on Arduino ESP32 with Telegram notifications. International Journal of Health, Engineering and Technology, 5(2), 1600–1606.
Odior, A. O., & Omadudu, C. M. (2013). Some factors responsible for erratic power supply in Benin City. International Journal of System Assurance Engineering and Management, 4(1), 48–56.
Oduobuk, E., Ettah, E., & Ekpenyong, E. (2014). Design and implementation of automatic three phase changer using LM324 quad integrated circuit. International Journal of Engineering and Technology Research, 2(4), 1–15.
Ofualagba, G., & Udoha, E. E. (2017). Design and simulation of automatic phase selector and changeover switch for 3-phase supply. International Journal of Novel Research in Electrical and Mechanical Engineering, 4(2), 28–35. Retrieved from http://www.noveltyjournals.com/viewpaper/Design-and-Simulation-of-Automatic-Phase-Selector
Sahara Reporters. (2023, October 15). Benin residents lament less than one hour of electricity daily. Sahara Reporters.
Singh, N., Kumar, N., & Kumar, A. (2017). Automatic active phase selector for single phase load from three phase supply. International Journal and Magazine of Engineering, Technology, Management and Research, 4(3), 460–463.
Sukadana, I. W., Prayoga, D., & Suriana, I. W. (2026). Contactor-based ATS-AMF system design and simulation for power continuity. Journal of Electrical Engineering and Technology, 21(1), 1–12.
Uchechukwu, O. (2015). Phase selection mechanism in power distribution systems. Journal of Electrical and Electronic Engineering, 10(2), 45–51.
Vanguard. (2023, December 10). BEDC announces eight-day blackout in Warri and Effurun. Vanguard.
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Unless a different licence is clearly indicated for a particular article, articles published in the journal are made available under the Creative Commons Attribution 4.0 International (CC BY 4.0) licence. This licence permits others to read, download, copy, distribute, share, adapt, and build upon the published work, including for commercial purposes, provided that appropriate credit is given to the original author(s), the article is properly cited, and any changes made to the original work are clearly indicated.



