Solar Position-Based Servo Control and Motion Response Analysis for an IoT-Based Dual-Axis Solar Tracker
Abstract
A dual-axis solar tracker requires accurate control angle determination to ensure that the panel orientation follows changes in the sun's position. This study aims to determine the azimuth and elevation servo control angles based on solar position data and evaluate actuator movement responses through computational modeling. Data were obtained using the Thirdtrail Solar API on November 12, 2026, at 30-minute intervals, resulting in 48 samples, of which 25 had positive altitude values. Validation against the Solar Position Algorithm (SPA) using the pvlib library produced mean absolute errors (MAE) of 0.000318° for azimuth and 0.000283° for altitude. Servo target angles were determined by mapping solar azimuth and applying the geometric relationship between solar altitude and panel tilt. The system was modeled using two MG996R servos for the azimuth and elevation axes, with an initial position of 79.5° and a reference speed of 400°/s. The simulation generated 25 movement commands with a maximum completion time of 0.159684 seconds. Sensitivity analysis at speeds of 200°/s, 100°/s, and 60°/s showed an increase in maximum completion time to 1.064562 seconds. All scenarios completed the commands before the next update interval of 1,800 seconds. These results demonstrate the computational feasibility of solar-position-based servo control, without physical prototype testing.
References
N. Kuttybay et al., “Assessment of solar tracking systems: A comprehensive review,” Sustainable Energy Technologies and Assessments, vol. 68, p. 103879, Aug. 2024, doi: 10.1016/j.seta.2024.103879.
P. S. Paliyal, S. Mondal, S. Layek, P. Kuchhal, and J. K. Pandey, “Automatic solar tracking system: a review pertaining to advancements and challenges in the current scenario,” Clean Energy, vol. 8, no. 6, pp. 237–262, Dec. 2024, doi: 10.1093/ce/zkae085.
C. Alexandru, “Simulation and Optimization of a Dual-Axis Solar Tracking Mechanism,” Mathematics, vol. 12, no. 7, p. 1034, Mar. 2024, doi: 10.3390/math12071034.
H. Bouzakri, A. Abbou, K. Tijani, and Z. Abousserhane, “Biaxial Equatorial Solar Tracker with High Precision and Low Consumption: Modelling and Realization,” International Journal of Photoenergy, vol. 2021, pp. 1–22, Mar. 2021, doi: 10.1155/2021/6679576.
M. Ikhwan, Mardlijah, and C. Imron, “Model predictive control on dual axis solar tracker using Matlab/Simulink simulation,” in 2018 International Conference on Information and Communications Technology (ICOIACT), IEEE, Mar. 2018, pp. 784–788. doi: 10.1109/ICOIACT.2018.8350791.
S. I. Palomino-Resendiz, D. A. Flores-Hernández, L. A. Cantera-Cantera, N. Lozada-Castillo, and A. Luviano-Juárez, “Design and implementation of Model-Based Predictive Control for two-axis Solar Tracker,” Solar Energy, vol. 265, p. 112080, Nov. 2023, doi: 10.1016/j.solener.2023.112080.
U. Mamodiya and N. Tiwari, “Dual-axis solar tracking system with different control strategies for improved energy efficiency,” Computers and Electrical Engineering, vol. 111, p. 108920, Oct. 2023, doi: 10.1016/j.compeleceng.2023.108920.
A. Pirayawaraporn, S. Sappaniran, S. Nooraksa, C. Prommai, N. Chindakham, and C. Jamroen, “Innovative sensorless dual-axis solar tracking system using particle filter,” Appl. Energy, vol. 338, p. 120946, May 2023, doi: 10.1016/j.apenergy.2023.120946.
P. Muthukumar, S. Manikandan, R. Muniraj, T. Jarin, and A. Sebi, “Energy efficient dual axis solar tracking system using IOT,” Measurement: Sensors, vol. 28, p. 100825, Aug. 2023, doi: 10.1016/j.measen.2023.100825.
A. da Silva Souza et al., “Development and evaluation of a microcontrolled solar tracker based on chronological positioning,” Environ. Prog. Sustain. Energy, vol. 43, no. 5, Sep. 2024, doi: 10.1002/ep.14387.
Y. Prasetyo, B. Triyono, and H. Kusbandono, “Dual Axis Solar Tracker Using Astronomic Method Based Smart Relay,” JAREE (Journal on Advanced Research in Electrical Engineering), vol. 5, no. 1, Apr. 2021, doi: 10.12962/jaree.v5i1.156.
Y. Rizal, S. H. Wibowo, and Feriyadi, “Application of Solar Position Algorithm for Sun-Tracking System,” Energy Procedia, vol. 32, pp. 160–165, 2013, doi: 10.1016/j.egypro.2013.05.021.
K. Dahli, N. Cheggaga, T. Allaoui, A. Benallal, and A. Ilinca, “A Low Cost, Fully Sensorless Dual Axis PV Tracker Using Astronomical Ephemerides and Discrete Actuation,” Energy Technology, vol. 14, no. 11, Nov. 2026, doi: 10.1002/ente.70709.
thirdtrail.life, “Solar API,” https://thirdtrail.life/docs/solar/. Accessed: Nov. 20, 2026. [Online]. Available: https://thirdtrail.life/docs/solar/
I. Reda and A. Andreas, “Solar Position Algorithm for Solar Radiation Applications (Revised),” Golden, CO (United States), Jan. 2008. doi: 10.2172/15003974.
Espressif Systems, “LED Control (LEDC) — ESP32 — ESP-IDF Programming Guide.” Accessed: Nov. 20, 2026. [Online]. Available: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/peripherals/ledc.html
M. Engin and D. Engin, “Optimization Controller for Mechatronic Sun Tracking System to Improve Performance,” Advances in Mechanical Engineering, vol. 5, Jan. 2013, doi: 10.1155/2013/146352.
Tower Pro, “MG996R – Tower Pro.” Accessed: Nov. 20, 2026. [Online]. Available: https://towerpro.com.tw/product/mg996r/
W. F. Holmgren, C. W. Hansen, and M. A. Mikofski, “pvlib python: a python package for modeling solar energy systems,” J. Open Source Softw., vol. 3, no. 29, p. 884, Sep. 2018, doi: 10.21105/joss.00884.
Copyright (c) 2027 Yoseph Tajul Arifin, Riska Aryanti, Nastiti Tri Permatasari, Ryan Prasetya

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.




