Final-year projects / Smart city

Smart street light with motion dimming and fault report

Street lights burn at full power all night on empty roads, and failed lamps go unreported for weeks. Lights that dim when no one is near, brighten for traffic and report faults cut energy and repair delays.

ESP32Mini or Major projectEEE, ECE, Diploma
ESP32RADARCURREN340 luxFeatured
Parts
₹3,560
Build
13 weeks
Board
ESP32
Objectives
6

Block diagram

Inputs
  • LDRSwitches on at dusk
  • RADAR
    Radar motion sensorSees people and vehicles
  • CURREN
    Current sensorChecks the lamp actually draws power
Controller
  • ESP32
    ESP32Sets brightness and reports
Power
  • SOLAR
    Solar power unitPanel, charger and cell that keep the node running+
Outputs
  • MOSFET
    MOSFET LED driverDims the LED with PWM
  • LED
    3 W LEDThe lamp
  • LORA
    LoRa linkCarries readings from field nodes to the gateway+

Objectives

  1. To switch lights on at dusk and off at dawn with hysteresis.
  2. To run at 30% when the road is empty and 100% for 30 s after motion.
  3. To detect a failed lamp from its current and report its pole number.
  4. To measure energy used in a night against always-full brightness.
  5. To power the system from a solar-charged battery and measure its energy budget.
  6. To build a multi-node LoRa network and measure its range and packet delivery.

Parts and specifications

Total about ₹3,560 at typical online prices. Tap a part for its pinout and datasheet notes.

Design calculations

LED resistor

R = (12 − 3 × 3.2) / 0.7 ≈ 3.4 Ω for three in series; or one LED per 3.3 Ω branch from a lower supply. Power in R = 0.7² × 3.4 = 1.7 W, so use 3 W resistors.

Dimming energy

100% = 9 W, 30% ≈ 2.7 W. If motion keeps the lamp bright 20% of a 12-hour night: 9 × 2.4 + 2.7 × 9.6 = 47.5 Wh vs 108 Wh, a 56% saving.

Fault detection

Expected current at a duty d is about 0.7 A × d. Under 30% of expected = lamp failed; over 130% = short.

Pin map

SignalPin or connection
LDR dividerGPIO 34
RCWL-0516 OUTGPIO 27
MOSFET gate (via 100 Ω, 10 kΩ pull-down)GPIO 25 (PWM 1 kHz)
INA219 in the LED lineI²C 21 / 22
LED string12 V → 3 W LEDs each with 3.3 Ω, low-side MOSFET

Firmware outline

  1. Read the LDR every 5 s; on below the dusk level for 1 minute, switch to night mode (hysteresis to dawn level).
  2. Night mode: 30% PWM; on motion go to 100% and hold 30 s, then fade down over 3 s.
  3. Every minute compare measured current with expected; report a fault with the pole ID.
  4. Over LoRa or Wi-Fi, send hourly energy and status.

Test plan

TestExpected result
Covering the LDRTurns on after 1 minute, no flicker at the threshold
Walk pastFull brightness within 0.5 s
One LED disconnectedFault reported
One nightEnergy measured vs full brightness

These rows start your results table when you plan the project.

Viva practice

Say your answer out loud first, then check. The first 2 answers are free; Maker opens all 5.

1. Why radar and not PIR outdoors?
2. How does PWM dim an LED?
3. Why a logic-level MOSFET?
4. What does EESL's programme show?
5. How would many poles talk to the office?

Make it yours

One or two upgrades for a mini project, two to four for a major one.

Build these first

Datasheets and sources to cite

  • IS 1944 (code for lighting of public thoroughfares)
  • EESL Street Lighting National Programme
  • TI INA219 datasheet

About this project

How much does the smart street light with motion dimming and fault report project cost?

About ₹1,540 for the parts in the base list: ESP32 DevKit V1, LDR with 10 kΩ resistor, RCWL-0516 radar motion sensor, INA219 current and power sensor, IRLZ44N logic-level MOSFET, 3 W LED on star heatsink × 3, 3.3 Ω 3 W resistors (one per LED) × 3, 12 V 2 A DC adapter, LM2596 buck converter, Pole models and heatsinks.

How long does it take?

About 8 weeks for the base project, built on an ESP32. Each upgrade adds time.

Which branches is it suitable for?

Electrical and Electronics, Electronics and Communication, Diploma (any electronics branch), as a mini or major project.

Which pins and design calculations does it use?

LDR divider on GPIO 34; RCWL-0516 OUT on GPIO 27; MOSFET gate (via 100 Ω, 10 kΩ pull-down) on GPIO 25 (PWM 1 kHz). Worked calculations on this page: led resistor, dimming energy, fault detection.

How do I test it?

Covering the LDR: Turns on after 1 minute, no flicker at the threshold. Walk past: Full brightness within 0.5 s. One LED disconnected: Fault reported. One night: Energy measured vs full brightness.

What are the objectives?

To switch lights on at dusk and off at dawn with hysteresis. To run at 30% when the road is empty and 100% for 30 s after motion. To detect a failed lamp from its current and report its pole number. To measure energy used in a night against always-full brightness.