You are on page 1of 34

“Contactless Temperature Detector & Automatic Door

For Covid Safety”


A

Major Project Report

Submitted

In partial fulfillment

For the award of the Degree Of

Bachelor of Technology

in Department of Computer Science & Engineering

Submitted To: Submitted by:

Mr. MANGI LAL SIR ANITA CHOUHAN (CSE)

HOD Dept. of CSE 17EWECS002

PRATIKA SHARMA (ECE)

17EWEEC005

Department of Computer Science & Engineering

St. Wilfred’s Institute of Engineering & Technology

Rajasthan Technical University


ACKNOW LEDGEMENT
The Project was undertaken by Anita Chouhan & Pratika Sharma Of
Computer Science Engineering and Electronics and Communication of
8th sem, under the able guidance and supervision of Mr. Mangi Lal Sir
and Ma’am Sunita Kalwani. Our primary thanks goes to them , who
poured over every inch of our project with painstaking attention and
helped us throughout the working of the project. It‘s our privilege to
acknowledge our deepest sense of gratitude to them for their inspiration
which has helped us immensely. We are extremely grateful to them for
their unstilted support and encouragement in the preparation of this
project.
I extend my thanks to Mr. Mangi Lal Sir Head of the Department for his
cooperation and guidance.

ANITA CHOUHAN
AJMER,RAJASTHAN
CERTIFICATE
I hereby declare that the work, which is being presented in the Project Report,
entitled “Contactless Temperature Detector & Automatic Door Open for Covid
Safety” in partial fulfillment for the award of Degree of “Bachelor of Technology”
in Dept. of Computer Science and submitted to the Department of Computer
Science & Engineering. St. Wilfred’s Institute of Engineering & Technology,
Rajasthan Technical University is a record of my own investigations carried under
the Guidance of Mr. Mangi Lal Sir , Department of Computer Science &
Engineering & Technology.

I have not submitted the matter presented in this Major Project any where for
the award of any other Degree.

ANITA CHOUHAN

17EWECS002

St. Wilfred’s Institute of Engineering & Technology

Counter Signed by

Mr. Mangi Lal Sir (HOD)


ABSTRACT
We have designed this Project entitled “Contactless Temperature Detector and
Automatic Door Open for Covid Safety” with a simple design. The main motto
of this project is to utilization of sensor with combination of Arduino Uno R3 for
the temperature detector and automatic door opening systems.

Here we describe the design and implementation of temperature detector and


