Get a quote

Automatic Street Light Project Using a Solar Panel: Blocks, Logic and Sizing With a Real Calculator

Build an automatic solar street light project: block diagram, using the panel as the dusk sensor, battery protection, dimming and motion, and panel and battery sizes from our solar calculator.

Key points

  • A solar street light needs no separate light sensor: the panel's own voltage tells the controller when it is dark.
  • The blocks are panel, charge controller, battery with protection, LED driver and control logic; motion sensing and a dimming schedule are optional upgrades.
  • For a model with a 1 W LED running 6 hours a night, our solar calculator gives 6.7 Wh a night, a 3.2 V LiFePO4 battery of about 4.6 Ah for two nights, and about 2.5 W of panel at 4.5 peak sun hours.
  • A real 30 W street light running 5 hours at full power and 7 hours at 30% needs about 237 Wh a night, a 62 Ah 12.8 V battery for three nights and an 80 Wp panel.
  • Add hysteresis and a time delay to the dusk switch, and a low-voltage cut-off with a higher reconnect voltage, or the light will flicker at dusk and on a low battery.

The automatic street light is one of the most popular electronics projects for students, and the solar version adds what makes real off-grid street lights work: energy collection, storage and protection. This guide explains the blocks, the control logic and the sizing, and compares a desk-top model with a real 30 W street light worked through our own solar calculator. If you are building the classic LDR and relay version, our guide to the automatic street light with LDR covers that circuit; here the panel takes the LDR’s place.

The block diagram

A solar street light, model or real, has five blocks:

  1. Solar panel: produces power in daylight and acts as the dusk sensor.
  2. Charge controller: charges the battery from the panel and stops charging when it is full.
  3. Battery with protection: stores the day’s energy. Lithium cells need a protection board (BMS) against over-charge, over-discharge and short circuit.
  4. LED driver: supplies the LED with a controlled current, and dims it on command.
  5. Control logic: decides when to switch on, how bright, and when to cut off to protect the battery.

Optional blocks: a PIR motion sensor to brighten the light when someone passes, and a timer or schedule to dim it in the middle of the night.

The panel as the dusk sensor

In daylight even a small panel produces a clear voltage with no load. As the sun sets, the voltage falls steeply. The controller compares the panel voltage with a threshold:

  • Panel voltage below the threshold for a few minutes: it is dark, switch on.
  • Panel voltage above a second, higher threshold for a few minutes: it is day, switch off and start charging.

Two features stop the light misbehaving:

  • Hysteresis: the switch-off level is higher than the switch-on level, so the light does not flicker around the threshold at dusk.
  • Time delay: the condition must hold for several minutes, so car headlights or a passing cloud do not toggle the light.

Measure your own panel’s open-circuit voltage at dusk and at dawn to set the thresholds; they depend on the panel.

Battery protection

The control logic also watches the battery voltage:

  • Low-voltage cut-off: when the battery falls to a set minimum, switch the LED off to protect it. For LiFePO4, the cell data sheet gives the minimum discharge voltage; many designs cut off a little above it to extend life.
  • Reconnect level: only switch back on once the battery has recharged to a clearly higher voltage, or the light will flash on and off at night as the battery recovers without load.
  • Step-down before cut-off: real controllers dim the light in stages as the battery gets low, so there is some light every night rather than full light followed by darkness.

The Arduino version

For a microcontroller project:

  • Panel and battery voltages go to two analogue inputs through resistor dividers, sized so the highest voltage stays below the input limit.
  • The LED is switched by a logic-level MOSFET on a PWM pin, which also dims it.
  • The PIR sensor connects to a digital input; on motion, raise the PWM to full for a set time.
  • The schedule counts hours from the moment the light turned on, for example full power for the first hours, then a lower level.

Keep the charging and the battery protection on dedicated modules: a charge controller or charging IC and a protection board. A software bug should never be able to over-charge or over-discharge a lithium cell. Add a fuse close to the battery.

Sizing the model

