Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
IMPLEMENTATION OF AN AUTOMATED
ENERGY SAVING BI-DIRECTIONAL
VISITOR COUNTER
By
SECOND SEMESTER
2017/2018 ACADEMIC SESSION
October 2018.
DEDICATION
This piece is first and foremost set apart to honouring God whose unceasing
works here on earth has been effecting positive changes to the ‘engineering world’
at large. In this report, there are several of these positive changes (in terms of
technological advancement in the medical world) thereby attesting to the existence
of an immortal God, because ‘every good and perfect gift is from above, coming
down from the Father of lights with whom there is no variation……..(Jas. 1:17)’.
Furthermore, I dedicate this report to Nigerians that are electronic hobbyist
right from their childhood days
DECLARATION OF ORIGINALITY
This project is all my own work and has not been copied in part or in whole
from any other source except where duly acknowledged. As such, all use of
previously published work (from books, journals, magazines, internet, etc.) has
been acknowledged within the main report to an entry in the References list.
I agree that an electronic copy or hardcopy of this report may be stored and
used for the purposes of plagiarism prevention and detection.
I understand that cheating and plagiarism constitute a breach of the
University Regulations and will be dealt with accordingly.
Copyright
The copyright of this project and report belongs to Federal University, Oye-Ekiti.
Signed: Date:
Office Stamp
CERTIFICATION
This is to certify that this project titled An Automated Energy Saving,
Congestion Control Bi-Directional Visitor Counter, by JOHN SAMUEL
OLUWADAMILARE meets the minimum requirements governing the award of
Bachelor Degree in Electrical and Electronics Engineering of Federal University
Oye-Ekiti, Nigeria.
___________________________
Signature DATE
Engr. Hilary Ugo Ezea (Project Supervisor)
___________________________
Signature DATE
Engr. G.K Ijemaru (Departmental Project Coordinator)
___________________________
Signature DATE
Engr. Dr. Oricha J.
Associate Professor and Head of Department
____________________________
Signature DATE
External Examiner
ABSTRACT
This Project “An Automated Energy Saving, Bi-Directional Visitor Counter”
is a reliable circuit that automatically performs the task of controlling room
appliances (e.g light bulbs, fans, etc) as well as counting the number of persons in
the room very accurately.
When somebody enters into the room, the counter is incremented by one and
the AC lights (filament bulbs) in the room will be switched ON and when any one
leaves the room then the counter is decremented by one. The AC light will be only
switched OFF when all the persons in the room go out. The total number of
persons inside the room is also displayed on a cascade of four seven segment
displays.
The system proposed and designed in this paper is the visitor counter that is
bidirectional in nature in that it can read both the incoming and outgoing traffic of
persons.
In this system, up to 9999 incoming or outgoing visitors can be counted
with the aid of an Atmel microcontroller having the below control operations
stored in its ROM:
The first filament bulb is switched ON at the entry of the first person.
The second filament bulb is switched ON at the entry of the third person.
The third filament bulb is switched ON at the entry of the fifth person.
The fourth filament bulb is switched ON at the entry of the seventh person.
(It is noteworthy that the above automatic operations effectively save
electrical power by allowing power to be utilised ONLY when needed
thereby preventing wastage which incurs a high cost in payment for
power consumption).
When the counter is decremented, the reverse of the aforementioned
operations is implemented until no one is present in the room and all AC
lights go OFF.
TABLE OF CONTENTS
ACKNOWLEGDEMENTS
To start with, I recognise the works of God’s eternal love in me
(which is made manifest in my passion for electronic circuits).
Secondly, the mild support that comes from my family (consisting of
Mrs. Modupe John-mother, John Paul -brother and John Mary-sister) over
the years in building my career in the world of electronic circuits is worthy
to be mentioned.
In addition, kudos to the Federal Government of Nigeria (through the
pact formed by two of it’s establishments which are; Nigerian Universities
Commission and Federal University Oye-Ekiti) for giving me a career
development boost by equipping me with the theoretical knowledge of
electronic circuits and also by giving me the opportunity to practically
demonstrate the knowledge acquired insofar in my course of study.
Lastly, my sincere appreciation goes to the loving team of lecturers in
the department of Electrical/Electronics Engineering at Federal University
Oye-Ekiti for their selfless service in impacting theoretical and practical
knowledge (on electronic circuits) into me. They include: Engr. H. Ezea (my
Project Supervisor), Engr. G.k Ijemaru (Departmental Project Co-ordinator),
Engr. J. Oricha (H.O.D).
CHAPTER ONE
INTRODUCTION
1.1 BACKGROUND OF PROJECT
‘The Bidirectional Visitor counter’ is designed and obtainable in order
to count the visitors of a lecture theater, hall, offices, malls, etc. The system
counts both the entering and exiting visitors of the auditorium or hall or
other places, where it is engaged. Depending upon the interrupt from the
sensors, the system recognizes the entry and exit of a visitor. On the
successful implementation of the system, it displays the number of visitors
present in the area in question. This design is based on the principle of
Power electronics technology, using electronic circuits to convert and
control electric energy with optimum efficiency. Today, this technology is
employed in most electrically powered machines and devices. Moreover,
center researchers have made significant contributions in three areas critical
to power electronics evolution: powering of a new generation of
microprocessors; developing technologies for integration of power
electronics components, such as circuits and sensors; and using the
integrated components for standardized methods of assembling power
converters, which are still custom-designed. [1]
1.3 MOTIVATION
The need for the automation of some daily ‘mechanical activities’
(such as switching room appliances on or off, etc) and efficient electrical
power utilisation (called energy-saving in a simple term) gave rise to this
project work.
1.4 SIGNIFICANCE OF THE STUDY
Automation plays a major role in the entire consumer needs of day to
day life and ‘energy saving’ is at the heart of technological advancement in
our world today. To this effect, this project was developed in order to
achieve (as earlier stated) the automation of room appliances and to also
conserve electrical power.
3.0 METHODOLOGY
The methodology of the design hinges on both software and
hardware implementation.
The software implementation consists of:
i. Definition of tasks.
ii. Writing the control program in Keil uVision Integrated Design
Environment.
iii. Testing and debugging the program for adaptation to Atmel
AT89S51 microcontroller in Proteus virtual workbench.
The hardware implementation includes:
i. Adaptation of the power supply circuit.
ii. Adaptation of the infrared sensor modules.
iii. Design of the counter circuit.
iv. Interconnection of the above units.
v. Coupling of the whole design sub-units.
Microcontroller Microcontroller
Value initialises to
increment count by decrement count by
‘zero’
‘1’ ‘1’
3.2 DESIGN
3.2.1 INTRODUCTION
Before the advancement of information systems,
counting of visitors passing through a location used to been
done manually. The room appliances are still mostly controlled
manually in most parts of the world, this often leads to power
wastage in case of personal negligence. With the innovation in
technology, many electronic systems such as bidirectional
visitors’ counters and automatic appliance controllers have been
developed to keep check of the visitors visiting a hall and
controlling the lights of that room noting the visitors up and
down movement using the output from a IR sensor. These
sensors consist of an IR transmitter/receiver (TX/RX) pair.
The design of BVCs can be quite simple for two door
systems-where one door is dedicated for entering and the other
for leaving. One sensor monitors the visitors entering and the
other one monitors the visitors leaving the room. This is the
scenario for which many projects have been developed. But the
design becomes more challenging for single door systems
where all the visitors are entering and leaving through a single
channel. The conventional systems employ IR Transmitter
receiver pair, each installed on opposing sides of the door. In
such systems, the sensor height, sensor alignment and power
supply availability to both the devices offer many installation
hurdles. The system can still fail to detect a kid if the installing
height of sensors is a higher than the kids’ height. Similarly,
some visitors may also pass through the channel without being
detected if the height of the sensors is too low. Moreover, most
of the existing systems are based on unreliable IR sensors with
their limited range and poor detection of transparent or bright
colour materials.
THE
POWER
SUPPLY
UNIT
DISPLAY UNIT
SENSORS MICROCONTROLLER
RELAYS LOAD
(X5) (X5)
3.2.2 SENSORS
Two standalone infrared sensors were incorporated into the design.
One for entry detection and the other for exit detection. An Infrared (IR)
sensor is used to detect obstacles in front of the robot or to differentiate
between colors depending on the configuration of the sensor. An IR sensor
consists of an emitter, detector and associated circuitry. The circuit
required to make an IR sensor consists of two parts; the emitter circuit and
the receiver circuit. 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. When IR light falls on
the photodiode, its resistance and correspondingly, its output voltage, change
in proportion to the magnitude of the IR light received. [10]
The specifications of the sensors and pin configuration as provided in
its datasheet are:
Fig. 6: Infrared Sensor
3.2.3 MICROCONTROLLER
This is the ‘brain box’ of the design in that all control operations are
activated in it. ATMEL AT89S51 microcontroller was implemented in this
work.
The AT89S51 is a low-power, high-performance CMOS 8-bit
microcontroller with 4K bytes of in-system programmable Flash memory.
The device is manufactured using Atmel’s high-density nonvolatile memory
technology and is compatible with the industry-standard 80C51 instruction
set and pinout. The on-chip Flash allows the program memory to be
reprogrammed in-system or by a conventional nonvolatile memory
programmer. By combining a versatile 8-bit CPU with in-system
programmable Flash on an monolithic chip, the Atmel AT89S51 is a
powerful microcontroller which provides a highly-flexible and cost-effective
solution to many embedded control applications (culled from Atmel
AT89S51 datasheet).
Features
• Compatible with MCS-51® Products
• 4K Bytes of In-System Programmable (ISP) Flash Memory
– Endurance: 1000 Write/Erase Cycles
• 4.0V to 5.5V Operating Range
• Fully Static Operation: 0 Hz to 33 MHz
• Three-level Program Memory Lock
• 128 x 8-bit Internal RAM
• 32 Programmable I/O Lines
• Two 16-bit Timer/Counters
• Six Interrupt Sources
• Full Duplex UART Serial Channel
• Low-power Idle and Power-down Modes
• Interrupt Recovery from Power-down Mode
• Watchdog Timer
• Dual Data Pointer
• Power-off Flag
• Fast Programming Time
• Flexible ISP Programming (Byte and Page Mode)
Fig. 7: AT89S51 Pin Configuration and physical outlook
Fig. 8: AT89S51 Port Configuration
Purchase of components
Production of PCB
5.2 LIMITATIONS
Firstly, the design cannot differentiate between an animal and a
human being crossing the path of IR rays used for sensing.
Also, a young child whose height is less than the IR sensor’s
distance to the ground level cannot be detected.
Furthermore, two or more people concurrently crossing the path
of IR rays would be detected as just one object obstructing the rays.
In addition, the system must be installed in such a way that the
horizontal distance between the target and the sensors must be
reasonably small for detection to be possible.
Lastly, the system can only be efficiently deployed in a small
room capacity of ten to hundreds of people and not commercial
centres where thousands upon thousands of people visit.
5.3 FUTURE WORKS
The design can be improved upon by incorporating the
following features:
Use of long distance Laser Sensors.
Use of heat signature sensors.
Imaging systems.
GSM/WiFi module for sending data.
Data Acquisition Systems.
[1]
[2] E.Shilpa et al “ Implementation of Automatic Room Light Controller with
Visitor Counter Design using 8051 Microcontroller”, International Journal of
Innovative Research in Computer and Communication Engineering Vol. 5,
Issue 2, February 2017.
[3] Kimbley et al “AUTOMATIC ROOM LIGHT CONTROLLER USING
MICROCONTROLLER AND VISITOR COUNTER”, IJRET: International
Journal of Research in Engineering and Technology Vol.05 Issue, 03 Mar-
2016.
[4] Sibu skaria et al “Automatic Lighting Controller Sibu Skaria”, International
Journal of Engineering Research and Development Vol.10, Issue 2, 2014.
[5] Nur Farahin Binti Asa, “Counter System using microcontroller for visitors,”
universiti teknologi Malaysia, Malaysia, 2012.
[6] Sarath M. et al “Automatic Room light controller with bidirectional visitors
counter,”Sree narayana Gurukulam College of Engineering Kadayiruppu,
2011.
[7] Shilpa V, “Bidirectional visitors counter,” Indian Institute of Technology,
India, 2011.
[8] H. McGraw, “PIC microcontroller project book,” United States of America:
McGraw hills companies, 2000.
[9] Subhankar Chattoraj, Aditya Chakraborty,” Bidirectional Visitor Counter with
Automatic Room Light Controller and Arduino as the master controller ”,
International Journal of Scientific and Research Publications, Vol. 6, Issue 7,
July 2016.
[10]
[11] https://en.wikipedia.org/wiki/Seven-segment_display
APPENDIX-USER MANUAL