automatic controller for the door. The door opens when any human movement
is detected near the door it detect with help of PIR SENSOR and CONTACTLESS
TEPERATURE SENSOR detects the movements and send a signal to the transistor,
in turns gives interrupt signal to a programmable Arduino Uno R3, the output
signal form the Arduino Uno R3 is fed to the servo motors which is used to open
the door and close the door . the interrupt signals can be used to stop power to
the motors in the event of locked rotor condition.
Contents
“Contactless Temperature Detector & Automatic Door For Covid Safety” ..................................................................... 1
ACKNOW LEDGEMENT ....................................................................................................................................................... 2
CERTIFICATE ....................................................................................................................................................................... 3
ABSTRACT ........................................................................................................................................................................... 4
LIST OF FIGURES ............................................................................................................................................................... 6
INTRODUCTION .................................................................................................................................................................. 7
HARDWARE REQUIREMENTS: ............................................................................................................................................ 7
SOFTWARE REQUIREMENTS : ............................................................................................................................................ 7
BLOCK DIAGRAM : ............................................................................................................................................................. 8
It is the block diagram of Contactless Temperature Detector and Automatic Door Opener for Covid Safety .............. 8
PIR MOTION SENSOR .......................................................................................................................................................10
OVERVIEW........................................................................................................................................................................11
DETAILS ............................................................................................................................................................................12
Micro Power PIR Motion Detector IC ..............................................................................................................................12
HOW PIRs WORK : ..........................................................................................................................................................13
INFRARED TEMPERATURE SENSOR GY-906 MLX90614 ...................................................................................................14
ARDUINO UNO R3 : ..........................................................................................................................................................16
PROGRAMMING CODE EXPLANATION ............................................................................................................................18
LCD 1602A DISPLAY ..........................................................................................................................................................24
SERVO MOTORS ...............................................................................................................................................................26
LED DIODE ........................................................................................................................................................................28
RESISTOR ..........................................................................................................................................................................29
BREAD BOARD ..................................................................................................................................................................30
PROJECT ...........................................................................................................................................................................32
ADVANTAGES OF CONTACTLESS TEMERATURE DETECTOR & AUTOMATIC DOOR FOR COVID SAFETY .........................33
DIADVANTAGE .................................................................................................................................................................33
FUTURE DEVELOPMENT...................................................................................................................................................33
CONCLUSION....................................................................................................................................................................34
References .......................................................................................................................................................................34
LIST OF FIGURES
S.NO. TITLE PAGE NO.
1 BLOCK DIAGRAM OF 8
CONTACTLESS
TEMPERATURE
DETECTOR &
AUTOMATIC DOOR FOR
COVID SAFETY
2 PIR MOTION SENSOR 9
HOW PIRS WORK 12
3 TEMPERATURE SENSOR 13
4 ARDUINO UNO R3 17
5 LCD 1602A MODULE 23
6 SERVO MOTORS 25
7 LED DIODE 27
8 RESISTOR 28
9 BREAD BOARD DIAGRAM 29
10 PROJECT DIAGRAM 31
INTRODUCTION
The project is designed for automatic door opening system using PIR sensor.
Opening and closing of doors is always a tedious job, especially in places like
shopping malls, hotels and theatres where a person is always required to open
the door for visitors. This project proposes a system of automatic opening and
closing of door by sensing any body movement near the door. This is achieved
with help of a PIR (Passive Infrared) sensor. A live body generally emits infrared
energy which is sensed by the PIR sensor from a considerable distance. This
sensing signal is fed to a microcontroller to operate a door motor through motor
driver IC. When a body approaches within the operating range of the sensor, it
sends a logical command to open the door. The door automatically closes with a
fixed time delay. If there is no further movement within the PIR operating range.
Interrupt signals are used through limit switches to avoid locked rotor condition
of the motor.

HARDWARE SOFTWARE
REQUIREMENTS: REQUIREMENTS :
• Arduino UNO R3 Language: Arduino
• LCD 1602A Software
• PIR Sensor Language : C
• Contactless Temperature C++
Sensor GY-906
• Connecting wires
• Bread board
• 220 ohm resistor
• Power supply
• LED Diode
• Servo Motors
BLOCK DIAGRAM :

It is the block diagram of Contactless Temperature Detector and


Automatic Door Opener for Covid Safety
BLOCK DIAGRAM OF CONTACTLESS TEMPERATURE DETECTOR
AND AUTOMATIC DOOR FOR COVID SAFETY
PIR MOTION SENSOR

PIR MOTION SENSOR

PIR sensors allow you to sense motion, almost always used to detect whether a
human has moved in or out of the sensors range. They are small, inexpensive,
low-power, easy to use and don't wear out. For that reason they are commonly
found in appliances and gadgets used in homes or businesses. They are often
referred to as PIR, "Passive Infrared", "Pyroelectric", or "IR motion" sensors.
OVERVIEW
PIR sensors allow you to sense motion, almost always used to detect whether a
human has moved in or out of the sensors range. They are small, inexpensive,
low-power, easy to use and don't wear out. They are often referred to as PIR,
"Passive Infrared", "Pyroelectric", or "IR motion" sensors. PIRs are basically made
of pyro electric sensor which can detect levels of infrared radiation. Everything
emits some low-level radiation, and the hotter something is, the more radiation
is emitted. The sensor in a motion detector is actually split in two halves. The
reason for that is that we are looking to detect motion (change) not average IR
levels. The two halves are wired up so that they cancel each other out. If one half
sees more or less IR radiation than the other, the output will swing high or low.
Along with the pyroelectric sensor is a bunch of supporting circuitry, resistors
and capacitors. Some PIR Sensors use the BISS0001 (Micro power PIR Motion
detector IC) which is very inexpensive chip. This chip takes the output of the
sensor and does some minor processing on it to emit a digital output pulse from
the analog sensor. PIR sensors are cheap, consumes low power, have a wide lens
range, and are easy to interface

