Automatic Bus Stationn
Automatic Bus Stationn
Station is a big issue in thickly populated areas and in large cites due to heavy traffic. The
Project Automatic bus station system using 89C51 Microcontroller is an interesting project
which uses 89C51 microcontroller as its brain. The aim of this project is to atomize the bus
station for allowing the bus into the station and any bus can be parked in a given parking slots at
any given time based on the parking space availability LCD is provided to display the
information about the availability of free and occupied space. Two IR Tx – Rx pairs are used in
this project to identify the entry or exit of the bus into/out of station. These two IR Tx – Rx pairs
are arranged either side of the gate in each available spaces. And also indicates the current status
of the parking slots, be it full, half -filled or vacant . Whenever a bus comes in front of the gate,
the AMR sensor gets disturbed before the bus has 100m left to reach on it and sends the true
signals to the micro controller. Then after the micro controller accepts the true signals from
AMR sensor and IR sensor correspondingly, it will allow opening the gate by rotating the stepper
motor. The gate will be closed only after the bus leaves the second IR pair since the micro
controller should know whether the bus left the gate or not. If the station is completely filled, the
microcontroller will display “no space for parking” on LCD. And now if any vehicle tries to
enter the station, the gate will not be opened since there is no space. If any vehicle leaves the
station, the microcontroller allows the other vehicles for parking.
CHAPTER ONE
1. INTRODUCTION
Automobiles are synonyms for mobility and freedom. An amazing increase in the growth of
population in this world leads to the rapid increase in the number of vehicle being used. With the
growing number of vehicles and the consequent shortage of parking space, there is haphazard
and totally unregulated parking of vehicles all over. In densely populated areas they are real
challenge for city planners, architects and developers. The need to offer sufficient parking spaces
is a task for specialists. This situation calls for the need for an automated parking system that not
only regulates parking in a given area but also keeps the manual control to a minimum.
Automatic bus station system is the sole solution to park as many buses as possible in as little
space as possible. Our demonstration facility presents a miniature model of an automated bus
station system that regulates the number of buses that can be parked in a given space at any given
time based on the parking space availability. The entry and exit of vehicles are facilitated using
a totally automated gate. After the initial installation, the system requires no manual control. It
requires no attendants, is more cost-effective than conventional garages, and allows more buses
to be parked in less space. The automation technology is used to typically double to triple the
capacity of conventional parking garages.
1.1 Problem of statement
The main problem that attempts to solve the problem of locating empty parking bays. This
problem arises from the fact that sometimes empty parking bays are not readily visible. Even
worse, sometimes filled bays may come across as empty to drivers. There must be an efficient
system to indicate to the driver of the vehicle that is available spaces in that parking lot. If this
indicator is positioned at the entry of the bay, then the driver can drive straight to a vacant lot,
without having to drive in first and then find out that the lot is full. Our suggested indicator is an
LCD screen one which will show the specified parking slot of the parking lot. A driver can then
head for the nearest lane with empty bays, this simplifies the task of going around in circles
looking for an empty parking bay. This signboard will be the interface between the driver and the
system, giving the driver indications that will make parking a simple task. Congestion in bus
station most bus stations are designed without aids to help drivers locate empty bays. This can
lead to congestion and confusion. Driving in circles at a slow speed trying to locate a bay makes
for a long line of dissatisfied drivers. Congestion is caused by the lack of a system. If buses are
allowed to enter and exit the parking lot from a variety of direction, this lead to head to head
congestion, where two buses are trying to move in opposite directions in a lane built for one bus.
In extreme cases this may cause an accident. Automatic bus station system proposes systematic
entry and exit paths that are regulated bay automatic barriers. Only when parking bays are
available will buses be allowed in. There will be points of entry and points of exit, and a defined
path of motion for buses entering and exiting. It is our deduction that this method will be
successful as it is implemented in most advanced bus station systems.
1.2 Objectives
1.2.1 General objective
The main objective of this system is to optimize the space availability of station in places
where many buses need to be parked. And also to develop a user friendly microcontroller
based bus station control system such as when the parking slot is full the word „no parking‟
is displayed.
1.2.2 Specific objectives
To develop the automated bus station system which the system reduces the man power.
To practice electronic circuit design with the circuit design simulation software.
Study and learn the functionality of microcontrollers that can be used in electronic control
system.
To make organizations economically as well as technologically beneficial.
1.3 Scope
The scope will cover sensing the status of each slot that are available for parking and display on
LCD. The advantage of this project is driver can get known either there is available parking or
already full by displaying on LCD. It is located in front of the bus station. Scopes of this project
includes;
Close and open the entrance and exit gates. When the vehicle approaches the gate for
entering or leaving the bus station, the sensor sends a signal to the microcontroller to initiate
the stepper motor to open the gate and then after some delay the motor will automatically
close the gate.
Notify the status of each bus station slot. Whenever the bus perform a certain action on a
specific slot the sensors sends a signal to the microcontroller to display information of filled
or vacant on the LCD.
Informing actions performed around the bus station area through status led (added for the one
who cannot read).
Green: vacant slots available
Yellow: buses are entering into or leaving out the bus station
Red: no parking.
CHAPTER II
2. Literature Review
Our first literature review for this project is the manual bus station system. There are a lot of bus
station areas around a building, on sides of a road/street which provides parking service. It is
most of the time used by many hotels and big company apartments. These types of bus station
normally possess a parking guidance system that primarily bases the use of man power to give
information to the drivers. The availability of parking lot inside bus station normally is checked
by observing each lot. The other option may be by preparing a small piece of papers containing
slot number and when the driver enters to the parking garage, the attendant who stands at the
entrance get will give one piece of paper containing slot number. The other attendant who stands
at the exit gate will receive the paper when the user leaves the parking area. Then the man who
receives the paper containing the slot number must come and give to the man at the entrance
gate. Such bus park guidance system is facilitated by man power. When parking is takes place at
the sides of main roads, the user pays per duration. During sport events, festivals, cultural
activities meetings and music parking vehicles in such a manner is very risky.
Stands from this, our demonstration facility presents a miniature model of an automated bus
station system that regulates the number of buses that can be parked in a given space at any given
time based on the parking space availability. Automated parking is a method of parking and
exiting buses using sensing devices. The entry and exit of vehicles are facilitated using a totally
automated gate. In our project, we resolve all the above limitation (gate at the entrance, indicate
each slots and show the total buses parked) and give better facilities. During the project activities
and reviewing literatures we familiarized ourselves with different project types and how they
work.
2.1 Significance of the project
This is one of the least expensive options as it basically involves mounting sensors at the front of
each slot and the gate and connecting them to main circuitry board. Since the cost of the sensor
as compared to human employment is very least.
This system basically involves sensors connected to the microcontroller; the amount of
components is minimized.
Implementing the system will involve efficient and uncomplicated wiring methods. It can be
implemented in any bus station system.
Generally, Parking for a driver becomes extremely important under circumstances of reducing
maximum stress of traffic and free spaces in the parking area. Automatic bus station control
systems are likely to be more cost effective when compared to traditional parking garages. It
save time, money, space and simplify the often tedious task of parking.
2.2 System development tools
Kiel: as c programming language compiler
Proteus: for simulation purpose.
2.3 Methodology
A development method may be regarded as a path or a procedure by which the developer
proceeds from a problem of a certain class to a solution of a certain class. A method, to be
worthy of the name, must at least decompose the development task into a number of reasonably
well-defined steps which the developer can take with some confidence that they are leading to a
satisfactory.
Methodology of automatic bus station control system involves the following steps:
Initial investigation (observation)
Identifying component used
System design
Coding, testing
Implementation through simulation
CHAPTER III
3. System Description
Parking now days in many multiplex systems there is a severe problem for bus systems. There
are many lanes for bus stations, so to park a bus one has to look for the all lanes. Moreover there
is a lot of men labor involved for this process for which there is lot of investment. So the need is
to develop a system which indicates directly which slot is vacant and which one is occupied. The
systems also perform open and close the entrance and exit gates according to the status of each
lane.
The project involves a system including infrared transmitter and receiver at gate sides and led
display, a gate with AMR sensor has been provided at the entry of the parking space, which
opens on the arrival or departure of a bus, a display section has been provided, which consists of
a display showing the free and occupied slots. If all slots are occupied, the gate is automatically
disabled for vehicles seeking entry into the parking lot. AMR Sensor at the gate distinguishes
between the buses and persons or two wheelers, so that persons and two wheelers are not
included in the count for buses.
Conventionally, bus station system does not have any intelligent monitoring system. Parking lots
are monitored by human beings. All vehicles enter into the parking and waste time for searching
for parking slot. Sometimes it creates blockage. Condition become worse when there are
multiple parking lanes and each lane have multiple parking slots. Use of automated system for
bus station monitoring will reduce the human efforts. Display unit is installed on entrance of
parking area which will show the status for all Parking slot and for all parking lanes. Empty slot
is indicated by the respective red led.
3.1 System Block Diagram with Brief Description
AMR sensors provide an excellent means of measuring both linear and angular position and
displacement in the Earth‟s magnetic field. Perm alloy thin films deposited on a silicon substrate
in various resistor bridge configurations provide highly predictable outputs when subjected to
magnetic fields.
Vehicle Detection
to detect approaching buses to control the crossing gates
vehicle direction and presence
Low cost
high sensitivity, small size
Noise immunity and reliability are advantages over mechanical or other electrical
alternatives.
3.8 Oscillator
The internal oscillator circuit is used to generate the device clock. The device clock is required
for the device to execute instructions and for the peripherals to function. Four device clock
periods generate one internal instruction clock cycle.
3.8.1 Oscillator Characteristics
XTAL1 and XTAL2 are the input and output respectively of an inverting amplifier which can be
configured for use as an on-chip oscillator as shown in Fig. Either a quartz crystal or ceramic
resonator may be used. To drive the device from an external clock source, XTAL2 should be left
unconnected while XTAL1 is driven. There are no requirements on the duty cycle of the external
clock signal, since the input to the internal clocking circuitry is through a divide-by-two flip-flop,
but minimum and maximum voltage high and low time specifications must be observed.
Oscillator Connections
It must be noted that there are various speeds of the 8051 family. Speed refers to the maximum
oscillator frequency connected to the XTAL. For example, a 12 MHz chip must be connected to
a crystal with 12 MHz frequency or less. Likewise, a 20MHz microcontroller requires a crystal
frequency of no more than 20 MHz When the 8051 is connected to a crystal oscillator and is
powered up, we can observe the frequency on the XTAL2 pin using oscilloscope. The crystal is
connected to pins 18 and 19 wit stabilizing capacitors. 12MHZ (11.059MHZ crystal is often used
and the capacitance ranges from 20pF to 40pF. The oscillator can also be a TTL clock source
connected with a NOT gate as shown.
VDD
VSS
VEE
RW
RS
R1
D0
D1
D2
D3
D4
D5
D6
D7
E
10k C1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
R2 33PF
1
10k X1
CRYSTAL
2
R3 C2
10k
33PF
U1
19 39
XTAL1 P0.0/AD0
38
P0.1/AD1
37
P0.2/AD2
18 36
XTAL2 P0.3/AD3
35
P0.4/AD4
34
P0.5/AD5
33
P0.6/AD6
9 32
RST P0.7/AD7
21
P2.0/A8
22
P2.1/A9
23
P2.2/A10
29 24
PSEN P2.3/A11
30 25
ALE P2.4/A12
31 26
EA P2.5/A13
P2.6/A14
27 SW
28
P2.7/A15
1 10
P1.0 P3.0/RXD
2 11
P1.1 P3.1/TXD
3 12
P1.2 P3.2/INT0
4 13
P1.3 P3.3/INT1
5 14
P1.4 P3.4/T0
6 15
P1.5 P3.5/T1
7 16
P1.6 P3.6/WR
8 17
P1.7 P3.7/RD
AT89C51
U2
U3:A 9 M1
COM
2 18 1 16
A0 Y0 1B 1C
LED1 LED2 LED3 LED4 4
A1 Y1
16 2
2B 2C
15
LED-RED LED-RED LED-RED LED-RED 6 14 3 14
A2 Y2 3B 3C
8 12 4 13
A3 Y3 4B 4C
5 12 +88.8
5B 5C
1 6 11 MOTOR-BLDCM
OE 6B 6C
7 10
7B 7C
74LS244
ULN2003A
VDD
VSS
VEE
RW
RS
R1
D0
D1
D2
D3
D4
D5
D6
D7
E
10k C1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
R2 33PF
1
10k X1
CRYSTAL
2
R3 C2
10k
33PF
U1
19 39
XTAL1 P0.0/AD0
38
P0.1/AD1
37
P0.2/AD2
18 36
XTAL2 P0.3/AD3
35
P0.4/AD4
34
P0.5/AD5
33
P0.6/AD6
9 32
RST P0.7/AD7
21
P2.0/A8
22
P2.1/A9
23
P2.2/A10
29 24
PSEN P2.3/A11
30 25
ALE P2.4/A12
31 26
EA P2.5/A13
P2.6/A14
27 SW
28
P2.7/A15
1 10
P1.0 P3.0/RXD
2 11
P1.1 P3.1/TXD
3 12
P1.2 P3.2/INT0
4 13
P1.3 P3.3/INT1
5 14
P1.4 P3.4/T0
6 15
P1.5 P3.5/T1
7 16
P1.6 P3.6/WR
8 17
P1.7 P3.7/RD
AT89C51
U2
U3:A 9 M1
COM
2 18 1 16
A0 Y0 1B 1C
LED1 LED2 LED3 LED4 4
A1 Y1
16 2
2B 2C
15
LED-RED LED-RED LED-RED LED-RED 6 14 3 14
A2 Y2 3B 3C
8 12 4 13
A3 Y3 4B 4C
5 12 +8.34
5B 5C
1 6 11 MOTOR-BLDCM
OE 6B 6C
7 10
7B 7C
74LS244
ULN2003A
Activating the stepper motor: while the sensor sends a true signal to the micro controller, the
microcontroller in turn sends a signal that activates the stepper motor so that the detected
object is allowed to enter to the parking garage by opening the entrance gate.
Controlling the slot: now the vehicle is inside the parking area and on the process of
reserving a specified slot. Once the vehicle occupies the slot the sensor called IR which is
installed on entry and exit side of the gates will be interrupted from sending signal from IR
transmitter to IR receiver. Then IR sensor (the switch) sends high signal state to the
microcontroller. But if IR receiver is not getting information from IR transmitter, the IR is
not interrupted by a vehicle and the slot is on the state of available.
Displaying slot state: once the microcontroller knows that the slot is occupied by a certain
vehicle, it sends signal to the LCD to display the current state of the slot.
CHAPTER V
5. CONCLUSION AND RECOMMENDATION
5.1 CONCLUSION
In densely populated areas they are real challenge for city planners, architects and
developers. The need to offer sufficient parking spaces is a task for specialists. This
situation calls for the need for an automated parking system that not only regulates
parking in a given area but also keeps the manual control to a minimum. Automatic bus station
control system is the sole solution to park as many buses as possible in a little space. Automatic
bus station control systems are based on the most modern technology of storage systems.
Designing and implementing the project “Automatic bus station control system” helped in
gaining a substantial amount of knowledge. This project was chosen because such an automated
bus station is not popular in the country and implementing this project here in Ethiopia will help
in saving space. If this prototype is implemented on a large scale, it will provide a hassle-free
parking experience and will save costs in the long run. The application of our prototype is for
residential buildings, organizations or hotels where each flat or apartment has a designated bus
station spot. We feel the project met most of our expectations, as we were able to build an
automated bus station system which could detect a parking space, and park in it. When we
started out, we intended the bus to be able to locate a parking spot, and park irrespective of its
distance from the parking space and its orientation.
5.2 Recommendation
Lastly we want to recommend the system that we developed. We used the 8051 microcontroller
family called AT89C51 for the overall controlling of the system but if someone want to develop
microcontroller based system , we recommend to use other types of microcontroller families like
PIC or AVR studio for central controlling of the system because 8051 families need external
hardware like ADC for signal conversion process. Magnetic sensors are more efficient but have
less cost than other types of sensors. We used a type of magnetic sensor called AMR for vehicle
detection. The selection of magnetic sensors depends on their application. But if someone‟s work
is related detection of ferrous objects, use of magnetic sensor is recommended. If the system
going to be implemented contains sensors, there should be signal conditioning and processing
element. Most of the time instrumentation amplifier is best for this purpose.
Generally, we recommend using of devices that cannot be affected by noise and interference,
easy to program, lower power consumption, higher efficiency, low cost, do not need external
hardware .i.e. built in and robust.
References
[1]. The 8051 microcontroller and embedded systems by MAZIDI
[2]. www.wikipedia.com/8051
[3]. www.wikipedia.com/photo_electric_sensors
[4]. www.isis.com/proteus
[6]. J.E. Lenz, “A Review of Magnetic Sensors”, Proceedings of the IEEE, vol. 78, no.6, (June
1990) 973-989.
[7] .www.robosense.in
Appendix A
Abbreviations
LCD………liquid crystal device
LED………light emitting diode
AMR……...Anisotropic magneto resistive
IR………...Infra radiation
TX………...Transmitter
Rx………..Receiver
AC……….Alternate Current
DC……….Direct Current
IC………..Integrated Circuit
Op-Amp…Operational Amplifier
GND……..Ground
ADC……..Analog Digital Convertor
Appendix B
Source Code
SOFTWARE used
PROTEUS:
Proteus is the embedded system simulation and developing platform developed by Britain Lab
center Company, this software has the following characteristics:
Can carry on the intellectual principle Butut; The ones that paid software debugging
and one-chip computer and peripheral circuit of the one-chip computer, in coordination
with emulation; Meet the standard of the one-chip computer software simulation system.
Support common one-chip computer type and PHILIPS Co. ARM7 (series LPC) Processor
and common peripheral device, like 8255, ADC0809.
Can with 4 Keil Version, ADSl two integrated development environment combine,
until and after the program compiling that language C write with collect, carry on the
system simulation that the software and hardware combines.
KEIL uVISION
Many companies provide the 8051 assembler, some of them provide shareware version
of their product on the Web, Kiel is one of them. We can download them from their
Websites. However, the size of code for these shareware versions is limited and we have
to consider which assembler is suitable for our application.
Kiel Uvision4:
This is an IDE (Integrated Development Environment) that helps you write,
Compile, and debug embedded programs. It encapsulates the following components:
A project manager
A make facility
Tool configuration
Editor
A powerful debugger