Professional Documents
Culture Documents
On
PERSONNEL COUNTER
Submitted to
BACHELOR OF TECHNOLOGY
In
Submitted By
N.JHANSI - (16699A0472)
M.VASAVI - (16699A04A6)
G.V.PRIYANKA - (16699A04A8)
Assistant Professor
(UGC – AUTONOMOUS)
2016-2020
BONAFIDE CERTIFICATE
This is to certify that the project work entitled “PERSONNEL COUNTER” is a bonafide work carried out by
N.JHANSI - (16699A0472)
M.VASAVI - (16699A04A6)
G.V.PRIYANKA - (16699A04A8)
Submitted in partial fulfillment of the requirements for the award of degree Bachelor of Technology in the stream of
Electronics & Communication Engineering in Madanapalle Institute of Technology & Science, Madanapalle,
affiliated to Jawaharlal Nehru Technological University Anantapur, Ananthapuramu during the academic year 2017-
2018.
We are extremely grateful to Dr.K.R.Kashwan, Ph.D., Dean and Head of ECE for her valuable guidance and constant
encouragement given to us during this work.
We sincerely thank Dr. C. Yuvaraj, M.E., Ph.D., Principal for guiding and providing facilities for the successful completion
of our project at Madanapalle Institute of Technology & Science, Madanapalle.
We sincerely thank the MANAGEMENT of Madanapalle Institute of Technology & Science for providing
excellent infrastructure and lab facilities that helped me to complete this project.
We would like to say thanks to other Faculty of ECE Department and also to our friends and our parents for their
help and cooperation during our project work.
3
DECLARATION
We hereby declare that the results embodied in this project “PERSONNEL COUNTER” by us under the
guidance of Dr. Dheeran Ku Mahapatra Assistant Professor, Dept. of ECE in partial fulfillment of the award of
Bachelor of Technology in Electronics and Communication Engineering, MITS, Madanapalle from Jawaharlal
Nehru Technological University Anantapur, Ananthapuramu and we have not submitted the same to any other
University/institute for award of any other degree.
Date :
Place :
PROJECTASSOCIATES
N.JHANSI
M.VASAVI
G.V.PRIYANKA
I certify that above statement made by the students is correct to the best of my knowledge.
Date : Guide
Dr. Dheeren Ku Mahapatra
4
ABSTRACT
In today’s world, there is a continuous need for automated appliances. With the
increase in the living standards, there is an immediate need for developing
circuits that would enhance living conditions and luxury. The proposed systems
control various elements in the room, such as lighting, ventilation and circulation
depending on the personnel count in the room. The system can be applied
regardless of the size of the room. This proposed solution is most viable in
scenarios where crowd control is essential. Some example are large indoor
congregations, popular tourist locations and temples.
5
CONTENTS
Abstract……………………………………………………………………...…3
2. Chapter two…………………………………….…………………..….……8
2.0 List of Components…………………………………………..…8
2.1 Arduino Uno……………………….…….……………………...8
3. Chapter three………………………………………………………………...10
3.0 The Resistor……………………………………..……………..10
3.1 IR Sensor……………………………………..……………..….10
3.2 16X2 LCD Display……………………….………………….....11
3.3 Pin Description…………………………...……………..…...…12
4. Chapter four…………………………………………………………….……13
4.0 Hardware Design………………………………………….…….13
4.1 Block Diagram…………………………………………..............14
4.2 Software Design……………………………………..…….……14
4.3 Installing the Arduino…………………………………………...14
4.4 Verifying the Hardware……………………………………...….15
4.5 Arduino Language…………………………...….……..………..15
6
5. Chapter five……………………………………………………..……...……..16
5.0 System Implementation and Development………………………16
5.1Testing……………………………………………………..……..16
5.2 Display Testing…………………………………..………...…....16
5.3 Development of the whole system…………..................………..17
5.4 Expected test results………………………………....………….17
6.Chapter six………………………………………………………..……..……18
6.0 Summary and Conclusion……………………………..……..….18
6.1 Conclusion………………………………………………………18
6.2 Applications……………………………………………………..18
6.3 Future Work Scope………………………………….……..……18
6.4 Appendix…………………………………………….…….……19
1.Programming Code of Personnel Counter…………….……...19
2.Programming Code for testing Active High/Low Sensor….…21
6.5 References……………………………………………………....22
7
CHAPTER 1
INTRODUCTION:
Personnel Counter with Automatic Room Light Controller is a reliable Circuit that takes over
the task of controlling the room lights as well us counting number of person’s visitors in the
room very accurately when somebody enters into the room then the Counter is incremented
by one value and the light in the room will automatically switched ON and when any one
leaves the room then the counter is decremented by one value and the light will be only
switched OFF until all the persons in the room go out. The total number of persons inside the
room is also displayed on the LCD display. The Arduino Uno does the above job. It receives
the signals from the sensors, and this signal is operated under the control of software called
Arduino(IDE). Also in addition the total number of person in the room be incremented value
or decremented value will always be displayed in the LCD thus makes this system a very
user friendly.
Wastage of electricity is one of the main problems which we are facing now-a-days. In our
home, school, colleges or industry we see that fan and lighting point are kept on even if there
are nobody in the room or area and passage. This happens due to negligence or because we
forgot to turn lights off or we are in a hurry. To avoid all such situations this project called
“PERSONNEL COUNTER” is designed. This project has two modules, first one is known
as “Digital Visitor counter” and second module is known as “Automatic room light
controller”. Main concept behind this project is known as “Visitor counter” which measures
the number of persons entering in any room like seminar hall, conference room, hotel rooms.
Here Arduino receives the signals from the sensors, and this signal is operated under the
control of software which is stored in the ROM.
LCD display placed outside the room displays this value of person count. This person count
will be incremented if somebody enters inside the room and at that time lights are turned on.
And in reverse way, person count will be decremented if somebody leaves the room. When
number of persons inside the room is zero, lights inside the room are turned off.
8
LITERATURE REVIEW :
Although not same but many related work have been done by many researchers. Some of the
papers have been studied and described below.
Asha Rawat, et al. [2016] has done an “Automated Room Light Controller with
Visitor Counter” [1]. The main purpose of the project is automation, saving electricity,
increasing appliance life span and yet providing a desired output smartly
Gaurav Waradkaret al [2016] has done “Automated Room Light Controller with
Visitor Counter” [3]. This paper presents the design and construction of a digital
bidirectional visitor counter. This is reliable project that takes over the task of counting
number of visitors in the room.
9
CHAPTER 2
LIST OF COMPONENTS:
Following is the list of components that are necessary to build the assembly the project.
1. Arduino Uno
2. 16×2 LCD display
3. Resistors
4. IR Sensors
5. LED
6. Computer with Arduino software installed
ARDUINO UNO :
An Arduino board historically consists of an Atmel 8-, 16-or 32-bit AVR microcontroller
with complementary components that facilitate programming and incorporation into other
circuits. 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 I²C serial bus—so many shields can be stacked and used in
parallel. It provides 14 digital I/O pins, six of which can produce pulse width modulated
signals, and six analog inputs, which can also be used as six digital I/O pins. This board has a
5 volt linear regulator and a 16 MHz crystal oscillator and a USB connection, a power jack,
an ICSP header, and a reset button.
10
Figure-1: Arduino UNO
11
CHAPTER 3
THE RESISTOR :
A resistor is a device that restricts the flow of electricity. It opposes the low of current.
Resistors can limit or divide the current, reduce the voltage, protect an electric circuit, or
provide large amount of heat or light. Its unit is ohm. Alternatively, ohm can be defined as
the resistance of a circuit in which a current of 1 ampere generates heat at a rate of 1 watt. If
V represents the potential difference in volts across the circuit having resistance R ohm,
carrying a current in
amperes, the relationship is thus;
V = IR………………………………… (1)
Hence, R = V/I………………………………… (2)
Where; R is resistance
V is voltage I is current (amperes)
Resistors can be connected either in series or parallel in an electrical circuit. When resistors
are connected in series, their combined resistance is equal to the sum individual resistors
connected together.
INFRARED SENSOR MODULE:
An infrared sensor is an electronic device that emits in order to sense some aspects of the
surroundings. An IR sensor can measure the heat of an object as well as detects the motion.
The radiations are invisible to our eyes, which can be detected by an infrared sensor. The
emitter is simply an IR LED (Light Emitting Diode) and the detector is simply an IR
photodiode which is sensitive to IR light of the same wavelength as that emitted by the IR
LED.
Figure-2: IR Sensor
PIN DESCRIPTION
13
Pin.no Function Name
1 Ground(0V) Ground
2 Supply voltage(5V) VCC
3 Contrast adjustment; through a variable VEE
resistor
4 Selects command register when low; and Register select
data register when high
5 Low to right to the register; high to read Read / write
from the register
6 Sends data to data pins when high to low Enable
pulse is given
7 DB0
8 DB1
9 DB2
10 8- bit data pins DB3
11 DB4
12 DB5
13 DB6
14 DB7
15 Back light VCC(5V) LED+
16 Back light Ground(0V) LED-
Tabulation-1
CHAPTER 4
14
SYSTEM DESIGN AND DEVELOPMENT
HARDWARE DESIGN:
Sensor block
Controller and Display block
Appliances block
SENSOR BLOCK
The sensor block consists of IR sensor.
IR sensor is used to count the number of persons in the room.
APPLICATIONS BLOCK
Appliances block consists of appliances like Light ,Fan .
Lights and fans will be turned ON based on persons count in the room.
15
BLOCK DIAGRAM:
POWER SUPPLY
IR SENSOR 1
LCD DISPLAY
ARDUINO UNO
IR SENSOR 2 LED/FAN
Software design
Software design is divided into two parts. First we write the Arduino program in Arduino
software. Then we compile it to the Arduino hardware. This Arduino command is control the
Arduino hardware and other circuit and display connection.
INSTALLING ARDUINO :
Arduino runs on Windows. Go to the Arduino software web site at
http://arduino.cc/en/Main/Software and download the version of the software compatible
with our system. We use Arduino 1.0.5 version.
16
ARDUINO LANGUAGE :
The Arduino language is implemented in C/C++ and based in Wiring. When we write an
Arduino sketch, we are implicitly making use of the Wiring library, which is included with
the Arduino IDE. This allows us to make run able programs by using only two functions:
setup () and loop (). As mentioned, the Wiring language is inspired by Processing, and the
Arduino language structure is inherited from the Processing language, where the equivalent
functions are called setup (). We need to include both functions in every Arduino program,
even if we don’t need one of them.
17
CHAPTER 5
TESTING:
Testing is a vital process in the development and realization of any design, be it hardware
based, software based or both. The various components and their circuitry have to be tested
to ensure that all the components on board are certified okay and in good working condition.
The components that did not give the required output specification where isolated and
troubleshoot to determine the nature and cause of the component failure through careful
analysis, that is examination of the working principles of the component(s).
DISPLAY TESTING :
When a program to show ‘visitor counter’ is burnt into the arduino, the display shows the
sentence. The following figure shows the display test.
18
DEVELOPMENT OF THE WHOLE SYSTEM :
After completing the whole circuit and developing the control system and setting in the
door, it has been observed that it works properly. Therefore it can be said that it is ready for
commercialization. The complete system is shown in the following figure.
19
CHAPTER 6
SUMMARY AND CONCLUSION
CONCLUSION:
From the concept of Personnel Counter, it is easy to minimize power consumption and
also it is low in cost.
Electricity usage is minimized by the automatic switching ON/OFF of lights and Fans
based on visitor’s count.
APPLICATIONS:
The Personnel Counter using Arduino Uno circuit can be used domestically to get an
indication of number of persons entering a party
It can be used at official meetings.
It can be used at homes and other places to keep a check on the number of persons
entering a secured place.
It can also be used as home automation system to ensure energy saving by switching
on the loads and fans only when needed.
20
APPENDIX
PROGRAMMING CODE OF PERSONNEL COUNTER
#include <LiquidCrystal.h>
LiquidCrystal lcd(2,3,4,5,6,7);
#define in 8
#define out 9
#define led 10
int count=0;
void setup()
{
lcd.begin(16,2);
lcd.print("visitor counter");
delay(2000);
pinMode(in,INPUT);
pinMode(out,INPUT);
pinMode(led,OUTPUT);
lcd.clear();
lcd.print("person in the room:");
lcd.setCursor(0,1);
lcd.print(count);
}
void loop()
{
int in_value=digitalRead(in);
int out_value=digitalRead(out);
if(in_value==LOW)
{
count++;
lcd.clear();
21
lcd.print("person in the room:");
lcd.setCursor(0,1);
lcd.print(count);
delay(1000);
}
if(out_value==LOW)
{
count--;
lcd.clear();
lcd.print("person in the room");
lcd.setCursor(0,1);
lcd.print(count);
delay(1000);
}
if(count==0)
{
lcd.clear();
digitalWrite(led,LOW);
lcd.clear();
lcd.print("Nobody in room");
lcd.setCursor(0,1);
lcd.print("LED is off");
delay(200);
}
else
{
digitalWrite(led,HIGH);
}
}
22
PROGRAMMING CODE FOR TESTING ACTIVE HIGH/ LOW
IR SENSOR
#define ir 8
void setup()
{
pinMode(ir,INPUT);
Serial.begin(9600);
}
void loop()
{
int val = digitalRead(ir);
Serial.print("value= ");
Serial.println(val);
delay(1000);
}
23
REFERENCES:
Asha Rawat, et al. [2016] has done an “Automated Room Light Controller with Visitor
Counter” [1]. The main purpose of the project is automation, saving electricity, increasing
appliance life span and yet providing a desired output smartly
Gaurav Waradkaret al [2016] has done “Automated Room Light Controller with Visitor
Counter” [3]. This paper presents the design and construction of a digital bidirectional
visitor counter. This is reliable project that takes over the task of counting number of
visitors in the room.
24
25
26