• In the Automatic Door Opening System, the main component or hardware


is the sensor which detects the persons (well, the motion of the person in
our case). For this purpose, we will be using the PIR Motion Detector
SensoR.

• We have already seen in the Arduino PIR Sensor Tutorial about how a PIR
Sensor Works and how to interface a PIR Sensor to an Arduino.

• Before continuing with this project, I suggest you to take a look at


the Arduino PIR Sensor Tutorial.

• For the purpose of demonstration, I have used a CD Tray to replicate the


door. Whenever the PIR Sensor detects a motion, the CD Tray opens and
then closes after some time.
DETAILS
• Size: Rectangular;
• Price: $10;
• Output: Digital pulse high (3V) when triggered (motion detected) and
digital low when idle. Sensitivity Range: up to 20 feet (6 meters) 110° x 70°
detection range
• Power supply: 5V-12V input voltage for most modules (they have a 3.3V
regulator), but 5V is ideal in case the regulator has different specs

Micro Power PIR Motion Detector IC

Features:
• Low power CMOS technology (ideal for battery operated PIR devices)
• CMOS high input impedance operational amplifiers
• Bi-directional level detector / Excellent noise immunity
• Built-in Power up disable& output pulse control logic
• Dual mode: retriggerable & non-retriggerable
HOW PIRs WORK :
The PIR sensor itself has two slots in it, each slot is made of a special material that
is sensitive to IR. When the sensor is idle, both slots detect the same amount of
IR, the ambient amount radiated from the room or walls or outdoors. When a
warm body like a human or animal passes by, it first intercepts one half of the PIR
sensor, which causes a positive differential change between the two halves.
When the warm body leaves the sensing area, the reverse happens, whereby the
sensor generates a negative differential change. These change pulses are what is
detected.
INFRARED TEMPERATURE SENSOR GY-906 MLX90614

➢ Using a Chip: MLX90614


Power supply: 3-5v (internal low dropout regulator)
Communication: Standard IIC communication protocol
Up for sale is a MELEXIS MLX90614ESF-BAA-000-TU-ND non-contact infrared
thermometer for use with , or any microcontroller that can communicate with
it through it’s I2C interface. This sensor comes with a breakout board with all
of the components needed for operation and two types of pins. They are
unsoldered. Please indicate if you would like one or the other soldered. There
are two solder jumpers for the I2C interface that may or may not need to be
soldered depending on your application, but will not for most uses.
❖ Features and Benefits:
Small size, low cost
Mounted on a breakout board with two types of pins
10k Pull up resistors for the I2C interface with optional solder jumpers
Easy to integrate
Factory calibrated in wide temperature range:
-40 … + 125 ° C for sensor temperature and
-70 … + 380 ° C for object temperature.
High accuracy of 0.5 ° C over wide temperaturerange (0 … + 50 ° C for both Ta
and To) High (medical) accuracy calibration
Measurement resolution of 0.02 ° C
Single and dual zone versions
SMBus compatible digital interface
Customizable PWM output for continuousreading
Simple adaptation for 8 … 16V applications
Sleep mode for reduced power consumption
Different package options for applications andmeasurements versatility
Automotive grade
❖ Applications Examples:
High precision non-contact temperaturemeasurements
Thermal Comfort sensor for Mobile AirConditioning control system
Temperature sensing element for residential, commercial and industrial
building airconditioning Windshield defogging
Automotive blind angle detection
Industrial temperature control of moving parts
Temperature control in printers and copiers
Home appliances with temperature control
Healthcare
Livestock monitoring
Movement detection
Multiple zone temperature control – up to 127sensors can be read via
common 2 wires
Thermal relay / alert
Body temperature measurement

