Based on the tardiness and intermittency of the changes of the sun rays and the environmental changes,a sunlight real- time tracking system that combines photoelectric tracking and sun orbital tracking was designed. It adopted the method that combines array photocell sensor and clock calculation to analyze the trajectory of the sun and how the angle attitude affects the efficiency of sun tracking and energy conversion. It discussed the solar tracking photoelectric tracking control system theory of how the four-element array changes with the angle of the sun. The sunshine was tracked though illumination changes and historical trajectory. The experiment shows that it can achieve the two- dimension real- time tracking and battery management of the sun position and make accurate tracking even on the condition that the light intensity changes within a wide range,which greatly improves the utilization rate of the sunlight.