Design And Construction Of An Automatic Room Lights Using Arduino And PIR Sensor

Overview

This work is on an Automatic Room Lights using Arduino and PIR Sensor, where the lights in the room will automatically turn ON and OFF by detecting the presence of a human.

This Automatic Room Lights can be implemented in your garages, staircases, bathrooms, etc. where we do not need continuous light but only when we are present. Also, with the help of an automatic room light control system, you need not worry about electricity as the lights get automatically off when there is no person. The aim of this work is to build a device that lights in the room will automatically turn on upon detecting a human motion and stay turned on until the person has left or there is no motion.

TABLE OF CONTENTS

COVER PAGE

TITLE PAGE

APPROVAL PAGE

DEDICATION

ACKNOWELDGEMENT

ABSTRACT

CHAPTER ONE

1.0      INTRODUCTION

1.1      BACKGROUND OF THE PROJECT

  • PURPOSE OF THE PROJECT
  • AIM OF THE PROJECT
  • OBJECTIVE OF THE PROJECT
  • PURPOSE OF THE PROJECT
  • LIMITATION OF THE PROJECT
  • ADVANTAGES OF THE PROJECT
  • PROBLEM OF THE PROJECT
  • APPLICATION OF THE PROJECT
  • RESEARCH QUESTION
  • PROJECT ORGANISATION

CHAPTER TWO

LITERATURE REVIEW

  • OVERVIEW OF THE STUDY
  • REVIEW OF THE RELATED STUDY

 

CHAPTER THREE

3.0     CONSTRUCTION METHODOLOGY

3.1      BASIC OF THE SYSTEM

3.2     BLOCK DIAGRAM OF THE SYSTEM

3.3      SYSTEM OPERATION

3.4      CIRCUIT DIAGRAM

3.5      CIRCUIT DESCRIPTION

3.6     DESCRIPTION OF COMPONENTS USED

3.7      POWER SUPPLY UNIT

CHAPTER FOUR

4.0      TESTING AND RESULTS

  • CONSTRUCTION PROCEDURE AND TESTING
  • INSTALLATION OF THE COMPLET DESIGN
  • ASSEMBLING OF SECTIONS
  • TESTING OF SYSTEM OPERATION
  • COST ANALYSIS

CHAPTER FIVE

  • CONCLUSION
  • RECOMMENDATION
  • REFERENCES

Keyword:  automatic room light controller using arduino pdf, automatic room light controller using arduino and pir sensor, automatic staircase light using pir sensor, automatic room light control using pir sensor arduino, automatic room light controller using arduino and ir sensor, automatic room light using arduino and pir sensor, home automation using pir sensor and arduino, automatic room light control upon human presence pdf

So, in this DIY project, we have implemented Automatic Room Lights using Arduino and PIR Sensor.

Table of Contents

  • Overview
  •  Circuit Diagram of Automatic Room Lights using Arduino
  • Components Required for Automatic Room Lights using Arduino
  • Component Description
    • PIR Sensor
    • Relay Module
  • Circuit Design
  • Code
  • Working of the Project
  • Applications

Overview

Automatic Room Lights System using Arduino is a very useful project as you need not worry about turning on and off the switches every time you want to turn on the lights. The main components of the Automatic Room Lights project are Arduino, PIR Sensor and the Relay Module.

Out of the three components, the PIR Sensor is the one in focus as it is the main device that helps in detecting humans and human motion.

In fact, the Automatic Room Lights project can be considered as one major application of the PIR Sensor. A similar concept is being already implemented in automatic toilet flush valves, hand dryers, etc.

Also Read: ARDUINO PIR SENSOR TUTORIAL

 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.

If you do not have a relay module, you can make one yourself using very simple hardware. The following circuit diagram shows the project being implemented with the help of discrete components for the Relay Module.

CAUTION: The project involves connection with 230V AC Mains (or 110V, depending on where you live!!!). Be extremely careful when connecting the bulb and Relay to mains supply. If you are unfamiliar with the connections, I strongly recommend having an adult supervision (or an expert supervision).

Components Required for Automatic Room Lights using Arduino

  • Arduino UNO [Buy Here]
  • PIR Sensor [Buy Here]
  • 5V Relay Module (Relay Board) [Buy Here]
  • LED [Buy Here]
  • 100Ω Resistor (1/4 Watt)  [Buy Here]
  • Connecting Wires [Buy Here]
  • Breadboard [Buy Here]
  • Power Supply [Buy Here]

If you do not have a Relay Module, use the following components:

  • 5V Relay
  • 2N2222 (or BC547) NPN Transistor [Buy Here]
  • 1N4007 PN Junction Diode [Buy Here]
  • 1KΩ Resistor (1/4 Watt) [Buy Here]

