0% found this document useful (0 votes)
14 views4 pages

Report 1

The document presents a project on an Automatic Room Lighting System using Arduino and a PIR Sensor, which automatically turns lights on and off based on human presence. Key components include the Arduino UNO, PIR Sensor, and Relay Module, with applications in various settings like garages and restrooms. The project aims to enhance energy efficiency by ensuring lights are only on when needed.

Uploaded by

12202080701089
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

Report 1

The document presents a project on an Automatic Room Lighting System using Arduino and a PIR Sensor, which automatically turns lights on and off based on human presence. Key components include the Arduino UNO, PIR Sensor, and Relay Module, with applications in various settings like garages and restrooms. The project aims to enhance energy efficiency by ensuring lights are only on when needed.

Uploaded by

12202080701089
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056

Volume: 09 Issue: 05 | May 2022 www.irjet.net p-ISSN: 2395-0072

Automatic Room Lighting System


Mir Amjad Ali1, Mohammad Abdul Nabeel Hasnain2

1B.Tech Student, Department of Electronics and Computer Engineering, SNIST, Hyderabad.


2 B.E Student, Department of Electrical and Instrumentation Engineering, MJCET, Hyderabad.
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - In this project, the Automatic Room Lights using The PIR Sensor is the focal point of the three components
Arduino and PIR Sensor, where the lights in the room will because it is the primary device for detecting humans and
switch on and off automatically when a human enters the human motion.
room is made. Such Automatic Room Lights can be installed in
garages, stairwells, restrooms, and other areas where we do In reality, the Automatic Room Lights project is a key use of
not want continuous lighting but just when we are present. the PIR Sensor. A comparable principle is already in use in
Also, with the help of an automatic room light control system, automatic toilet flush valves, hand dryers, and other
you won't have to worry about running out of electricity products
because the lights will turn off automatically when no one is in
Components Used in this project :
the room.
 Arduino UNO
So, in this DIY project, we used Arduino and a PIR Sensor to
construct Automatic Room Lights.  PIR Sensor
 Breadboard
Key Words: Automatic Room Lights, Arduino and a PIR
Sensor.  Relay 5V
 LDR – Light Dependent Resistor (photodiode )
1. OVERVIEW
 Resistor
The Automatic Room Lights System with Arduino is a highly  Bulb
handy project since it eliminates the need to turn on and off
switches every time you want to turn on the lights. The  Power Supply
Arduino, PIR Sensor, and Relay Module are the primary
components of the Automatic Room Lights project.

Fig:1 Construction and Output Image

© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1042
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 05 | May 2022 www.irjet.net p-ISSN: 2395-0072

2. CIRCUIT DIAGRAM OF AUTOMATIC ROOM LIGHTS USING ARDUINO

The following image shows the circuit diagram of the project implemented using Arduino UNO, PIR Sensor and a Relay Module.

Fig:2 Circuit Diagram


3. COMPONENTS DESCRIPTION
Relay:
PIR Sensor:
A relay is a switch that is powered by electricity. It has a set of
PIRs are essentially made of a pyroelectric sensor (shown
input terminals for a single or many control signals, as well as
below as the circular metal container with a rectangular
a set of operating contact terminals. The switch may have an
crystal in the centre) that detects levels of infrared radiation.
unlimited number of contacts in various contact forms, such
Everything emits some low-level radiation, and the higher the
as make contacts, break contacts, or combinations of the two.
temperature, the more radiation is emitted. A motion
detector's sensor is actually divided into two sections. The
rationale for this is that we want to detect mobility (change)
rather than average IR levels. The two sides are linked
together in such a way that they cancel each other out. The
output will swing high or low if one part sees more or less IR
radiation than the other.

Fig:3 PIR Sensor Fig:4 Relay

© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1043
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 05 | May 2022 www.irjet.net p-ISSN: 2395-0072

4. CIRCUIT DESIGN delay(5000); // Wait for 5000 millisecond(s)

