top of page

STREET LIGHT AUTOMATION USING IOT

This project involves the construction of an automated street light model that switches ON / OFF automatically as the ambient light decreases/increases respectively using a light dependant resistor (LDR).

An automated lighting system is always more advantageous when in comparison with the traditional lighting system as it not only reduces manpower but also consumes less power and electricity.

Since it is quick and completely automated, it also ensures safety for residents/pedestrians from any unprecedented events and prevent mishaps.

sl exp: List

COMPONENTS

sl exp: Services
arduino-uno-board-500x500.jpg

Arduino Uno

Arduino Uno is a microcontroller board based on the ATmega328P. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator (CSTCE16M0V53-R0), a USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with an AC-to-DC adapter or battery to get started.

CONNECTION SCHEMATIC

ARDUINO UNO         LDR

5V                    to       Vcc

GND                to       GND

A0                    to       A0

ARDUINO UNO         ESP-8266 WIFI MODULE

pin 3                    to       TX

pin 4                    to       RX

3.3V                     to       VCC

3.3V                     to       CH_PD

GND                    to       GND

ARDUINO UNO         RELAY DRIVER MODULE

pin 8                   to     R1

5V                       to     R2

GND                   to     GND

sl exp: CV

In this project, we use an LDR to detect the presence of light/sunlight in our surroundings. The LDR is a high resistance semiconductor whose resistance decreases as light increases and vise versa. We program the microcontroller to sense the fluctuations in these readings and control the light accordingly.

​

Programming logic 

Read data from LDR using analog read and use map function to map the values from 0,1023 to 0,100 for more readability.

Activate light based on received sensor data.

Connect and send AT commands to esp-8266.

Send relevant data to the ThingSpeak API via WiFi. 

sl exp: Text
sl exp: Image
STREET LIGHT CODE.jpeg
sl exp: Image
STREET LIGHT THINGSPEAK.jpeg
sl exp: Image
bottom of page