Component Description

PIR Sensor

We have already seen about PIR Sensor in the PIR Motion Sensor Tutorial and also implemented in a variety of projects like Home Security System and Automatic Door Opener.

Relay Module

A Relay Module is a very useful component as it allows Arduino, Raspberry Pi or other Microcontrollers to control big electrical loads. We have used a 2-channel Relay Module in this project but used only one relay in it. The relay module used in this project is shown below.

In order to control a single relay on the board, we need to use three pins of the relay module: VCC, GND and IN1.

Before continuing, read How to use 5V Relay on Arduino

NOTE: The relay module used in this project is as active LOW one i.e. when the IN1 pin is HIGH, the relay is OFF and when it is LOW, the relay is activated. This point is important while programming the Arduino UNO.

Circuit Design

PIR Sensor’s Data OUT Pin is connected to Arduino’s Digital I/O Pin 8. An LED is connected to pin 13 of Arduino to indicate whether the light is turned ON or OFF.

The IN1 pin of the Relay Module is connected to Pin 9 of Arduino. A bulb is connected to mains supply through relay. One terminal of the bulb is connected to one wire of the mains supply. The other terminal of the bulb is connected to the NO (Normally Open) contact of the Relay Module.

COM (Common) contact of the Relay is connected to the other wire of the mains supply. Be careful when connecting this part of the project.

 

Code

The code for the Automatic Room Lights using Arduino and PIR Sensor is given below.

int in1 = 9;

 

int sensor = 8;

 

int led = 13;

 

unsigned long t=0;

 

 

void setup()

 

{

 

Serial.begin(9600);

 

pinMode(in1, OUTPUT);

 

pinMode(sensor, INPUT);

 

pinMode(led, OUTPUT);

 

 

digitalWrite(in1,HIGH);

 

digitalWrite(led,LOW);

 

 

while(millis()<13000)

 

{

 

digitalWrite(led,HIGH);

 

delay(50);

 

digitalWrite(led,LOW);

 

delay(50);

 

}

 

digitalWrite(led,LOW);

 

 

}

 

 

 

void loop()

 

{

 

digitalWrite(in1,HIGH);

 

digitalWrite(led,LOW);

 

if(digitalRead(sensor)==HIGH)

 

{

 

t=millis();

 

while(millis()<(t+5000))

 

{

 

digitalWrite(in1,LOW);

 

digitalWrite(led,HIGH);

 

if((millis()>(t+2300))&&(digitalRead(sensor)==HIGH))

 

{

 

t=millis();

 

}

 

}

 

}

 

}

view raw Automatic_Room_Lights_Arduino.ino hosted with by GitHub

Working of the Project

The Automatic Room Lights using Arduino and PIR Sensor is a simple project, where the lights in the room will automatically turn on upon detecting a human motion and stay turned on until the person has left or there is no motion.

Working of this project is very simple and is explained here.

Initially, when there is no human movement, the PIR Sensor doesn’t detect any person and its OUT pin stays LOW. As the person enters the room, the change in infrared radiation in the room is detected by the PIR Sensor.

As a result, the output of the PIR Sensor becomes HIGH. Since the Data OUT of the PIR Sensor is connected to Digital Pin 8 of Arduino, whenever it becomes HIGH, Arduino will activate the relay by making the relay pin LOW (as the relay module is an active LOW module).

This will turn the Light ON. The light stays turned ON as long as there is movement in front of the sensor.

If the person takes a nap or leaves the room, the IR Radiation will become stable (there will be no change) and hence, the Data OUT of the PIR Sensor will become LOW. This in turn will make the Arduino to turn OFF the relay (make the relay pin HIGH) and the room light will be turned OFF.

Applications

I’ve already mentioned a few applications of the Automatic Room Lights concept. Some of them are:

  • Garage Lights
  • Bathroom Lights
  • Hand Dryers
  • Toilet Flushers
  • Security Lights

Chapter Two: Literature Review

2.0 INTRODUCTION:

This chapter provides the background and context of the research problems, reviews the existing literature on the Design And Construction Of An Automatic Room Lights Using Arduino And PIR Sensor, and acknowledges the contributions of scholars who have previously conducted similar research [REV64430] …

Document Information

    • Format: DOC/PDF
    • Title: Design And Construction Of An Automatic Room Lights Using Arduino And PIR Sensor:

YOU MAY LOVE THESE (Recommended)

  • How to write the “Smart Waste Bin Using Arduino” Project

    To start a project on Smart Waste Bin Using Arduino, follow these guidelines: The main objective of the project is to design a smart dustbin which will help in keeping our environment clean and also eco friendly. Nowadays technologies are getting smarter day-by-day so, as to clean the environment we are designing a smart dustbin by using Arduino. This smart dustbin managem…

    45 Pages 1 - 5 Chapters 6,758 Words DOC/PDF Format Instant Download UPN65324

  • To develop a project on Remodelling Of Conference Room, Floor Finishes, Window And Furnitures, follow these approaches: This project is anchored on the design and construction of Tiles, windows and furniture involves in the conference room their method and pattern of construction, it’s advantages value and as well other valuable tool such as; working tools for the construction of tiles; (cement, white cement, fine…

    57 Pages 1 - 5 Chapters 7,054 Words DOC/PDF Format Instant Download UPN64238

  • To undertake a project on Modification And Performance Evaluation Of A Cold Room Storage Structure, follow these effective ways: The cold storage structure was modified and evaluated for the storage of fruits and vegetables at the department of agricultural and bio-environment engineering of Kwara State polytechnic, Ilorin; the cold storage structure consists of the following components; compressor, evaporator, condenser, …

    58 Pages 1 - 5 Chapters 9,098 Words DOC/PDF Format Instant Download UPN64194

  • To write a project on Design And Implementation Of A Body Mass Index (BMI) Machine Using Load Cell And Ultrasonic Sensor, follow these structure: Here we propose an automated BMI calculator system that does not need the user to input anything. The user just needs to stand on a platform and the system displays BMI as well as body type of user. The system uses load cells for weight sensing along with an ultrasonic sensor for height measureme…

    96 Pages 1 - 5 Chapters 16,110 Words DOC/PDF Format Instant Download UPN64447

  • To carry out a project on Design And Construction Of Programmable 3-Phase Motor Controller Using Arduino Embedded System, follow these effective methods: This project aims to control the speed of a three-phase induction motor using an Arduino controller. The Arduino generates Pulse Width Modulation (PWM) signals to regulate motor speed, which is managed through a driver and three-phase inverter circuits. Additionally, the project reduces harmonics…

    43 Pages 1 - 5 Chapters 4,858 Words DOC/PDF Format Instant Download UPN64752

  • 1.0 INTRODUCTION 1.1 BACKGROUND OF THE STUDY The need for having home protection has always been there. But in the recent times, considering a dramatic rise in petty crimes like robbery and theft, the need has been more strongly felt to have a fool proof protection of the belongings and the family members. Home security has come a long way in the last few decades. It was in the hands of a guard who manually provided surveillance during […]

    64 Pages 1 - 5 Chapters 10,002 Words DOC/PDF Format Instant Download UPN66132

  • To start a project on Design And Construction Of Automatic Smart Waste Bin, follow these guidelines: The main objective of the project is to design a smart dustbin which will help in keeping our environment clean and also eco friendly. Nowadays technologies are getting smarter day-by-day so, as to clean the environment we are designing a smart dustbin by using Arduino. This smart dustbin managem…

    45 Pages 1 - 5 Chapters 6,761 Words DOC/PDF Format Instant Download UPN85748

  • Techniques for writing the “Design And Construction Of Automatic Phase Selector” Project

    INTRODUCTION As the growing population of human race widens the gulf between energy supply and energy demand, the imbalance in energy availability sent researchers into excavating for a way of settling this age long squabble. A lasting solution is vested on alternative use of the renewable energy source, a project that is yet to be widely applied. Hence, the continuation of the unsettled yearns for sufficient power. Consequently, the p […]

    51 Pages 1 - 5 Chapters 5,437 Words DOC/PDF Format Instant Download UPN63942

  • Techniques for writing the “Design And Construction Of Automatic Fence Light Controller” Project

    To develop a project on Design And Construction Of Automatic Fence Light Controller, follow these approaches: The very fundamental reasons behind this project assignment is to expose student to the very important aspect of private and independent research work not only theories but also subsequent translation of the theoretical research work into a particular function system. The project construction of …

    25 Pages 1 - 5 Chapters 2,587 Words DOC/PDF Format Instant Download UPN63990

  • To undertake a project on Design And Construction Of Automatic Change-Over For Three Phases, follow these effective ways: The main aim of any electric power supply in the world is to provide uninterrupted power supply at all times to all its consumers. Although in developing countries, the electric power generated to meet the demands of the growing consumers of electricity is insufficient hence instability and outag…

    50 Pages 1 - 5 Chapters 6,521 Words DOC/PDF Format Instant Download UPN64102

Live Chat