Acknowledgement: Display System For Amount of Seats Available Free in Library
Acknowledgement: Display System For Amount of Seats Available Free in Library
Acknowledgement
We express our heartfelt gratitude to our adviser Dr ArmuthRT for his guidance and
consultancy in this project. Secondly, the school of electrical and computer engineering played
vital role in organizing schedules for us.
Abstract
In new era the whole world is changing very fast and the use of electronics in everyday life
became necessary. Many electronic and electrical devices are used to make easy life style. The
visitor counter is a one of those instruments which help to count the exact number of visitors at
occasion where ever it is necessary. In this project we have used simple circuit, which consists of
IR pair at input section and LCD at output section. With the help of this system we can count the
visitors, at Banks, shops, temples, molls’ etc but for library in our case for counting students. We
require 5v DC power supply. IR pair is the input section of this circuit. As soon as the student
enters the door, a high to low pulse goes to receiver of IR pair. Then this output of receiver fed to
the arduino microcontroller. It does the job of counting and provides output to the input of LCD
for displaying and finally we get the display of total seat available free for students on LCD.In
this way the circuit of visit counter can works on such simple principle
List of figure
Table of contents
Acknowledgement............................................................................................................................I
Abstract...........................................................................................................................................II
List of figure..................................................................................................................................III
Table of contents...........................................................................................................................IV
CHAPTER ONE..............................................................................................................................1
1.1Introduction.............................................................................................................................1
1.2 Objectives...............................................................................................................................1
1.1Introduction
Many electronic and electrical devices are used to make easy life style. There are many changes
in human life due to the use of electronics, the tedious job become simple, the time required is
also get shorted and many more advantages are observed. The visit counter is a one of those
instruments which help to count the exact number of visitors at occasion where ever it is
necessary. If we count the numbers, some time manual errors are introduced in it and we are
unable to get correct information.But this can overcome with the use of the small circuit of visit
counter. Once we get the exact number of visitors then it is easy to provide them further facilities
or data information.
1.2 Objectives
1.2.1 General objective: to design the bidirectional counter to display total number of seats
available free for students entering library.
To know how infrared sensors detect person entering and leaving a library.
To know how to interface infrared sensors with arduino microcontroller.
To design counting system up to our design.
LITERATURE REVIEW
Ardu
ENTRANCE COMPARA no
IR SENSOR TOR 1 micr
ocon
trolle
r
LCD
EXIT IR COMPARA display
SENSOR TOR 2
Entrance and Exit Circuits:-This is one of the main parts of our project. The main intention of
this block is to sense the person. For sensing the person and light we are using infrared sensor.
By using this sensor and its related circuit diagram we can count the persons.
LCD: We are going to use 16x2 alphanumeric Liquid Crystal Display (LCD) which means it
can display alphabets along with numbers on 2 lines each containing 16 characters.LCD is
interfaced to the port 1 of microcontroller. LCD is having 8 bit data lines & 3 control signals
R/S, R/W & E.RS: The RS pin is used for their selection as follows. IF RS=0, the instruction
command code register is selected and if RS=1 the data register is selected.
R/W: The R/W input allows the user to write Information to the LCD or read information from
it. R/W=1when reading; R/W=0 when writing.
E: the enable pin is used by the LCD to latch Information presented to its data pins .When data
is supplied to data pins, an H to L pulse must be applied to this pin.
3.2 Methodology
As shown on block diagram above first the total amount of seats in library is stored in memory of
microcontroller. When students enter into library consequently the infrared sensor detects them
and the counter incremented by one at each instant of entrance. The microcontroller checks the
interruption of infrared sensor at exit gate to detect student leaving the library and do the job of
decrementing the counter value by one.Finaly, the total amount of seats available free are
displayed on LCD from output of arduino microcontroller
Infrared sensor is an electronics device which is used to detect heat and objects. It works with the
detection of infra radiations and change in heat in its surrounding. infrared sensor have many
applications from the domestic to industrial use such as object, motion ,smoke, gas detection and
object counter. Infrared sensors are the most often used sensor by visitor counter. Infra red
sensors are in the form of diodes with 2 terminals. Here onwards, we will use Tx to refer to a
transmitter and Rx to refer to a receiver diode. Upon careful observation, you will notice that
amongst the two legs, one has a much wider base within the diode. That is normally the cathode
When the Tx is forward biased, it begins emitting infrared signal. Since it’s not in visible
spectrum, you will not be able to see it through naked eyes but you will be able to view it
through an ordinary cell phone camera. When emitted signal is interrupted by some obstacle it
will be received by Rx receiver.
LCD initialization
The steps that have to be done for initializing the LCD display is given below and these
steps are common for almost all applications. This shows how LCD and microcontroller
communicate internally
The steps for sending data to the LCD module are given below. The LCD module has pins
namely RS, R/W and E. It is the logic state of these pins that make the module to determine
whether a given data input is a command or data to be displayed.
The Arduino microcontroller is an easy to use yet powerful single board computer that has
gained considerable traction in the hobby and professional market. The Arduino is open-source,
which means hardware is reasonably priced and development software is free. This guide is for
Features:-
Start
Infrared
transmission
signal
Count++ Count--
Number of seats
displayed
End
The circuit shown below has IR link, comparator, arduino microcontroller and LCD.
3.5.1 IR link
IR link used here have both transmitter and receiver circuit internally
IR transmitter circuit
This circuit diagram shows how a 555 timer IC is configured to function as a basic monostable
multivibrator.A monostable multivibrator is a timing circuit that changes state once triggered, but
returns to its original state after a certain time delay. It got its name from the fact that only one of
its output states is stable. It is also known as a one-shot. In this circuit, a negative pulse applied
at pin 2 triggers an internal flip-flop that turns off pin 7's discharge transistor; allowing C1 to
charge up through R1.At the same time, the flip-flop brings the output (pin 3) level to high.
When capacitor C1 as charged up to about 2/3 Vcc, the flip-flop is triggered once again, this time
making the pin 3 output low and turning on pin 7's discharge transistor, which discharges C1 to
ground. This circuit, in effect, produces a pulse at pin 3 whose width is just the product of R1
and C1, i.e., t=R1C1.IR Transmission circuit is used to generate the modulated 36 kHz IR signal.
The IC555 in the transmitter side is to generate 36 kHz square wave. Adjust the preset in the
transmitter to get a 38 kHz signal at the o/p. around 1.4K we get a 38 kHz signal. Then you point
it over the sensor and its o/p will go low when it senses the IR signal of 38 kHz. The frequency
can be calculated from:
Xc=1/2 πcf , f=1/2πcXc, Xc=e−RCt where Xc is capacitor reactance and C is capacitor and
f is frequency of IR.
IR receiver circuit
CHAPTER FOUR
4.2 Discussion
4.2.1 Infrared interfacing with microcontroller
Infrared sensors output from comparator are interfaced with arduino microcontroller at its analog
input. The analog input is assigned to output 1 and output 2 as entrance and exit sensor output
respectively.
As a student get into library the result is high, the counter will increase by 1. The count value
continuously increases until output, goes low. When student leaves the library the result of
output 2 goes high the count value decrements by 1. When many students continued leaving a
library the counter accruements till zero value.
Case2: output 1 goes low and output 2 goes high, counter decrements by 1.
Case3: output 1 goes high and output 2 goes high counter remains as it is.
Case4: output1 goes low and output 2 goes high counter remains as it is.
5.1Conclusion
This paper shows an approach to count student passing through a specific library by using
infrared sensor transmitter, receiver pair and arduino microcontroller and display total number of
seats available free in library. Simplicity and moderate distance detection of infrared sensor
makes the counting system efficient. This student counting system can be easily implemented on
proteus simulation and can able to count the student in real time up to seat number 9999. This
process can be good alternative of the traditional manpower based visitor counting system.
This system consists of several good applications data storing and processing which are the
important tolls of computer vision systems. This student counting system can also be
utilized in several places like shopping mall, departmental store, recreational park, railway
platforms, stations and so many places for counting visitor and gather idea about the
present people in a specific place. Generally when this design is applied, it is effective and
efficient for time management and schedule arrangement for students
Arduino code