TEMPERATURE SENSOR
ARDUINO UNO R3 :
The Arduino Uno is a microcontroller board based on the ATmega328 It has 14
digital input/output pins (of which 6 can be used as PWM outputs), 6 analog
inputs, a 16 MHz ceramic resonator, 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 a AC-to-DC adapter or battery to get started.
ARDUINO UNO R3 :

ARDUINO UNO is a microcontroller board based on the ATmega328P


(d a t a s h e e t ). 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 a AC-to-DC adapter or battery to get
started.. You can tinker with your Uno without worrying too much about doing
something wrong, worst case scenario you can replace the chip for a few dollars
and start over again.
PROGRAMMING CODE EXPLANATION
#include <LiquidCrystal.h>

int contrast=120;

LiquidCrystal lcd(12,11,5,4,3,2);

#include <Servo.h>

#include <Wire.h>

#include <Adafruit_MLX90614.h>

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

//LiquidCrystal_I2C lcd(0*27,16,2);

Servo myservo1;

Servo myservo2;

#define red 13

#define haha 4

int pos1,pos2;

void setup() {

Serial.begin(9600);

pinMode(red,OUTPUT);

pinMode(haha,INPUT);

myservo1.attach(7);

myservo2.attach(8);

myservo1.write(90);

myservo2.write(90);

mlx.begin();

analogWrite(6,contrast);

lcd.begin(16,2);
}