The Data OUT Pin of the PIR Sensor is linked to Arduino's } else {
Digital I/O Pin 8. An LED is attached to Arduino pin 13 to
indicate whether the light is on or off. digitalWrite(8, LOW);
The Relay Module's IN1 pin is wired to Arduino's Pin 9. A delay(1000); // Wait for 1000 millisecond(s)
relay connects a light bulb to the power source. One bulb
terminal is connected to one wire of the power source. The }
other end of the bulb is linked to the Relay Module's NO
(Normally Open) contact. } else {
The Relay's COM (Common) contact is linked to the other digitalWrite(8, LOW);
wire of the power source. When linking this section of the
project, use caution. Serial.println(LightSensorVal);
5. CODE
delay(300); // Wait for 300 millisecond(s)
// Automatic Room Lightning System
}
int LightSensorVal = 0; //Input SEnsor
}
int PIRSensorVal = 0; //Input S
6. Working
int RelayOutputVal = 0; //Output Relay
The Automatic Room Lights with Arduino and PIR Sensor is a
void setup() simple project in which the lights in the room switch on
automatically when a human motion is detected and stay on
{ until the person leaves or there is no motion.

This project's operation is pretty easy, as explained here.


pinMode(A0, INPUT); // Read the LDR sensor Value digital
Input When there is no human movement, the PIR Sensor does not
detect anyone and its OUT pin remains low. The PIR Sensor
pinMode(2, INPUT); // Read the PIR motion sensor value detects a shift in infrared radiation in the room as the person
enters it.
digital Input
As a result, the PIR Sensor's output becomes HIGH. Because
pinMode(8, OUTPUT); // Write the Relay output value, digital the PIR Sensor's Data OUT is connected to Arduino's Digital
Pin 8, once it gets HIGH, Arduino will activate the relay by
output
turning the relay pin LOW
Serial.begin(9600); This will turn on the light. As long as there is movement in
front of the sensor, the light remains on.
}
If the person falls asleep or leaves the room, the IR Radiation
void loop() stabilizes, and the Data OUT of the PIR Sensor becomes LOW.
As a result, the Arduino will switch off the relay and the room
{ light will be turned off.

LightSensorVal = analogRead(A0); Applications:


PIRSensorVal = digitalRead(2);  Garage Lights

RelayOutputVal = 8;  Bathroom Lights


 Hand Dryers
if (LightSensorVal< 600) {
 Toilet Flushers
if (PIRSensorVal == HIGH) {  Security Lights
digitalWrite(8, HIGH);

© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1044
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 05 | May 2022 www.irjet.net p-ISSN: 2395-0072

REFERENCES

[1]. TinkercadArduino Tutorials: Tutorials: Automatic Room


Lightning System

[2].http://education.rec.ri.cmu.edu/content/electronics/boe
/ir _sensor/1.html

[3] Automatic Room Light Controller with bidirectional


visitor counter | VOL-I Issue-4| ISSN: 2395-4841
.http://www.ijictrd.net/papers/IJICTRDV1I4005.pdf

[4].http://www.digchip.com/datasheets/parts/datasheet/1
05/ CL100-pdf.php

[5].http://www.datasheetarchive.com/dlmain/Datasheets3
12/174867.pdf

[6].https://www.fairchildsemi.com/datasheets/LM/LM7805
. pdf

[7] www.ijictrd.net

[8] www.slideshare.net

[9] lib.chipresistor.ru

BIOGRAPHIES

Mir Amjad Ali is a B.Tech Student,


Department of Electronics and
Computer Engineering, Sreenidhi
Institute of Science & Technology,
Hyderabad.
Mail id: [email protected]

Mohammad Abdul Nabeel Hasnain


is a B.E Student, Department of
Electrical and Instrumentation
Engineering, Muffakham Jah
College of Engineering and
Technology, Hyderabad.
Mail id: [email protected]

© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1045

You might also like