The invention discloses a mains
complementation controller for a solar street lamp. The controller comprises a
solar cell panel, a charging module, a
microprocessor, a constant-current output module, a
switching power supply, a
voltage detection module and a battery. The invention also discloses a control method of the controller. The controller is skillful and reasonable in structural design, when the electric quantity stored in the battery by the
solar energy is insufficient, the controller is switched to a mains supply automatically in a seamless mode, the effect that the
solar energy is used preferentially and the mains supply serves as a supplement can be effectively achieved, and charging and discharging can be controlled automatically according to different working parameters and states, so that the charging and the discharging are kept at the optimal states, the utilization efficiency of the
solar energy is improved, the
energy resources are effectively saved, the whole process is automatic, and the intelligent degree is high. The control method is simple in step, easy to implement, capable of supplying
electricity by the battery and achieving seamless switching to the mains supply, effectively guaranteeing the sufficient utilization of solar
energy resources, greatly prolonging the service life of the battery and reducing the maintenance cost and beneficial to popularization and application.