void loop() {

int montion = digitalRead(haha);

if(montion == 1){

Serial.print("made");

Serial.print("\n");

// lcd.setCursor(0,0);

//lcd.print("ObjectTemp:");

kaiguan();

void kaiguan(){

int temp_obj = mlx.readObjectTempC();

Serial.print(temp_obj);

Serial.print("\n");

if(temp_obj < 31){

lcd.setCursor(0,0);{

lcd.print(temp_obj);}

lcd.setCursor(0,1);{

lcd.print("Not detected!");}
}if(temp_obj > 30 && temp_obj <38){

lcd.setCursor(0,0);{

lcd.print("temp_obj");}

lcd.setCursor(0,1);{

lcd.print("body temp ok "); }

for(pos1 = 90; pos1 <= 180; pos1 += 1)

myservo1.write(pos1);

myservo2.write(180-pos1);

delay(15);

delay(5000);

for(pos1 = 180; pos1>=90; pos1 -=1)

myservo1.write(pos1);

myservo2.write(180-pos1);

delay(50);

if(temp_obj>37){

digitalWrite(red,HIGH);

lcd.setCursor(0,0);{

lcd.print("temp_obj");}

lcd.setCursor(0,1);{

lcd.print(" Keep out! ");}

delay(500);
}

digitalWrite(red,LOW);

void setup() {

Serial.begin(9600);

pinMode(irPin1, INPUT);

pinMode(irPin2, INPUT);

analogWrite(6,contrast);

lcd.begin(16,2);

void loop() {

if (!digitalRead(irPin1) && i==1 && state1){

outsideIr=true;

delay(100);

i++;

state1 = false;

if (!digitalRead(irPin2) && i==2 && state2){

Serial.println("Entering into room");

outsideIr=true;

delay(100);

i=1;

count++;

Serial.print("No of persons inside the room: ");

Serial.println(count);
state2 = false;

//lcd.print(

if (!digitalRead(irPin2) && i==1 && state2 ){

outsideIr=true;

delay(100);

i=2;

state2 = false;

if (!digitalRead(irPin1) && i==2 && state1 ){

Serial.println("Exiting from room");

outsideIr=true;

delay(100);

count--;

Serial.print("No of persons inside the room: ");

Serial.println(count);

i = 1;

state1 = false;

if (digitalRead(irPin1)){

state1 = true;
}

if (digitalRead(irPin2)){

state2 = true;

lcd.setCursor(0,0);

{lcd.print("person enter");

for (int scrollcounter=0;scrollcounter<50;scrollcounter++)

lcd.scrollDisplayLeft();

delay(500);

lcd.setCursor(0,1);

lcd.print("person out");

for (int scrollcounter=0;scrollcounter<50;scrollcounter++)

lcd.scrollDisplayLeft();

delay(500);

}
LCD 1602A DISPLAY
LCD1602, or 1602 character-type liquid crystal display, is a kind of dot matrix
module to show letters, numbers, and characters and so on. It's composed of 5x7
or 5x11 dot matrix positions; each position can display one character. There's a
dot pitch between two characters and a space between lines, thus separating
characters and lines. The model 1602 means it displays 2 lines of 16 characters.
Generally, LCD1602 has parallel ports, that is, it would control several pins at the
same time. LCD1602 can be categorized into eight-port and four-port
connections. If the eight-port connection is used, then all the digital ports of the
SunFounder Uno board are almost completely occupied. If you want to connect
more sensors, there will be no ports available. Therefore, the four-port
connection is used here for better application.

LCD 1602A MODULE


Components
- 1 * SunFounder Uno Board
- 1 * Breadboard
- 1 * LCD1602
- 1 * Potentiometer (50kΩ)
- 1 * USB Cable
- Several Jumper Wires
SERVO MOTORS

A servo motor is a rotary actuator that allows for precise control of angular
position. It consists of a motor coupled to a sensor for position feedback. It also
requires a servo drive to complete the system. The drive uses the feedback sensor
to precisely control the rotary position of the motor.

.
SERVO MOTOR
LED DIODE
A light-emitting diode (LED) is a semiconductor light source that emits light
when current flows through it. Electrons in the semiconductor recombine
with electron holes, releasing energy in the form of photons. The color of the light
(corresponding to the energy of the photons) is determined by the energy
required for electrons to cross the band gap of the semiconductor. White light is
obtained by using multiple semiconductors or a layer of light-emitting phosphor
on the semiconductor device.

Appearing as practical electronic components in 1962, the earliest LEDs emitted


low-intensity infrared (IR) light. Infrared LEDs are used in remote-control circuits,
such as those used with a wide variety of consumer electronics. The first visible-
light LEDs were of low intensity and limited to red. Modern LEDs are available
in visible, ultraviolet (UV), and infrared wavelengths, with high, low, or
intermediate light output.

LED DIODE
RESISTOR
A resistor is a passive two-terminal electrical component that
implements electrical resistance as a circuit element. In electronic circuits,
resistors are used to reduce current flow, adjust signal levels, to divide
voltages, bias active elements, and terminate transmission lines, among other
uses. High-power resistors that can dissipate many watts of electrical power as
heat, may be used as part of motor controls, in power distribution systems, or as
test loads for generators. Fixed resistors have resistances that only change
slightly with temperature, time or operating voltage. Variable resistors can be
used to adjust circuit elements (such as a volume control or a lamp dimmer), or
as sensing devices for heat, light, humidity, force, or chemical activity.

Resistors are common elements of electrical networks and electronic circuits and
are ubiquitous in electronic equipment. Practical resistors as discrete
components can be composed of various compounds and forms. Resistors are
also implemented within integrated circuits.

The electrical function of a resistor is specified by its resistance: common


commercial resistors are manufactured over a range of more than nine orders of
magnitude. The nominal value of the resistance falls within the manufacturing
tolerance, indicated on the component.

RESISTOR
BREAD BOARD
A breadboard, or protoboard, is a construction base
for prototyping of electronics. Originally the word referred to a literal bread
board, a polished piece of wood used when slicing bread. [1] In the 1970s
the solderless breadboard (a.k.a. plugboard, a terminal array board) became
available and nowadays the term "breadboard" is commonly used to refer to
these.

Because the solderless breadboard does not require soldering, it is reusable. This
makes it easy to use for creating temporary prototypes and experimenting with
circuit design. For this reason, solderless breadboards are also popular with
students and in technological education. Older breadboard types did not have
this property. A stripboard (Veroboard) and similar prototyping printed circuit
boards, which are used to build semi-permanent soldered prototypes or one-offs,
cannot easily be reused. A variety of electronic systems may be prototyped by
using breadboards, from small analog and digital circuits to complete central
processing units (CPUs).

Compared to more permanent circuit connection methods, modern breadboards


have high parasitic capacitance, relatively high resistance, and less reliable
connections, which are subject to jostle and physical degradation. Signaling is
limited to about 10 MHz, and not everything works properly even well below that
frequency.

A common use in the System on a chip (SoC) era is to obtain


an microcontroller (MCU) on a pre-assembled printed circuit board (PCB) which
exposes an array of input/output (IO) pins in a header suitable to plug into a
breadboard, and then to prototype a circuit which exploits one or more of the
MCU's peripherals, such as general-purpose
input/output (GPIO), UART/USART serial transceivers, analog-to-digital
converter (ADC), digital-to-analog converter (DAC), pulse-width
modulation (PWM; used in motor control), Serial Peripheral Interface (SPI),
or I²C.

Firmware is then developed for the MCU to test, debug, and interact with the
circuit prototype.

High frequency operation is then largely confined to the SoC's PCB. In the case of
high speed interconnects such as SPI and I²C, these can be debugged at a lower
speed and later rewired using a different circuit assembly methodology to exploit
full-speed operation.

A single small SoC often provides most of these electrical interface options in a
form factor barely larger than a large postage stamp, available in the American
hobby market (and elsewhere) for a few dollars, allowing fairly sophisticated
breadboard projects to be created at modest expense.

BREAD BOARD DAIGRAM


PROJECT
ADVANTAGES OF CONTACTLESS TEMERATURE DETECTOR &
AUTOMATIC DOOR FOR COVID SAFETY
• For people in wheelchairs and other disabled individuals, automatic doors
are an immense boon, since conventional doors can be very hard to work
with. It may be impossible to open a conventional door while seated in a
wheelchair or navigating with crutches.

• In hospitals and scientific labs, automatic doors can be used to secure an
area by ensuring that the doors are shut at all times, while reducing the risk
of cross-contamination since people do not need to handle the doors to
pass through them.

• Automatic doors can also be useful in warehouses and other facilities


where people frequently have their hands full, contributing to safety and
efficiency by making it easier for people to get around.

DIADVANTAGE
Cannot used for security purpose.

FUTURE DEVELOPMENT
Can be ftrther used in security systems by implementing tinger print on it. Fans
air conditioner- curtains- control can be added alons with automatic door.
CONCLUSION
This project is a simple design of Contactless Temperature Detector and
Automatic Door Open for Covid Safety where Temperature sensor and PIR sensor
serves the main input function and here arduino uno is microcontroller based.

We have considered two feedbacks to this architecture that when we implement


an effective system then there can be a display unit for showing number of
persons entered in a particular room along with this system we can use face-
detection through camera for automated attendance system.

Thus, we can conclude that this is a simple and low cost architecture of
contactless temperature detector and automatic door open for covid safety
system but having lots of benefits such as we can conserve energy , reduce human
efforts, save time etc.

References
https://www.robotix.in/

https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/

http://circuitdigest.com/microcontroller-projects/automatic-door-opener-projectusing-arduino/

You might also like