Study on solar tracking trajectory calculation method with Lagrange interpolation

Zhenguo Zhang, Hongwei Shi, Yan Li, Bo Dong, Yuanchun Li2016 · DOI

Abstract

This paper presents a novel solar tracking trajectory calculation method, and addresses the problems of low efficiency, computing complex issues of solar tracking control system. Based on the Lagrange interpolation method, the solar trajectory is calculated by using the location information in certain times (day, month and year), and then the sun can be accurately tracked with the method of photoelectric tracking. Finally, simulations are preformed with MATLAB to verify the validity of the proposed method.

Introduction

To maximize the efficiency of solar energy systems, panels must remain perpendicular to the sun's rays throughout the day. Traditional tracking systems typically employ one of two strategies: photoelectric tracking, which uses sensors to find the brightest point in the sky, or trajectory tracking, which uses complex astronomical formulas to predict the sun's position. While photoelectric systems are precise, they can lose the sun during cloudy periods. Conversely, trajectory tracking formulas like the Spencer algorithm involve intensive trigonometric calculations that are computationally expensive for low-cost microcontrollers.

Celestial coordinate system defining solar position parameters.

This study proposes a hybrid approach using Lagrange interpolation to simplify trajectory calculations. This method provides a "coarse" tracking signal that maintains system alignment even during sensor "blindness," reducing the real-time computational load while keeping the sun within the detection range of fine-tuning sensors.

Methodology: Lagrange Interpolation for Solar Paths

The proposed method utilizes piecewise quadratic Lagrange interpolation to approximate the sun's path. Instead of calculating the sun's position from first principles at every time step, the system stores a limited set of "anchor" data points—solar elevation and azimuth angles—for specific intervals.

To avoid Runge's phenomenon, which causes oscillations at the edges of high-degree polynomials, the trajectory is calculated using piecewise segments. For a given set of points, quadratic interpolation is applied to successive triplets. This ensures that the approximated curve remains smooth and locally accurate throughout the daily cycle.

Simulation Results and Error Analysis

The algorithm was validated through MATLAB simulations using geographic coordinates for Changchun, China. The tracking performance was evaluated against the standard Spencer algorithm for the spring equinox (March 21, 2015). A critical factor in the system's performance is the sampling period, which determines the frequency of anchor data updates.

Error analysis of solar tracking for different sampling periods.

As shown in the simulation results, a 10-day sampling period provides exceptional accuracy, with solar elevation angle errors ranging from -0.005° to 0.016° and azimuth errors between 0° and 0.0275°. While increasing the sampling period to 20 or 30 days increases the error, the values remain within a range that can be effectively managed by a secondary photoelectric feedback loop for fine adjustment.

Conclusion

The application of Lagrange interpolation to solar tracking significantly simplifies the programming and computational requirements for control systems. By providing a reliable trajectory approximation, the method enhances system robustness against environmental factors like cloud cover while enabling the use of more cost-effective hardware. Future work will involve hardware implementation to assess the impact of mechanical factors such as motor backlash and environmental wind loading.

Summary updated

Abstract

This paper presents a novel solar tracking trajectory calculation method, and addresses the problems of low efficiency, computing complex issues of solar tracking control system. Based on the Lagrange interpolation method, the solar trajectory is calculated by using the location information in certain times (day, month and year), and then the sun can be accurately tracked with the method of photoelectric tracking. Finally, simulations are preformed with MATLAB to verify the validity of the proposed method.
BibTeX
@misc{zhang2016study,
  author = {Zhenguo Zhang and Hongwei Shi and Yan Li and Bo Dong and Yuanchun Li},
  title = {{Study on solar tracking trajectory calculation method with Lagrange interpolation}},
  year = {2016},
  doi = {10.2991/icsmim-15.2016.61},
}
Figure