The invention discloses a solar street lamp controller capable of rotating along with solar rays. The solar street lamp controller comprises a base, a supporting rod is arranged on the base, a connecting rod is arranged at the end, far away from the base, of the supporting rod, an object carrying table is arranged at the end, far away from the supporting rod, of the connecting rod, a street lamp is arranged at the bottom of the object carrying table, an angle adjusting device is arranged at the top of the object carrying table, a solar cell panel is arranged at the top of the angle adjusting device, and a photoelectric position sensor is arranged at the geometric center of the upper surface of the solar cell panel. By means of the solar street lamp controller, the problem that in the priorart, a solar collecting plate is fixed to the top of the street lamp, the solar energy collecting efficiency is low due to the fact that the solar collecting plate cannot be moved, and consequently asolar street lamp cannot be better used is solved, the solar street lamp controller capable of rotating along with the solar rays is provided, when the solar street lamp controller is used, the solarrays are detected through the photoelectric position sensor, then the solar cell panel is moved to the sun perpendicular incidence position, the solar collection efficiency is guaranteed, and the sufficient electric quantity and the sufficient luminance of the solar street lamp are further guaranteed.