MITOR: Jurnal Teknik Elektro Design and Construction of Inverse Time & Definite Time Overcurrent Relay Based on Arduino Uno Lucianus H. Ipniansyah. Abdurrahim. Toto N. O . Gusti F. Muhammad A. Rizky A. Departement of Electrical Engineering Oe Samarinda State Polytechnic Samarinda. Indonesia O totonrh234@gmail. Abstract Oe This system is designed to detect overcurrent faults, then disconnect them from the circuit. In inverse time overcurrent relay, the relay trip time will depend on the magnitude of the fault current. The greater the fault current, the shorter the relay trip time will be. Meanwhile, in definite time overcurrent relay, the relay trip time will work according to the specified time. This system consists of Arduino Uno. PZEM-004T, and relay module. PZEM-004T acts as a current sensor that can measure the current value flowing in the load. Arduino Uno is used as a microcontroller that can process data that has been measured through PZEM-004T. Then, if the current flowing in the load has exceeded the specified value, the Arduino Uno will activate the relay that can disconnect the current flowing in the load. The system was tested using an induction motor and variable resistor. The test results show that this system works effectively and efficiently, and can protect the load from damage due to overcurrent Keywords Oe Arduino Uno. Overcurrent Relay (OCR). inverse time overcurrent relay. definite time overcurrent relay. PZEM-004T. I NTRODUCTION LECTRICAL power systems are critical infrastructures that support industrial operations, commercial activities, and residential needs in modern society. The continuity, stability, and quality of electrical energy supply determine the operational reliability of many essential devices and services. Therefore, power system protection plays an important role in preventing equipment damage, ensuring safety, and minimizing outages caused by electrical disturbances. One of the most common disturbances in distribution networks is overcurrent, which can occur due to short circuits, overloads, insulation failures, grounding faults, or network instability. If an overcurrent condition is not handled immediately, excessive thermal stress may occur, resulting in permanent damage to electrical components, reduced equipment lifespan, and even catastrophic hazards such as fires . overcome this issue, an appropriate protection system must be installed to detect and isolate the faulty secThe manuscript was received on November 5, 2025, revised on December 1, 2025, and published online on March 27, 2026. Emitor is a Journal of Electrical Engineering at Universitas Muhammadiyah Surakarta with ISSN (Prin. 1411 Oe 8890 and ISSN (Onlin. 2541 Oe 4518, holding Sinta 3 accreditation. It is accessible at https://journals2. php/emitor/index. tion from the healthy system, preventing disturbance Among the existing protection devices. Overcurrent Relay (OCR) is one of the most widely used technologies due to its simplicity, selectivity, and effectiveness as both primary and backup protection in distribution networks, transformers, generators, and transmission substations . , . OCR operation is carried out by comparing the measured current with a predefined threshold . ickup curren. When the measured current exceeds this threshold, the relay will send a trip signal to disconnect the electrical load. Two widely applied OCR operating characteristics include inverse time and definite time. Inverse Time Overcurrent Relay provides a shorter tripping duration as the fault current becomes higher, making it suitable for overload protection and protection coordination between multiple relay levels . Ae. Conversely. Definite Time Overcurrent Relay operates with a constant tripping duration that is independent of the magnitude of the fault current, enabling precise and selective protection settings in multi-layered networks . Ae. In line with the increasing need for practical learning media in protection technology, this study focuses on designing and implementing a prototype of an inverse time and definite time OCR using Arduino Uno. Copyright: A 2024 by the authors. This work is licensed under a Creative Commons AttributionOeNonCommercial 4. 0 International License (CC BYOeSA 4. Emitor: Vol 26. No 1: March 2026 integrated with PZEM-004T as current sensor, relay modules for switching, and an LCD display for monitoring. Apart from functioning as an overcurrent protection device, this prototype also serves as a training tool in educational laboratories to enhance understanding of microcontroller-based protective relay systems. Experimental testing was carried out by applying various levels of fault currents to evaluate the accuracy of the current measurement and the consistency of the tripping characteristics based on theoretical curves. The performance evaluation aims to validate that the proposed system is able to operate quickly, selectively, and reliably according to inverse time and definite time protection principles. II. R ESEARCH M ETHODS The block diagram in Figure 1 represents the fundamental architecture of the microcontroller-based overcurrent protection system that has been designed and implemented in this research. The system is initiated by receiving electrical energy from a 220V AC mains source, which is the standard voltage level commonly used in residential and industrial power distribution Since electronic control devices such as the Arduino Uno cannot directly operate at high AC voltage levels, an AC to DC conversion stage is placed at the front end of the system . This converter plays a crucial role in transforming the high-voltage alternating current into a safe, stable low-voltage direct current Failure to perform this conversion would not only render the system inoperable but could also cause severe damage to sensitive semiconductor components. Figure 1: Block Diagram of the System After the voltage is regulated, the DC power is distributed to various functional subsystems according to their operational requirements. As the central processing element, the Arduino Uno is responsible for acquiring real-time measurement data, executing computational algorithms, and commanding the actuation of the protection switching device . Communication between the sensing subsystem and the controller is continuously established through digital serial communication, where the PZEM-004T sensor module transmits essential electrical characteristics such as load current, voltage, and power . , . These measurements serve as critical diagnostic inputs that form the basis of the systemAos decision-making logic in identifying abnormal and hazardous overload conditions. To align the protection behavior with practical relay coordination strategies, the system provides humanAemachine interaction capabilities. A set of userinput components, including push buttons and a keypad, facilitate the configuration of key protection parameters. The operator may select between inverse time protection and definite time protection modes depending on the level of sophistication and coordination required in a given application. In inverse time mode, the system models traditional power system relays by adjusting the trip delay proportionately to the severity of the overcurrent. Conversely, in definite time mode, the relay executes a predetermined fixed delay once an overcurrent is detected. This duality enables the system to accommodate diverse fault scenarios and reinforces its applicability within both academic settings and practical field demonstrations. Furthermore, the keypad allows users to set custom threshold current values and trip delays, offering flexibility in adapting the relay behavior to different types of electrical loads. To enhance operational transparency and monitoring accuracy, a 2 y 16 LCD with I2C communication is integrated to present real-time operating data, including actual load current levels, selected protection features, and the relay status. This ensures that the operator can monitor system performance continuously without the use of additional debugging equipment, allowing for efficient prototyping, testing, and field operation. Once the Arduino detects that the measured current surpasses the configured protection threshold, it immediately activates the relay driver circuit. The relay then performs an electrical isolation process by disconnecting the load from the supply, preventing escalation of fault conditions such as excessive heating, component damage, and potential fire hazards. The disconnection event is also visually indicated through the LCD display, and the system enters a protective DOI:10. 23917/emitor. state while awaiting manual reset. This ensures that the system does not auto-reclose onto a still-existing fault, upholding safe restoration practices. In summary, the block diagram in Figure 1 illustrates a compact yet highly functional protection scheme where sensing accuracy, intelligent programmable control, safety-oriented actuation, and intuitive user interaction are cohesively integrated. This emphasizes the potential of microcontroller-based relay systems to serve not only as effective learning tools for educational institutions but also as practical alternatives to conventional protection relays in small-scale installations requiring high flexibility, reliability, and cost efficiency. Materials This research utilizes a combination of essential hardware components that are carefully integrated to form an intelligent and autonomous overcurrent protection At the core of this system lies the Arduino Uno, a microcontroller development board powered by the ATmega328 architecture, equipped with 14 digital I/O pins and 6 analog input ports for sensor interfacing and control signal processing . The Arduino Uno is responsible for performing computational tasks such as reading measurement data, executing relay protection algorithms, and determining trip decisions based on overcurrent conditions. Figure 2 shows the Arduino Uno used in this study, illustrating its structural design and pin configuration, which play a vital role in signal routing and correct wiring implementation. For accurate monitoring of electrical parameters, the PZEM-004T module is employed as the main sensing component. This instrument is capable of measuring alternating current (AC), voltage, real-time power, and accumulated energy usage with a high degree of precision . As shown in Figure 3. , the measure- Figure 2: Arduino Uno as the main controller . ment data generated from the PZEM-004T is transmitted digitally to the Arduino Uno, where the system further analyzes whether the detected current exceeds the predefined safety threshold. This continuous and dynamic data feedback ensures that the system can respond rapidly to abnormal load conditions. To support user interaction and enhance operational transparency, a 16x2 LCD module with I2C communication protocol is integrated, as displayed in Figure 3. The LCD not only serves as a visual display for current magnitude but also indicates system operation mode, trip status, and other critical messages . This real-time display allows users or field operators to observe system behavior without needing external programming interfaces, making the prototype more suitable for practical field applications and academic The switching mechanism of the protection function is controlled through a relay module illustrated in Figure 3. The relay operates as an electromechanical actuator that disconnects the power supply when an overcurrent fault occurs . It is driven directly by the digital output signal from the Arduino, thus enabling a fast and automated response to potential electrical As the supply input for this system originates from a standard 220V AC source, a reliable power conversion device is required to provide safe and stable DC voltage for all components. Therefore, a Switching Mode Power Supply (SMPS) is used to convert high-voltage AC into low-voltage DC, as shown in Figure 3. This module ensures that the microcontroller and sensing devices operate within their recommended voltage specifications, minimizing the risk of component failure due to voltage instability . Furthermore, the XL6009 (CA-6. DC-DC Step Up Module, shown in Figure 3. , is employed to elevate the DC voltage from 5V to 12V whenever required, particularly for auxiliary components that demand higher voltage levels . This flexibility in power adjustment improves modular compatibility and enhances system To reinforce load isolation and ensure rapid switching for high AC current conditions, a Solid State Relay (SSR) is also included, illustrated in Figure 3. The SSR utilizes semiconductor-based switching, which reduces mechanical wear and provides faster operational response when compared to conventional relays . Its integration ensures that the system can maintain stable performance even under frequent switching conditions, thereby increasing reliability, extending service life, and supporting safer protection Emitor: Vol 26. No 1: March 2026 In conclusion, all interconnected components presented in Figure 3 are assembled to form a unified protection system with strong measurement accuracy, efficient decision execution, and high operational reliability. This configuration supports the main objective of this researchAideveloping an innovative, intelligent, and practical learning-based overcurrent relay prototype capable of enhancing safety in low-voltage electrical installations. Start PZEM-004T Input Current Sensor If Current > Current Setting Ou 1 Ampere Yes Is it inverse Waiting up to 10 second according to the set definite time Yes . The greater the fault current, the faster the relay trip . Relay Off . Reset Figure 3: . PZEM-004T Module . LCD I2C 16x2 . Relay Module . Switching Mode Power Supply (SMPS) . Solid State Relay (SSR) . XL6009 DC-DC Step Up Module LED Indicator Figure 4: System Workflow System Workflow Explanation of Figure 4: Figure 4 illustrates the operational workflow of the protection system, beginning with the activation of the device (Star. , followed by continuous current monitoring through the input current When the sensed current exceeds the predetermined threshold limit, the system evaluates the selected operating mode to determine the appropriate protection If the inverse time mode is selected, the relay trip time becomes inversely proportional to the current magnitude, meaning that a larger fault current results in a faster relay trip as a measure of rapid protection against severe faults. Conversely, in the definite time mode, the relay operates based solely on a preset delay time regardless of the magnitude of the current, ensuring a consistent and predictable disconnection. Once the relay has operated and the fault has been cleared, the reset function restores the system to its normal monitoring status, ensuring continuous protection readiness. Thus, the workflow demonstrates a decision-based protection mechanism designed to maintain system safety and reliability under abnormal current conditions. Figure 5: Wiring Diagram of the System Wiring Diagram Figure 5 illustrates the overall wiring configuration that enables full integration between the Arduino Uno and all peripheral components, allowing the system to operate in accordance with the programmed relay protection logic. The Arduino Uno functions as the main microprocessor-based controller that continuously processes current data obtained from the PZEM-004T Once the real-time current value is read, the Arduino compares it with the user-defined setting to determine whether an overcurrent condition is present. If the current exceeds the set threshold, the Arduino im- DOI:10. 23917/emitor. mediately initiates the appropriate protection sequence by calculating the operating delay time based on the selected characteristicAieither inverse time, where higher fault currents lead to faster tripping, or definite time, where the delay remains constant regardless of current magnitude. After the decision-making stage, the Arduino sends a control signal to the relay output to disconnect the electrical circuit and protect the load from To support flexible system configuration, a because any error in detection may lead to delayed relay operation or unwanted disconnection. The relay module serves as the primary actuator in isolating the load whenever a fault occurs. Its COM. NO, and NC terminals direct the power flow, with the NO terminal connected to an LED indicator for visual confirmation of disconnection, and the NC terminal connected to the Solid-State Relay (SSR) for high-voltage load isolation. The SSR ensures safe switching of AC loads without mechanical wear, increasing overall system durability. Power distribution also plays a vital role in ensuring sta- Figure 7: Graph of Inverse Time with Is = 0. 5 A and tI> = Figure 6: Inverse Time Testing with Is = 0. 5 A and tI> = keypad is interfaced with the Arduino, allowing users to input current limit values and choose between inverse or definite time modes. These parameters directly influence the behavior of the protection algorithm, ensuring the system can adapt to different load characteristics and safety requirements. The LCD 16x2 with I2C interface provides a real-time visual display of system conditions, including voltage values, current readings, selected mode, and relay status. This display improves operational awareness and simplifies user interaction since it helps users verify whether the input settings correspond to the expected behavior. The PZEM-004T module plays a crucial sensing role by delivering accurate current measurements directly to the Arduino. This information is essential ble operation. A Switched Mode Power Supply (SMPS) converts high-voltage AC . V) to low-voltage DC . V), supplying the Arduino and sensors with stable However, some modules require a higher operating voltage. therefore, an XL6009 DC-DC Step-Up module is used to boost the voltage from 5V to 10V, fulfilling the needs of components requiring elevated supply levels. Additionally, a buzzer can be integrated to provide audible notification when the relay is triggered, confirming to the operator that the protection mechanism is actively responding to a fault. Through the combination of sensing, processing, configuration, indication, and controlled disconnection, the wiring system in Figure 13 demonstrates a reliable, automated overcurrent protection mechanism. Each component has a critical function that supports a logical chain of operation - from fault detection to safe load isolation - ensuring improved safety and system reliability in practical electrical applications. R ESULTS AND D ISCUSSION In the inverse time test, a variable resistor is used as the load and a Fluke Digital Multimeter is used as the measuring instrument. The setting current value (Is ) is determined to be 0. 5 A and tI> = 0. 1 s. The test was conducted by taking 50 measurement samples. The Emitor: Vol 26. No 1: March 2026 inverse time test results are shown in Table 1. Table 1: Inverse time relay test results for current setting Is = 0. No. Is (A) Iu (A) Iu on DMM (A) tTrip Formula . tI> . tTrip . Error (%) From Table 1, it can be seen that the larger the fault current, the faster the relay trips. The data relationship is shown in Figure 7. The results show that the system follows the inverse time characteristics, where the relay trip time decreases as the fault current increases. The average current reading error between the LCD and the Fluke Multimeter is 0. Definite Time Testing In the definite time test. Is = 0. 5 A and the relay trip time is set to 5 s. Measurement samples were taken 10 times. The results are presented in Table 2. A graph of the resulting data is shown in Figure 9. Based on the results, the fault current magnitude does not affect the relay trip time, which always remains at 5 seconds. The difference between current Figure 8: Definite Time Testing with Is = 0. 5 A and trip time = 5 s Table 2: Definite Time Testing with trip time = 5 s No. Is (A) Iu (A) Iu DMM (A) t Trip . measurements on the LCD and multimeter is also 28%, showing good system accuracy. IV. C ONCLUSION Based on the results, the inverse time and definite time overcurrent relay based on Arduino Uno successfully DOI:10. 23917/emitor. transmission line,Ay International Journal of Engineering Research and Technology, vol. 13, no. 11, pp. 3783Ae3789, . Rusdiansyah. Susilo. Kadang. Setiaji, and A. Ihsandi. AuDesign of constant time overcurrent relay single phase based on arduino uno,Ay International Journal of Current Science Research and Review, vol. 11, pp. 8559Ae8565, 2024. [Onlin. Available: https://doi. org/10. 47191/ijcsrr/V7-i11-42 Figure 9: Graph of Definite Time with Is = 0. 5 A and trip time = 5 s detects and disconnects overcurrent conditions. For inverse time, trip duration is inversely proportional to the fault current. For definite time, trip duration remains constant regardless of current. The average current reading error is only 0. 28%, indicating good measurement accuracy. R EFERENCES Suliman and M. Ghazal. AuDesign and implementation of overcurrent protection relay,Ay Journal of Electrical Engineering & Technology, vol. 15, no. 4, pp. 1595Ae 1605, 2020. [Onlin. Available: https://doi. org/10. s42835-020-00447-0 . RojnicA. Prenc. Bulat, and D. FrankovicA. AuA comprehensive assessment of fundamental overcurrent relay operation optimization function and its constraints,Ay Energies, vol. 15, no. 4, p. 1271, 2022. [Onlin. Available: https://doi. org/10. 3390/en15041271 . Khan. Al Rakib, and N. Sumaiya. AuDesign and performance evaluation of numerical relay for threephase induction motor protection,Ay International Journal of Smart Grid, vol. 7, no. 2, pp. 46Ae52, 2023. -T. Lim and S. -H. Lim. AuAnalysis on protective coordination between over-current relays with voltage component in a power distribution system with sfcl,Ay Ie Transactions on Applied Superconductivity, vol. 4, pp. 1Ae6, 2020. [Onlin. Available: https: //doi. org/10. 1109/TASC. Susilo. Sidiq. Hendra. Kurniawan, and I. Riyanto. AuDesign and development of overcurrent protection relay inverse definite minimum time type based on arduino uno,Ay International Journal of Current Science Research and Review, vol. 7, no. 10, 2024. [Onlin. Available: https://doi. org/10. 47191/ijcsrr/V7-i10-01 . Santos. Miguel. Mendoza, and J. Garcia. AuCoordinated overcurrent relay development with arduino and acs712,Ay Journal of Engineering. Technology, and Applied Science, vol. 5, no. 3, pp. 113Ae120, 2023. [Onlin. Available: https://doi. org/10. 36079/lamintang. Hasibuan. Hafidzuddin. Jannah. Jintaka, and G. Kerimzade. AuDevelopment of 220v overcurrent relay protection system based on internet of things,Ay Andalas Journal of Electrical and Electronic Engineering Technology, vol. 5, no. 1, pp. 17Ae22, 2025. [Onlin. Available: https://doi. org/10. 25077/ajet. Noman. Ullah. Khan. Qazi. Farooq. Saqr, and A. Elsheikh. AuAnalysis of overcurrent protective relaying as minimum adopted fault protection for small-scale hydropower plants,Ay International Journal of Environmental Science and Technology, vol. 21, no. 4, pp. 4457Ae4470, 2024. [Onlin. Available: https://doi. org/10. 1007/s13762-023-05284-y . Clemente. Davino. Iannone, and V. Loschiavo. AuA real-time arduino based ac-dc boost converter for vibration energy harvesting devices,Ay 2022 Ie International Conference on Omni-layer Intelligent Systems (COINS), pp. 1Ae6, 2022. [Onlin. Available: https://doi. org/10. 1109/COINS54846. El-Naily. Saad, and F. Mohamed. AuNovel approach for optimum coordination of overcurrent relays to enhance microgrid earth fault protection scheme,Ay Sustainable Cities and Society, vol. 54, p. 102006, 2020. [Onlin. Available: https://doi. org/10. 1016/j. Anuj. Radhe Kishan. Shree Kishan. Shiwangi Singh, and Ashish Kumar Mishra. AuArduino-BASED INTELLIGENT INDUCTION MOTOR PROTECTION SYSTEM,Ay EPRA International Journal of Multidisciplinary Research (IJMR), 717Ae720, apr 26 2025. [Onlin. Available: http: //dx. org/10. 36713/epra21243 . Tarasov. Solopov, and I. Kindenkova. AuApplication of integral values in relay protection and emergency automation devices based on arduino,Ay in 2025 International Russian Smart Industry Conference (SmartIndustryCo. , 2025, pp. 561Ae565. [Onlin. Available: https://doi. org/10. SmartIndustryCon65166. Silaban. Dalimunthe, and Z. AuImplementasi Sistem Proteksi dan Pemantauan Daya Rumah Berbasis IoT,Ay Power Elektronik : Jurnal Orang Elektro, vol. 3, pp. 321Ae325, oct 4 2024. [Onlin. Available: http://dx. org/10. 30591/polektro. Rauf. Dewantara, and I. Winarno. AuDesign of protection relay prototype against arduino uno overload interference in electrical installations,Ay Fidelity: Jurnal Teknik Elektro, vol. 5, no. 3, pp. 168Ae174, 2023. [Onlin. Available: https://doi. org/10. 52005/fidelity. Ibrahim. Ibrahim, and A. Hamoodi. AuDesign and implementation of overcurrent relay to protect the . Prasetyo. Triwijaya. Khakim. Prakoso, and Winarno. AuIntegrated IoT System for Real-Time Electrical Load Monitoring,Ay Journal Geuthee of Engineering and Energy (JOGE), vol. 4, no. 1, pp. 17Ae23, may 26 2025. [Onlin. Available: http://dx. org/10. 52626/joge. Darabi. Bagheri, and G. Gharehpetian. AuHighly sensitive microgrid protection using overcurrent relays Emitor: Vol 26. No 1: March 2026 with a novel relay characteristic,Ay IET Renewable Power Generation, vol. 14, no. 7, pp. 1201Ae1209, 2020. [Onlin. Available: https://doi. org/10. 1049/iet-rpg. and implementation a new real time overcurrent relay based on arduino,Ay in IOP Conference Series: Materials Science and Engineering, vol. 871, no. 1, 2020, p. Uddin. Rezaei, and O. Olufemi. AuAdaptive and optimal overcurrent protection of wind farms with improved reliability,Ay Ie Transactions on Industry Applications, 58, no. 3, pp. 3342Ae3352, 2022. [Onlin. Available: https://doi. org/10. 1109/TIA. Hameed. Sultan, and M. Booneya. AuDesign and implementation a new real time overcurrent relay based on arduino mega,Ay in IOP Conference Series: Materials Science and Engineering, vol. 881, no. 1, 2020, p. Nascimento. Brito, and B. Souza. AuAn adaptive overcurrent protection system applied to distribution systems,Ay Computers & Electrical Engineering, 81, p. 106545, 2020. [Onlin. Available: https: //doi. org/10. 1016/j. Hameed. Sultan, and M. Bonneya. AuDesign . Arbain. Susilo. Akbar. Wahyu, and M. Risky. AuArduino-based overcurrent relay design with very inverse type,Ay International Journal of Current Science Research and Review, vol. 7, no. 11, pp. 8547Ae [Onlin. Available: https://doi. org/10. 47191/ijcsrr/ V7-i11-41