Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
BY
K. BHUVANA SRI
1602-13-733-010
2017
ACKNOWLEDGEMENT
The success and final outcome of this project required a lot of guidance and assistance from
many people and we are extremely fortunate to have got this all along the completion of our
project work. Whatever we have done is only due to such guidance and assistance and we
would not forget to thank them.
We are thankful to and fortunate enough to get constant encouragement, support and
guidance from all Teaching staffs of Department of computer science which helped us in
successfully completing our project work. Also, we would like to extend our sincere regards
to all the non-teaching staff of department of computer science for their timely support.
Table of Contents
5 CODE .................................................................................................................... 8
6SCREENSHOTS.................................................................................................. 17
8 REFERENCES ................................................................................................... 18
1.0INTRODUCTION:
1.1 Purpose:
This world is full of different kind of light sources some are natural ones while others
are man-made light sources. The man-made light sources have only two modes of
operation that is switch on and switch off there is no intermediate level that can be set
according to the surrounding lighting condition and at the end everything needs to be
controlled manually. These lead to wastage of electricity and at the same time a
manual control is not effective in the modern era. The smart street-light system is
implemented on an embedded platform & is equipped with a photo sensitive detector
(LDR) which gives the required input for operation .The working of our light control
system is based on the amount of luminous energy in the environment at that moment
of time. Depending upon the light intensity at that instant the lighting of the lighting
system is adjusted. The embedded main board including the Microcontroller chip,
memory (flash), and communication port are used as a processing module for the
input that we get from peripheral devices (LDR).
1.2 Scope:
In this project, we propose an advanced light control system which is capable of
replacing the old generation light control system. Application of such a system can be
implemented in workstations, park lights, street lighting system, head lights of
automobiles and much more.
1|Page
Thing It denotes a physical entity
Configuration It means a product which is available / Selected from a catalogue can
be customized.
FAQ Frequently Asked Questions
LDR Light Dependent Resistor
LED Light Emitting Diode
1.4 Overview
OVERALL DESCRIPTION :
Components Used:
Arduino Uno
Arduino is an open-source prototyping platform based on easy-to-use
hardware and software. Arduino boards are able to read inputs - light on a
sensor, a finger on a button, or a Twitter message - and turn it into an output
controlling the device, turning on an LED, publishing something online. All
this is defined by a set of instructions programmed throughthe Arduino
Software (IDE).
LDR Sensor:
Light Dependent Resistor(LDR) is a light-controlled variable resistor.
LED Lights:
It is used to indicate the control of street lights.
2|Page
2.1 Product Perspective:
Sensi Smart is required by the user who feels making their work more easier as they
just need to wear this device to their hand and have the arduino setup with their
homes switch board and then they are ready.
Theory of Operation:
As stated earlier our main objective is to provide an efficient & energy saving
lighting system by evaluating the outside lighting condition and then adjusting
the lights accordingly. The circuit mainly consists of a sensing element known
as LDR,which is followed by processing unit Arduino which takes input for
sensing element and gives its output to the LEDS (lighting units).Though
other units like relays, transistors are also be used for higher voltage supply.
The LDR senses the light and sends the data to Arduino. The Arduino analyse
the data and gives its response to the LEDS through the relay mechanism. The
Arduino is programmed in such a way it automatically adjusts the lights to
give most accurate result possible.
3.1Hardware Requirements:
3|Page
- Arduino Uno
- LED
- LDR (photoresistor)
- Wires
- Breadboard
4.SYSTEM DESIGN
ARDUINO:
We used Arduino board to reduce the complexity of system design and computational
complexity. An important aspect of the Arduino is its standard connectors, which let
users connect the CPU board to a variety of interchangeable add-on modules
termed shields. Some shields communicate with the Arduino board directly over
various pins, but many shields are individually addressable via an IC serial busso
many shields can be stacked and used in parallel.
4|Page
"Uno" means one in Italian and was chosen to mark the release of Arduino Software
(IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE) were
thereference versions of Arduino, now evolved to newer releases. The Uno board is
the first in a series of USB Arduino boards, and the reference model for the Arduino
platform; for an extensive list of current, past or outdated boards see the Arduino
index of boards.
5|Page
LED:
LEDs, or lightemitting diodes, are semiconductor devices that produce visible light
when an electrical current passed through them. LEDs are a type of Solid State
Lighting (SSL), as are organic lightemitting diodes (OLEDs) and lightemitting
polymers (LEPs).
USB:
This board converts a USB connection into a 5 volt Serial TX and RX that you can
connect straight to the Arduino Mini, Arduino Ethernet or other microcontrollers,
6|Page
allowing them to talk to the computer. It features an Atmega8U2programmed as a
USB-to-serial converter, the same chip found on the Arduino Uno. The '8U2
firmware uses the standard USB COM drivers, and no external driver is needed.
However, on Windows, a .inf file is required.
4.LDR
Light Dependent Resistor as the name suggest the resistance is dependent upon the light
incident on it. The light dependent resistor resistance changes with intensity of light, with
increase in light intensity the resistance offered by the sensor decreases and with decrease in
light intensity the resistance offered by the sensor increases. Hence it acts as variable resistor
with change in light intensity. These helps in finding the amount of light intensity at that
instant of time and thus helping in regulating the lighting of our lighting system accordingly.
5.CODE
//set pin numbers
//const won't change
constintledPin = 13; //the number of the LED pin
constintldrPin = A0; //the number of the LDR pin
intldrStatus=0;
int brightness = 0; // how bright the LED is
intfadeAmount = 5; // how many points to fade the LED by
void setup() {
7|Page
Serial.begin(9600);
pinMode(ledPin, OUTPUT); //initialize the LED pin as an output
pinMode(ldrPin, INPUT); //initialize the LDR pin as an input
}
void loop() {
//analogWrite(led, brightness);
if (ldrStatus<=500) {
}
else {
8|Page
6.CONNECTION AND OUTPUT SCREENSHOTS
CONNECTION DIAGRAMS
OUTPUT:
9|Page
7.CONCLUSION AND ENHANCEMENTS
Conclusion:
Future Enhancements:
Further enhancements for the project would be to control the level of brightness
using ambient light sensors.
8. References:
1. https://www.arduino.cc/en/Reference/Board
2.https://www.arduino.cc/en/Tutorial/HomePage
10 | P a g e