Report 1
Report 1
© 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
The following image shows the circuit diagram of the project implemented using Arduino UNO, PIR Sensor and a Relay Module.
© 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
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.
© 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
[2].http://education.rec.ri.cmu.edu/content/electronics/boe
/ir _sensor/1.html
[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
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1045