We entered the model into our solar street light calculator, which sizes the panel and battery for any LED load:

  • 1 W LED, driver efficiency 90%, 6 hours a night at full power.
  • 4.5 peak sun hours, a typical sunny-climate figure.
  • 2 nights of reserve, 3.2 V LiFePO4 cell, simple PWM charging.

Results:

  • Energy per night: 6.7 Wh.
  • Battery: 14.8 Wh, or about 4.6 Ah at 3.2 V.
  • Panel: about 2.5 W.

Open the example and change the LED, hours and sun. The calculator rounds up to its smallest standard street-light panel of 10 W; for a model, a 3–5 W panel is enough.

Sizing a real street light

Now the same method for a real 30 W light on a 5–7 m pole:

  • 30 W LED, 90% driver, 5 hours at full power and 7 hours at 30%.
  • 4.5 peak sun hours, 3 nights of reserve.
  • 12.8 V LiFePO4 battery, MPPT charging.
Model Real street light
LED 1 W 30 W
Energy per night 6.7 Wh 237 Wh
Battery 14.8 Wh (4.6 Ah at 3.2 V) 789 Wh (62 Ah at 12.8 V)
Panel about 2.5 W 73 W, rounded to 80 Wp

The real light is about 35 times the model. The dimming schedule is what keeps it practical: running 30 W at full power for all 12 hours would need about 400 Wh a night, roughly 1.7 times the energy, battery and panel. Our article on solar street light motion sensors shows how motion sensing stretches the battery further.

The charge controller type also matters at this size: an MPPT controller harvests more from the same panel than PWM, which is why the real design uses MPPT. See our comparison of MPPT and PWM controllers.

Testing your project

  1. Charge test: in sun, check the battery voltage rises and charging stops when full.
  2. Dusk test: cover the panel; the light should turn on after the delay, not instantly.
  3. Dawn test: uncover the panel; the light should turn off after the delay.
  4. Low battery test: with the battery partly discharged, check the cut-off and that the light does not flash on reconnect.
  5. Runtime test: from a full charge with the panel covered, time how long the light runs and compare with your calculation.

From project to product

Commercial solar street lights put the same blocks into one weatherproof housing. Our all-in-one solar street lights combine 15 to 60 W LEDs with 20 to 75 Wp monocrystalline panels, 12.8 V lithium batteries and a controller with light control and motion sensing. Our guide to semi-integrated solar street lights shows the other common layout, with the panel separate from the lamp.

For teachers and project students

The calculator is free to use for project reports; the “open the example” links above load the exact inputs, so you can show the calculation and change it for your own design. For a working demonstration, a small LED, a 3–5 W panel, a single 3.2 V LiFePO4 cell with a protection board and a charging module are all you need.

Sources

  1. BlueGreen OE — Solar street light calculator
  2. BlueGreen OE — All-in-one solar street light SL series specifications

Frequently asked questions

How does an automatic solar street light know when it is dark?

Its controller measures the solar panel voltage. In daylight the panel produces a clear voltage; at dusk it falls. When it stays below a set level for a few minutes, the controller turns the light on. No LDR is needed.

What components do I need for a solar street light project?

A small solar panel, a charge controller or charging circuit, a rechargeable battery with a protection board, an LED with a driver or current limit, and a microcontroller or controller IC for the dusk switch and timer. A PIR sensor adds motion detection.

Can I use Arduino for an automatic solar street light?

Yes. The Arduino reads the panel and battery voltages through resistor dividers, switches the LED through a MOSFET, and dims it with PWM. Keep the charging and battery protection on dedicated hardware.

How big a battery does a solar street light project need?

Work out the watt-hours per night (LED watts × hours ÷ driver efficiency), multiply by the nights of reserve, and divide by the usable share of the battery. For a 1 W LED for 6 hours with two nights of reserve, about 15 Wh.

Products in this guide

Have a project?

Ask our engineers

Send us your site details and we will size the system and quote it.

We reply by email within one working day (China time, GMT+8). Your details are only used to answer this inquiry. Prefer chat? Message us on WhatsApp. Have more detail to give? Use the full form.

Related guides