Journal of Electrical Engineering and Computer Sciences Vol. No. June 2023 P-ISSN: 2528-0260 E-ISSN: 2579-5392 PROTOTYPE OF AUTOMATIC TRANSFER SWITCH (ATS) FOR SOLAR POWER PLANT BASED ON ARDUINO UNO MUHAMMAD ALFIAN HARIS PRASTYA, *BAMBANG PURWAHYUDI Study Program of Electrical Engineering. Universitas Bhayangkara Surabaya Jl. Yani 114. Surabaya. Indonesia E-mail: bmp_pur@ubhara. Corresponding author ABSTRACT Electrical energy plays an important role in supporting daily human activities. The need for electrical energy always increases according to population growth. However, the supply of electrical energy is not proportional to population To meet the demand for electrical energy, it is necessary to develop and use alternative energy such as solar In this paper, the prototype of Automatic Transfer Switch (ATS) for PLN and solar power plant (SPP) is carried out so that the supply of electrical energy to the load can be distributed continuously. ATS is electromechanical equipment that operates automatically to move the source of electrical energy from the main grid (PLN) network to SPP when the PLN network occur a faults or blackout. ATS will restore the source of electrical energy from PLN automatically when the supply of electrical energy from PLN has returned to normal condition. ATS components consist of voltage and current sensors, microcontroller and relay respectively. ATS use microcontroller Arduino Uno ATmega328 type to control the main switch . The test results show that ATS succeeded in moving the source of electrical energy from PLN to SPP when there is a disturbance or blackout condition and ATS will returns the source of electrical energy to PLN when conditions back to normal. Keywords: Automatic Transfer Switch (ATS). Solar Power Plant (SPP). Microcontroller. Inverter. INTRODUCTION The electrical energy resources are one of the important factors to support the daily human activities in the sectors of resident, industrial and also transportation. For this reason, electrical energy from The State Electricity Company (PLN) must be continuously supplied to customers or load so that the daily human activities can be carried out well. fact, the supply of electrical energy from PLN is not always continuous sometimes it is discontinuous suddenly due to faults or maintenance. Thus, alternative energy such as solar energy, micro hydro energy and wind energy are needed to meet the demand for electrical energy . To overcome this problem, an Automatic Transfer Switch (ATS) is needed which connects the load to two or more electricity sources consisting of main and alternative electricity sources. Many ATS have been researched and discussed by many researchers. ATS has been used for solar power plant (SPP) and PLN using Programmable Logic Controllers (PLC) . , solar power plant (SPP) and Generator Set . , and solar power plant (SPP) and wind power generation . In addition. ATS is also needed to control the electricity source from PLN. PLTS and Generator Set . In Indonesia, solar energy as an electrical energy resource has not been optimally utilized in the daily activities. Solar energy is safe energy recourses, free, unlimited and environmentally friendly. The average solar radiation energy intensity is 4. 5 kWh/m2 per day . In this paper, the design and implementation of Automatic Transfer Switch (ATS) for PLN and solar power plant (SPP) is carried out so that the continuity of the electricity source to the load can be ATS is electromechanical equipment that operates automatically to move the source of electrical energy from the main grid (PLN) network to SPP when the PLN network occur a faults or blackout. ATS will restore the source of electrical energy from PLN automatically when the supply of electrical energy from PLN has returned to normal ATS components consist of microcontroller, voltage and current sensors, relay, inverter and battery ATS use microcontroller Arduino Uno AT-mega 328 type to control the main switch . DOI: https://doi. org/10. 54732/jeecs. Available online at: https://ejournal. id/jeecs Journal of Electrical Engineering and Computer Sciences Vol. No. June 2023 P-ISSN: 2528-0260 E-ISSN: 2579-5392 The test results show that ATS succeeded in transferring the source of electrical energy from PLN to SPP when there is a disturbance or blackout condition and ATS will returns the source of electrical energy to PLN when conditions back to normal. RESEARCH METHODOLOGY ATS system proposed consists of voltage and current sensor, microcontroller and relay, respectively. Microcontroller used in ATS is Arduino Uno AT-mega 328 type to control the main switch . The block diagram of ATS system for Solar Power Plant (SPP) and the research methodology employed to implement the prototype of automatic transfer switch (ATS) for solar power plant (SPP) can be seen in Figure 1 and Figure 2. Photovoltaic (PV) Solar Carger Controller (SCC) Voltage Sensor Voltage Sensor Battery Inverter Voltage Sensor Arduino Uno ATmega 328 Relay ATS Load PLN Figure 1. Block Diagram of ATS Proposed. Start Read Voltages of PLN. PV and Battery VPLN <178V VPV <13V VBAT <11. ATS off ATS on Electricity from PLN Electricity from SPP Record Data of System Stop Figure 2. Research Methodology for the Prototype of ATS. Available online at: https://ejournal. id/jeecs Journal of Electrical Engineering and Computer Sciences Vol. No. June 2023 P-ISSN: 2528-0260 E-ISSN: 2579-5392 Figure 3. Types of Photovoltaics PWM type MPPT type Figure 4. The Solar Charge Controller (SCC) Types Figure 1 shows that Solar Power Plant (SPP) system employs solar panel or photovoltaic (PV). Solar Charger Controller (SCC). Battery and Inverter. Voltages of PLN. PV and battery are read using sensors S1. S2 and S3 The output of these sensors is used by the microcontroller to control the ATS relay. Then, the ATS relay will select a load source from PLN or PV based on the control process from the microcontroller. Figure 2 describes that the ATS relay operates under voltage conditions of PLN. PV and battery respectively. ATS relay will not turn on when the voltage of PLN is greater than 178 volts. Whereas ATS relay will turn on when the voltage of PLN (VPLN) is less than 178 volt and the voltage of photovoltaic (VPV) is greater than 13 volts or the voltage of battery (V BAT) is greater 8 volt. 1 Photovoltaic (PV) Photovoltaic (PV) is important instrument in solar power plant (SPP) systems. PV change solar energy into electrical energy through a process of photoelectric. The PV energy provided is direct current (DC) voltage. Currently. PVs have various forms and types, each of which has its own ability. Several types of PV on the market are Monocrystalline and Poly-crystalline. Types of photovoltaic are shown in Figure 3 . Capacity of PV (W. is calculated from electrical energy (W. used load in one peroide time . and solar radiation energy ( kWh/m. Several the other factors caused the capacity of PV are temperature . C), cables, inverter, battery and solar charge controller (SCC). The capacity of PV capacity can be formulated by using Equation . ycOycy = ycOEa ycEycIya ycu yuC Where Wh. Wp. PSH and are electrical energy . att hou. , capacity of PV . att pea. , peak sun hour per day and efficiency of PV . PSH duration per day is about 3-4 hour. 2 Identification of subsections Solar charge controller (SCC) is a module which used in the solar power plant system to control battery charging and protects battery from overcharge and over-discharge. The solar charge controller (SCC) which is widely used in the solar power plant systems has two main types. They are Pulse Width Modulation (PWM) and Maximum Power Point Tracker (MPPT). The capacity of solar charge controller (SCC) is determined from the maximum output current of photovoltaic (PV). Types of SCC . are shown in Figure 4. 3 Battery Battery is electrical-chemical equipment which stores energy and deliver its energy in electricity. In the solar power plant system, battery is a component for storing direct current (DC) electrical energy provided by solar panels or PV, then supply electrical energy to the load when cloudy weather or night. Many types of batteries are available on the market for solar power generation systems such as lead-acid, zinc water, lithium ion, zinc water, nickel cadmium and Available online at: https://ejournal. id/jeecs Journal of Electrical Engineering and Computer Sciences Vol. No. June 2023 P-ISSN: 2528-0260 E-ISSN: 2579-5392 other types. The most widely battery types is lead-acid batteries because it have a long life, more safety, easier to implement, and very low cost per cycle. Show Lead Acid battery type is shown in Figure 5 . Meanwhile, battery capacity is determined by supplied electrical energy and nominal battery voltage. Battery capacity can be calculated by using Equation . ycOEa yaya = 1. 25 ycu ycO yaA where AH. VB and Wh are capacity of battery . mpere hou. , voltage of battery voltage . and electricity energy . att hou. 4 Inverter Inverter is electronic equipment which functions to convert DC . irect curren. voltage to AC . lternating curren. The output of inverter is an AC voltage in the form of a sine wave, square wave or modified sine wave. The input voltage source of inverter comes from batteries, solar power, or other DC voltage sources. Generally, inverters require a step-up transformer or boost converter to produce an AC output voltage that is higher than the input voltage . 5 Relay Relay is an electromechanical component that is operated using electricity. The relay consists of 2 main parts, such as the coil . and a set of switch contactors . Relays conduct using electromagnetic principles to operate its switch contactors. Relays can conduct electricity at a higher voltage by only requiring a small electric current . ow powe. The physical form of the relay is shown in Figure 5 . 6 Arduino Uno Atmega 328 Arduino Uno is an open source physical computing platform. Arduino Uno is not just a development tool, but a combination of hardware, programming languages and a sophisticated integrated development environment (IDE). IDE is software that plays a very important role in writing programs, compiling them into binary code and uploading it into microcontroller memory. There are many projects and tools developed by academics and professionals using Arduino Uno. Additional, there are also many supporting modules made by other parties to be connected to Arduino Uno such as sensors, displays, actuators and so on. Figure 7 shows the physical form of Arduino Uno ATmega 328 type . Figure 5. Lead Acid Battery Type Figure 6. Relay. Available online at: https://ejournal. id/jeecs Journal of Electrical Engineering and Computer Sciences Vol. No. June 2023 P-ISSN: 2528-0260 E-ISSN: 2579-5392 Figure 7. Arduino Uno AT-mega 328 Figure 8. Prototype of Automatic Transfer Switch (ATS) for Solar Power Plant (SPP). Table 1. Specifications of Equipment Equipment Microcontroller Solar Panel Battery Solar Charger Controller Load Voltage Sensor Specifications AT-mega 328 type 50 Wp VRLA 12V, 7. Lamp 30W PZEM-004T Table 2. Result of Solar Panel Testing Times Output Voltage (V) Available online at: https://ejournal. id/jeecs Journal of Electrical Engineering and Computer Sciences Vol. No. June 2023 P-ISSN: 2528-0260 E-ISSN: 2579-5392 RESULT AND ANALYSIS Prototype of Automatic Transfer Switch (ATS) for PLN and solar power plant (SPP) can be seen in Figure 8. Test results are needed to clarify the effectiveness of the proposed prototype. The specifications of equipment used in the prototype are shown in Table 1. 1 Testing of Photovoltaic (PV) Panel PV panel testing is carried out by measuring the output voltage of the PV panel from 07. 00 am to 5. 00 pm. The result of PV panel testing is shown in Table 2. From Table 2 can be seen that the maximum PV output voltage is 20. volt at 13. 00 and the minimum output voltage is 15. 73 volt at 17. 2 Testing of Voltage Sensor PZEM-004T Testing of Voltage Sensor PZEM-004T is done by measuring the output voltage of the voltage sensor and compared with volt meter. Table 3 shows the result of voltage sensor PZEM-004T testing. From Table 3 can be seen that the voltage error is under 0. 5% and the voltage error read by the sensor is considered very good. 3 Testing of Automatic Transfer Switch (ATS) Prototype Testing of the Automatic Transfer Switch (ATS) Prototype Design is carried out by making PLN. PV and Battery voltages under normal and abnormal conditions. Testing result of prototype can be described in Table 4. 4 Testing of Automatic Transfer Switch (ATS) Prototype Comparison of automatic transfer switch (ATS) proposed with previous ATS can be seen in Table 6. The parameters observed were the sources of electrical energy and the controllers used. Dewangga, et. proposed ATS for PLN and solar power plan (SPP) which use programmable logic controller (PLC). Dipociala, et. has also offer for PLN and solar power plan (SPP), but still use magnetic contactor to control ATS. Aswar, et. has been proposed ATS for solar power plant (SPP) and generator set, but still also employee magnetic contactor. ATS for solar power plan (SPP) and wind power generation which use Arduino Uno AT-mega 328 has been proposed P. Hermawan, et. Next. Setyono, et. proposed ATS for PLN, solar power plant (SPP) and Generator Set, but still use magnetic contactor. According to the results of research in Table 6, then this research has been designed and implemented the automatic transfer switch (ATS) for PLN and solar power plant (SPP) using Arduino Uno ATmega 328. The results of testing show that prototype of ATS proposed successfully work under normal and abnormal voltage conditions of PLN. PV and battery respectively. Table 3. Result of Voltage Sensor PZEM-004T Testing Volt Meter (V) PZEM-004T (V) Error (%) Table 4. Result of ATS Proposed Testing PLN (V) Solar Panel (V) Battery (V) Relay ATS OFF OFF OFF Electricity Source Battery PLN Solar Panel PLN Solar Panel PLN Available online at: https://ejournal. id/jeecs Journal of Electrical Engineering and Computer Sciences Vol. No. June 2023 P-ISSN: 2528-0260 E-ISSN: 2579-5392 Table 6. Comparison of Automatic Transfer Switch (ATS) Proposed and Previous No. Authors Electricity Sources Dewangga, et. al, 2019 . PLN and Solar Power Plant (SPP) Programmable Logic Controller (PLC) Dipociala, et. al, 2023 PLN and Solar Power Plant (SPP) Not Available Aswar, et. al, 2021 . Solar Power Plant (SPP) and Generator Set Not Available Hermawan, et. Setyono, et. Solar Power Plant (SPP) and Wind Power Generation PLN. Solar Power Plant (SPP) and Generator Set PLN and Solar Power Plant (SPP) Proposed ATS Controllers Arduino Uno AT-mega Not Available Arduino Uno AT-mega CONCLUSION Prototype of Automatic Transfer Switch (ATS) for PLN and solar power plant (SPP) has been designed and SPP system consists of solar panel or photovoltaic (PV). Solar Charger Controller (SCC), battery and inverter respectively. ATS is electromechanical equipment that operates automatically to move the source of electrical energy from the main grid (PLN) network to SPP when the PLN network occur a faults or blackout. ATS will restore the source of electrical energy from PLN automatically when the supply of electrical energy from PLN has returned to normal condition. The proposed prototype of ATS is tested to clarify its performances based on the voltage conditions of PLN. PV panel and battery. Testing results show that prototype of ATS successfully work under normal and abnormal voltage conditions of PLN. PV and battery. REFERENCES