The circuit schematic diagram is as follows. LM324 integrated operational amplifier is used. It has four operational amplifiers, only two of which are used. The reverse input terminal is connected to the midpoint of an adjustable resistance. Changing the position of the resistance can change the voltage of the direction input terminal, so as to change the size of the comparison voltage. The in-phase input terminals of the two comparators are respectively connected with a circuit with photosensitive resistors in series. The resistance value of the photosensitive resistors changes with the intensity of light. Two photosensitive resistors are placed on both sides of the solar panel, because the intensity of light on both sides is different, the output voltage is different. The two comparators can output high and low voltage according to the difference between the in-phase input voltage and the reverse input voltage. If the light on both sides is very weak, the two operational amplifiers output high-level, drive the upper tube of the four power tubes to turn on, the lower tube to cut off, the output P / N is high-level, and the DC motor connected at the PN end does not move without potential difference; When the light on both sides is strong, both sides output low level, the two lower tubes of the driving circuit are connected, and there is no voltage to drive the motor. Only when the light on one side is strong and the light on the other side is weak, one of the comparators outputs high level and the other outputs low level, resulting in the conduction of the upper tube on one side and the lower tube on the other side, so that the motor moves towards one side, and vice versa, so as to realize the tracking effect of solar energy.