SINERGI Vol. No. June 2022: 265-272 http://publikasi. id/index. php/sinergi http://doi. org/10. 22441/sinergi. Determination of the parameters of the firefly method for PID parameters in solar panel applications Machrus Ali1*. Hadi Suyono2. Muhammad Aziz Muslim2. Muhammad Ruswandi Djalal3. Yanuar Mahfudz Safarudin4. Aji Akbar Firdaus5 Department of Electrical Engineering. Universitas Darul Ulum. Indonesia Department of Electrical Engineering. Universitas Brawijaya. Indonesia Department of Electrical Engineering. Politeknik Negeri Ujung Pandang. Indonesia Department of Electrical Engineering. Politeknik Negeri Semarang. Indonesia Department of Engineering. Universitas Airlangga. Indonesia Abstract The optimal performance of solar panels is very important to produce maximum electrical energy. Solar panels can work optimally when equipped with a solar tracker. The solar panel tracker works by following the sun's movement. A Proportional. Integral. Derivative (PID) based control is used to optimize the performance of the solar An optimal tuning is needed to get the PID parameter. The Firefly method is an intelligent method that can be used to optimize PID parameters. Three Firefly Algorithm (FA) parameters are used in the program: Beta is used to determine firefly speed. Alpha is used for flexibility of movement, and Gamma is used for more complex constraints or problems. This Dual Axis photovoltaic tracking study uses the beta value determination, changing the Beta value from 0. From the results of 10 models, it was found that the PID constant values were varied. On the horizontal Axis, the best results are if the Beta is given at 0. 4, and the worst result is if the Beta is given at 0. On the vertical Axis, the best results are if the Beta is given at 0. 3, and the worst result is if the Beta is given at 0. Keywords: Dual Axis Tracking. Energy Conversion. Firefly Algorithm. Photovoltaic. Article History: Received: October 8, 2021 Revised: December 28, 2021 Accepted: January 2, 2022 Published: June 15, 2022 Corresponding Author: Machrus Ali. Department of Electrical Engineering. Universitas Darul Ulum. Indonesia Email: machrus7@gmail. This is an open access article under the CC BY-NC license INTRODUCTION Renewable energy is an alternative to replace fossil energy. Some of the renewable energy that is developing is photovoltaic and wind Photovoltaic is very promising to be developed into electrical energy . , 2, 3, . However, solar radiation makes the temperature less intermittent than the wind turbine's wind speed to produce electricity . Several ways to overcome solar radiation and temperature have intermittent properties so that the PV output power can be maximized. One way is to use solar power The sun tracking system is classified into one-track and two-axis solar tracking. The elevation angle is the angle of the sun's height measured from the horizontal direction. At sunrise or sunset, the elevation angle value is zero degrees . The maximum elevation angle is 90o when the sun is directly above the head. The sun's azimuth angle is the position of the sun's angle measured from the north direction of the earth. The azimuth angle of the sun is 0o in the north, 90o in the east, and 180C in the south. A qualitative and quantitative comparison of the performance of a two-axis solar tracking photovoltaic system in terms of radiation and energy yield is better than a fixed position photovoltaic system based on the Malaysian climate environment. The study calculated a one-year increase in efficiency in the Azimuth-Altitude Dual Axis Solar Tracker compared to without a solar tracking system amounted to 48. 98%, and efficiency increased by 504% in one year when compared to a singleaxis solar tracker . Some artificial intelligence has been developed to be able to find maximum PV power. Ali et al. Determination of the parameters of the firefly method for PID parameters in A SINERGI Vol. No. June 2022: 265-272 such as Neural Network (NN) . Particle Swarm Optimization . Gray Wolf Optimization (GWO), and Fuzzy Logic Controller . However. PV power is still less than the maximum. In this paper, a two-axis solar tracking system or elevation angle and azimuth angle tracking is controlled by a PID (Proportional Integral Derivativ. where the PID parameters (Kp. Ki, and K. are obtained using the modified Firefly Algorithm (FA) algorithm. modifying beta (MF-bet. Alpha (MF-Alph. , and Beta-Alpha (MF-Beta-Alph. values, it is expected to obtain better PID tuning results. These modifications can increase the speed and optimize the firefly computing process in performing optimizations compared to standard It is hoped that at all times, the surface of the solar panel is always in a position perpendicular to the position of the sun. METHODS Parameters Photovoltaic (PV) is the load of the solar tracking system used so that the PV position is always perpendicular to the sun. The gear transmission system is a spur gear consisting of two gears: the M1B12 model . umber of teeth 12, mass 10 g. and the M1A20 model . umber of teeth 120, mass 1. 32 k. NPS50W: dimensions of 637 x 545 x 35 mm. The DC motor parameters are presented in Table 1 . Table 1. DC Motor Parameters Parameter JT1 Value 2284e6 kg. 3,5077e6 Nms Vsec / 2642e3 kg. 3185e3 kg. Parameter Value 0274 Nm / Amp 75e-6 H A. 384x10Oe8 s3 0. Transfer Function Horizontal Axis The value of the photovoltaic load torque is taken from the moment of inertia of the solar cell panel multiplied by the acceleration of the turning The acceleration of the rotary angle comes from the acceleration of the gear-1 angle. Moment of inertia horizontal rotary axis solar cell panel . JT2 LsI. RI. = V. Oe Ks. Transfer Function DC Motor without load: s((Js . (Ls R) K 2 ) . Horizontal rotary axis sun inertia moment: JT1 = Jst J1 kg. s((JT1s . (Ls R) K 2 ) . Horizontal rotary axis sun tracking Transfer Function: = 3. 289x10Oe9 s3 0. Transfer Function Vertical Axis The acceleration of the rotary angle comes from the acceleration of the gear-2 angle . Moment of inertia of the vertical rotating-axis solar cell panel: J1 = 2 mpv (L2 W 2 )(N2 )2 . The moment of inertia of the vertical rotating Axis PV solar tracker. = s((JT2s . (Ls R) K. Vertical axis rotary sun tracking transfer function: Transfer Function DC Motor Uncontrolled The Laplace transform is obtained as . by derivation of the motor model. J1 = mpv L2 ( . JT2 = Jst J2 = 2. 384x10Oe9 s3 0. The design of the PV control is depicted in Figure Firefly Algorithm (FA) The FA method is often used in system optimization, some of which are used in electric power system optimization. This method has proven its reliability in DC motor rotation optimization, vehicle steer control, micro-hydro frequency control and other system optimizations. Ali et al. Determination of the parameters of the firefly method for PID parameters in A p-ISSN: 1410-2331 e-ISSN: 2460-1217 Table 2. FA parameters FA Parameters Dimension Number of fireflies Maximum iteration Kp_fa Ki_fa Kd_fa Value 0 Ae 500 0 Ae 100 0 Ae 100 Determines Beta for Firefly This study uses the ideal firefly determination in photovoltaic by changing the value of the bet. The beta value is changed every step the results are taken, then increased again, and the results are taken. Beta determination is taken from 0. 1 up to 0. Modeling The FA parameter data in Table 1 is used as a parameter of the program's FA parameters . For example, the design PID Controller for Dual-axis simulation is shown in Figure 2. Figure 1. Design of Two Axis solar tracking PV Furthermore, this method provides a better understanding of the novel met heuristics from Firefly Algorithm (FA) for the limited continuous optimization task. This method is inspired by the social behavior of fireflies and the phenomenon of bioluminescent communication. The basic steps of the firefly algorithm can be summarized as pseudo-code . Data on the standard FA parameters used are listed in Table 2. RESULTS AND DISCUSSION Firefly Algorithm (FA) is widely used in control system optimization. Three FA parameters are used in the system running the program. Beta is used to determine Firefly's movement speed. Alpha is used for movement flexibility, and Gamma is used for more complex constraints or This study uses the ideal firefly determination in photovoltaic by changing the value of the bet. The beta value is changed every step the results are taken, then increased again, and the results are taken. Beta determination is taken from 0. 1 up to 0. Block Determination Beta diagram on Firefly can be seen in Figure 3. Figure 2. Design-Simulation of PID-Controller for Dual Axis controller Ali et al. Determination of the parameters of the firefly method for PID parameters in A SINERGI Vol. No. June 2022: 265-272 Figure 3. Block diagram of Beta Determination on Firefly Horizontal Axis From the results of 10 models of horizontal axis control, the PID constants (Kp. Ki, and K. are different from ITAE or Lightest on the same Firefly. With the different constant values of Kp. Ki, and Kd, the values of overshot, undershot, and settling time are slightly different. The horizontal axis simulation results can be seen in Figure 4. The overshot value, undershot horizontal Axis, can be seen in Table 3. In Horizontal Axis, by changing the Beta value from 0. 1 to 0. 9, the values of overshot, undershot, and settling time Searching for PID constants by DFA obtained difference values that vary with the same ITAE . with different PID constant values (Kp. Ki, and K. From the differences in the constants Kp. Ki, and Kd, there is a small difference in the value of overshot and undershot. Table 2 shows that not all firefly modifications produce better values than the firefly original. evidenced by the value results. DFA5 / FA overshot is 0. 5224, undershot is 0. 2658, and settling time is 0. The smallest overshot value is DFA4 . , and the biggest overshot is DFA8 . The smallest undershot value is DFA4 . , and the biggest undershot is DFA8 . The fastest settlement is DFA4 . and the slowest is DFA8 . This shows that the results of DFA4 . eta = 0. 4, alpha = 0. 5, and gamma = . are the best compared to others. Vertical Axis From the results of 10 models controlled by vertical axis control. Kp. Ki, and Kd values differ from ITAE or Lightest on the same Firefly. With the different constant values of Kp. Ki, and Kd, the values of overshot, undershot, and settling time are slightly different. The vertical axis simulation results are shown in Figure 5. The overshot value, undershot vertical Axis, can be seen in Table 4. On the Axis vertical, by changing the Beta value to start from 0. 1 to 0. values of overshot, undershot, and varying settling time are obtained. Searching for PID constants by DFA obtained difference values that vary with the same ITAE . with different PID constant values (Kp. Ki, and K. From the differences in the constants Kp. Ki, and Kd, there is a small difference in the value of overshot and undershot. Table 2 shows that not all modifications of the Firefly Algorithm (DFA5 / FA) produce better value than the firefly original. As evidenced by the value results. FA overshot is 0. 5847, undershot is 3365, and settling time is 0. Ali et al. Determination of the parameters of the firefly method for PID parameters in A p-ISSN: 1410-2331 e-ISSN: 2460-1217 Respon Harizontal Axis Respon Vertical Axis Time (Se. Uncontrolled DFA1 DFA2 DFA3 DFA4 DFA5/FA DFA6 DFA7 DFA8 DFA9 Angular Deviation Angular Deviation Uncontrolled DFA1 DFA2 DFA3 DFA4 DFA5/FA DFA6 DFA7 DFA8 DFA9 Horizontal axis output results Respon Harizontal Axis Uncontrolled DFA1 DFA2 DFA3 DFA4 DFA5/FA DFA6 DFA7 DFA8 DFA9 Time (Se. Vertical axis output results Respon Vertical Axis Uncontrolled DFA1 DFA2 DFA3 DFA4 DFA5/FA DFA6 DFA7 DFA8 DFA9 Angular Deviation Angular Deviation Time (Se. Overshot Horizontal axis Respon Harizontal Axis Uncontrolled DFA1 DFA2 DFA3 DFA4 DFA5/FA DFA6 DFA7 DFA8 DFA9 Time (Se. Figure 4. Horizontal axis output results, . Overshot Horizontal axis and . Undershot Horizontal axis The smallest overshot value is DFA3 . , and the biggest overshot is DFA8 . The smallest undershot value is DFA3 . , and the largest undershot is DFA8 . The fastest settlement is DFA3 . and the slowest is DFA8 . This shows that the results of DFA3 . eta = 0. 3, alpha = 0. 5, and gamma = . are the best compared to others. Overshot Vertical axis Respon Vertical Axis Uncontrolled DFA1 DFA2 DFA3 DFA4 DFA5/FA DFA6 DFA7 DFA8 DFA9 Angular Deviation Angular Deviation Time (Se. Time (Se. Figure 5. Vertical axis output results, . Overshot Vertical axis, . Undershot Horizontal Axis CONCLUSION The analysis results obtained optimal performance of the solar tracker with optimal PID parameter tuning. Using the modified firefly method makes the system performance more Ali et al. Determination of the parameters of the firefly method for PID parameters in A SINERGI Vol. No. June 2022: 265-272 optimal than the standard firefly method. From the simulation results, it can be concluded that. changing the Beta value from 0. 1 to 0. From the results of 10 models, it was found that the PID constant values were varied. On the horizontal Axis, the best results are if the Beta is given at 0. and the worst result is if the Beta is given at 0. On the vertical Axis, the best results if the Beta is given at 0. 3 and the worst result if Beta is given at REFERENCE