Solar street lights function based on the simple principle of photovoltaic effect. During the day, the photovoltaic cells (solar cells) in solar panels convert the solar energy into electrical energy. This energy is stored in the battery. The controller helps in charging the battery and regulating the voltage. At night, the solar lamp draws the current from the battery and starts to illuminate the light source from dusk to dawn.