Automatic Multilevel Car Parking by Use of Sensor System
Automatic Multilevel Car Parking by Use of Sensor System
SYSTEM
A THESIS
Submitted by
BACHELOR OF ENGINEERING
NAGPUR
APRIL 2017
CERTIFICATE
with for the award of the Degree of Bachelor of Engineering in the department of
University, Nagpur). This is the result of original research and project work
SARANKAR, RUSHDA KAUSAR under our supervision and guidance. The work
embodied in this report has not formed earlier for the basis of the award of any degree
This project has shown the concept of automatic car parking system,
which can automatically sense the entry and exit of the cars, number of cars
displayed on the LCD. The control system will play a major role in organizing
the entry to and exit from the parking lots. This automated car parking system
reduces the time taken to check the space for the vehicles. In this paper we use
the Infra-red sensors which are placed on each of the floor, to sense the cars. In
the modern world, where parking-space has become a very big problem, it has
become very important to avoid the wastage of space in modern big Automatic
multi-level car parking system helps to minimize the car parking area companies
and apartments. The parking lots have an elevator to carry cars to different floors
according to the vacancies. The system is developed using 89S52
microcontroller.
ACKNOWLEDGEMENT
Completing a task is never a one mans effort. Several prominent people have
helped in the present project work; their collective efforts have led in presentation of
this Dissertation work, it is hard task to mention them all. It is an immense pleasure in
expressing genuine and profound gratitude towards the guide <Prof. Tirupati
Goskula> and for their valuable suggestions, guidance, constant support, and
encouragement during completion of this dissertation work. I am grateful to <Prof.
Mohd. Nasiruddin>, H.O.D, Department of Electronics and Telecommunication
Engineering, Anjuman College of Engineering and Technology, Sadar, Nagpur for
their valuable suggestions and guidance.
I am obliged to Dr. Sajid Anwar, Principal, Anjuman College of Engineering
and Technology, Sadar, Nagpur, without whose support and encouragement, the work
couldnt have been completed in the craze that now it has been distinguished and
accomplished. I am grateful to all the teaching and non-teaching staff of Electronics
and Telecommunication Engineering department for their timely help.
At this onset, I desire to avail the opportunity to express appreciation towards,
my friends and good wishes for their constant support. Last but not the least the
backbone of my success and confidence lies solely on the blessing of my parents and
my family. I would like to specially thank my mother <Name of Mother> and my
father <Name of Father> for their constant support and blessing as it is all because of
them I could do in spite of all the hardships.
------------------
Syed Irfan Ali
VIIIth Semester B.E. in
Electronics & Telecomm. Engineering
A.C.E.T, Nagpur
TABLE OF CONTENTS
ABSTRACT 3
LIST OF FIGURES 7
LIST OF ABBREVIATIONS 8
REFERENCES 40
LIST OF FIGURES
FIGURENO TITLE
PAGE NO.
2.1 Basic block diagram 12
3.1 Power supply
14
3.2.1 Pin diagram of microcontroller 15
3.2.3 Architecture of microcontroller
19
3.4 Pin diagram of LCD 30
3.5 Circuit diagram of IR Sensor 31
3.6.1 2 pole DC motor 32
3.6.3 3 pole DC motor 33
3.6.5 Coreless DC motor 35
3.7.1 Circuit diagram of buzzer 36
LIST OF ABBREVIATIONS
ALU - Arithmetic Logic Unit
CP - Compression Ratio
1.1 INTRODUCTION
The need of using technologies became inevitable. In the modern world, where
parking-space has become a very big problem, it has become very important to avoid
the wastage of space in modern big Automatic multilevel car parking system helps to
minimize the car parking area companies and apartments etc.
1.3 TYPES OF CAR PARKING
There are two types of car parking systems: traditional and automated. In
the long term, automated car parking systems are likely to be more cost effective when
compared to traditional parking garages. Automatic multi-storey automated car park
systems are less expensive per parking slot, since they tend to require less building
volume and less ground area than a conventional facility with the same capacity. Both
automated car parking systems and automated parking garage systems reduce
pollution. This research is devoted to the automated multilevel car parking system. A
multilevel car parking is essentially a building with number of floors or layers for the
cars to be parked. The different levels are accessed through interior or exterior ramps.
An automated car parking has mechanized lifts which transport the car to the different
levels at a certain position. Therefore, these car parks need less building volume and
less ground space and thus save on the cost of the building. This system proves to be
useful in reducing wastage of space where more than 100 cars need to be parked. This
system enables the parking of vehicles, floor after floor and thus reducing the space
used. Here any number of cars can be parked according to the requirement. These
makes the systems modernized and even a space-saving one.
1.4 LITERATURE
The earliest known multi-level car park was built in 1918. It was built for
the Hotel La Salle in Chicago, IL at 215 West Washington Street in the West Loop
area of downtown. It was designed by Holabird and Roche. The Hotel La Salle was
demolished in 1976, but the parking structure remained because it had been
designated as preliminary landmark status and the structure was located several blocks
from the hotel it was built to service. The Hotel LaSalle multi-level was demolished in
2005 after failing to receive landmark status from the city of Chicago. Jupiter Realty
Corp. of Chicago is constructing a 49-level apartment tower in its place with
construction underway as of March 2008.
During the 1920s and 1930s a series of other patents were granted but it
was not until the late 1940s that the Bowser, Pigeon Hole and Roto Park systems
became operational and installed in numerous locations. Some of these early systems
were vertical elevator lift modules that placed cars on upper levels of a structure to be
moved by attendant and others mechanical devices that could move vehicles into
slots in a framework built around a central corridor. Capacities ranged typically
from less than 100 spaces to more than 600. Automated car parks rely on similar
technology that is used for mechanical handling and document retrieval. The driver
leaves the car in an entrance module. It is then transported to a parking slot by a robot
trolley.
For the driver, the process of parking is reduced to leaving the car inside an
entrance module. At peak periods a wait may be involved before entering or leaving.
The wait is due to the fact that loading passengers and luggage occurs at the entrance
and exit location rather than at the parked stall. This loading blocks the entrance or
exit from being available to others. Whether the retrieval of vehicles is faster in an
automatic car park or a self park car park depends on the layout and number.
CHAPTER 2
2.1 METHODOLOGY
Block diagram:
A microcontroller has been used to sense the movement of cars and check
whether there is a capacity for cars to park. We use two dc motors, one is for gate and
other is for lifting the lifter carrying the car. Gate is open when motor is rotated
clockwise and closed when motor rotated in anticlockwise. It is also possible to open a
gate when any car enters in the parking lot or close the door when a car exits from it.
We use Infra-red sensors, which are mounted on each floor.
Simultaneously, it will display the number of cars present in the parking lot on a LCD
screen and opens the gate if there is a space for the car to park. When all the spaces
are occupied then LCD displays NO vacant space and the gate is not open. The
sensing of entry and exit of cars is done through infrared transmitters and receivers.
The infrared transmitter is mounted on one side and the receiver is placed directly
against the transmitter.
When a car arrives, the infrared beam is blocked by the car and the
receiver is devoid of infrared. Message is sent to the microcontroller according to it
the car is parked. The procedure for the exit of cars is much similar to that of entry.
We use RFID card and RFID card reader. Whenever the car enters in the parking area
it must show the card to the card reader and detect the card. Then the gate is open car
enter into the parking area, gate is closed after some delay.
CHAPTER 3 COMPONENT DESCRIPTION
VCC
Supply voltage.
GND
Ground.
Port 0
Port 0 is an 8-bit open drain bidirectional I/O port. As an output port each pin
can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as
high impedance inputs. Port 0 may also be configured to be the multiplexed low order
address/data bus during accesses to external program and data memory. In this mode
P0 has internal pull-ups. Port 0 also receives the code bytes during Flash
programming, and outputs the code bytes during program verification. External pull-
ups are required during program verification.
Port 1
Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1
output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins
they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port
1 pins that are externally being pulled low will source current (IIL) because of the
internal pull-ups. Port 1 also receives the low-order address bytes during Flash
programming and verification.
Port 2
Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 2
output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins
they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port
2 pins that are externally being pulled low will source current (IIL) because of the
internal pull-ups. Port 2 emits the high-order address byte during fetches from external
program memory and during accesses to external data memory that use 16-bit
addresses (MOVX @ DPTR). In this application it uses strong internal pull-ups when
emitting 1s. During accesses to external data memory that use 8-bit addresses (MOVX
@ RI), Port 2 emits the contents of the P2 Special Function Register. Port 2 also
receives the high-order address bits and some control signals during Flash
programming and verification.
Port 3
Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 3
output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins
they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port
3 pins that are externally being pulled low will source current (IIL) because of the
pull-ups. Port 3 also serves the functions of various special features of the AT89C51 as
listed below:
RST
Reset input. A high on this pin for two machine cycles while the oscillator is
running resets the device.
ALE/PROG
Address Latch Enable output pulse for latching the low byte of the address
during accesses to external memory. This pin is also the program pulse input (PROG)
during Flash programming. In normal operation ALE is emitted at a constant rate of
1/6 the oscillator frequency, and may be used for external timing or clocking purposes.
Note, however, that one ALE pulse is skipped during each access to external Data
Memory.
PSEN
Program Store Enable is the read strobe to external program memory. When
the AT89C51 is executing code from external program memory, PSEN is activated
twice each machine cycle, except that two PSEN activations are skipped during each
access to external data memory.
EA/VPP
This pin also receives the 12-volt programming enable voltage (VPP) during
Flash programming, for parts that require 12-volt VPP.
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock
operating circuit.
XTAL2
Output from the inverting oscillator amplifier. It should be noted that when
idle is terminated by a hard ware reset, the device normally resumes program
execution, from where it left off, up to two machine cycles before the internal reset
algorithm takes control. On-chip hardware inhibits access to internal RAM in this
event, but access to the port pins is not inhibited. To eliminate the possibility of an
unexpected write to a port pin when Idle is terminated by reset, the instruction
following the one that invokes Idle should not be one that writes to a port pin or to
external memory.
On - Chip EEPROM
SPI Serial Bus Interface
The CPU is turned off while the RAM and other on - chip peripherals
continue operating. In this mode current draw is reduced to about 15 percent of the
current drawn when the device is fully active.
All on-chip activities are suspended while the on chip RAM continues to
hold its data. In this mode, the device typically draws less than 15 Micro Amps and
can be as low as 0.6 Micro Amps
When power is turned on, the circuit holds the RST pin high for an amount
of time that depends on the capacitor value and the rate at which it charges.
To ensure a valid reset, the RST pin must be held high long enough to allow
the oscillator to start up plus two machine cycles. On power up, VCC should rise
within approximately 10ms. The oscillator start-up time depends on the oscillator
frequency. For a 10 MHz crystal, the start-up time is typically 1ms.With the given
circuit, reducing VCC quickly to 0 causes the RST pin voltage to momentarily fall
below 0V. However, this voltage is internally l limited and will not harm the device.
3.3.2 MEMORY ORGANIZATION:
All Atmel Flash micro controllers have separate address spaces for program
and data memory as shown in Fig 1.The logical separation of program and data
memory allows the data memory to be accessed by 8 bit addresses. This can be more
quickly stored and manipulated by an 8 bit CPU Nevertheless 16 Bit data memory
addresses can also be generated through the DPTR register.
Program memory can only be read. There can be up to 64K bytes of directly
addressable program memory. The read strobe for external program memory is the
Program Store Enable Signal (PSEN) Data memory occupies a separate address space
from program memory. Up to 64K bytes of external memory can be directly addressed
in the external data memory space. The CPU generates read and write signals, RD and
WR, during external data memory accesses. External program memory and external
data memory can be combined by an applying the RD and PSEN signals to the inputs
of AND gate and using the output of the fate as the read strobe to the external
program/data memory.
The map of the lower part of the program memory, after reset, the CPU
begins execution from location 0000h. Each interrupt is assigned a fixed location in
program memory. The interrupt causes the CPU to jump to that location, where it
executes the service routine. External Interrupt 0 for example, is assigned to location
0003h. If external Interrupt 0 is used, its service routine must begin at location 0003h.
If the I interrupt in not used its service location is available as general-purpose
program memory.
The interrupt service locations are spaced at 8 byte intervals 0003h for
External interrupt 0, 000Bh for Timer 0, 0013h for External interrupt 1,001Bh for
Timer1, and so on. If an Interrupt service routine is short enough (as is often the case
in control applications) it can reside entirely within that 8-byte interval. Longer
service routines can use a jump instruction to skip over subsequent interrupt locations.
If other interrupts are in use. The lowest addresses of program memory can be either
in the on-chip Flash or in an external memory. To make this selection, strap the
External Access (EA) pin to either VCC or GND. For example, in the AT89C51 with
4K bytes of on-chip Flash, if the EA pin is strapped to VCC, program fetches to
addresses 0000h through 0FFFh are directed to internal Flash. Program fetches to
addresses 1000h through FFFFh are directed to external memory.
The Internal Data memory is dived into three blocks namely, Refer Fig
The next 16-bytes above the register banks form a block of bit addressable
memory space. The micro controller instruction set includes a wide selection of single
- bit instructions and this instruction can directly address the 128 bytes in this area.
These bit addresses are 00h through 7Fh. either direct or indirect addressing can
access all of the bytes in lower 128 bytes. Indirect addressing can only access the
upper 128. The upper 128 bytes of RAM are only in the devices with 256 bytes of
RAM.
The Special Function Register includes Ports latches, timers, peripheral
controls etc., direct addressing can only access these register. In general, all Atmel
micro controllers have the same SFRs at the same addresses in SFR space as the
AT89C51 and other compatible micro controllers. However, upgrades to the
AT89C51 have additional SFRs. Sixteen addresses in SFR space are both byte and bit
Addressable. The bit Addressable SFRs are those whose address ends in 000B. The bit
addresses in this area are 80h through FFh.
The address register for 8-bit addresses can be either the Stack Pointer or R0 or
R1 of the selected register Bank. The address register for 16-bit addresses can be only
the 16-bit data pointer register, DPTR.
Program memory can only be accessed via indexed addressing this addressing
mode is intended for reading look-up tables in program memory. A 16 bit base register
(Either DPTR or the Program Counter) points to the base of the table, and the
accumulator is set up with the table entry number. Adding the Accumulator data to the
base pointer forms the address of the table entry in program memory.
Another type of indexed addressing is used in the case jump instructions. In
this case the destination address of a jump instruction is computed as the sum of the
base pointer and the Accumulator data.
3.3.3.4REGISTER INSTRUCTION:
The register banks, which contains registers R0 through R7, can be accessed by
instructions whose opcodes carry a 3-bit register specification. Instructions that access
the registers this way make efficient use of code, since this mode eliminates an
address byte. When the instruction is executed, one of four banks is selected at
execution time by the row bank select bits in PSW.
3.3.3.6IMMEDIATE CONSTANTS:
The value of a constant can follow the opcode in program memory For
example. MOV A, #100 loads the Accumulator with the decimal number 100. The
same number could be specified in hex digit as 64h.
PSW 7 PSW 0
PSW 6 PSW 1
PSW 5 PSW 2
PSW 4 PSW 3
PSW 0:
PSW1:
PSW2:
PSW3:
PSW4:
PSW5:
The Program Status Word contains Status bits that reflect the current sate of the
CPU. The PSW shown if Fig resides in SFR space. The PSW contains the Carry Bit,
The auxiliary Carry (For BCD Operations) the two - register bank select bits, the
Overflow flag, a Parity bit and two user Definable status Flags.
The Carry Bit, in addition to serving as a Carry bit in arithmetic operations also
serves the as the Accumulator for a number of Boolean Operations .The bits RS0
and RS1 select one of the four register banks. A number of instructions register to
these RAM locations as R0 through R7.The status of the RS0 and RS1 bits at
execution time determines which of the four banks is selected.
The Parity bit reflect the Number of 1s in the Accumulator .P=1 if the
Accumulator contains an even number of 1s, and P=0 if the Accumulator contains an
even number of 1s. Thus, the number of 1s in the Accumulator plus P is always even.
Two bits in the PSW are uncommitted and can be used as general-purpose status flags.
3.3.3.7INTERRUPTS
In the Serial Port Interrupt is generated by the logical OR of RI and TI. Neither
of these flag is cleared by hardware when the service routine is vectored to. In fact, the
service routine normally must determine whether RI to TI generated the interrupt and
the bit must be cleared in software.
XTAL1 and XTAL2 are the input and output respectively of an inverting
amplifier which is intended for use as a crystal oscillator in the pierce configuration,
in the frequency range of 1.2 MHz to 12 MHz. XTAL2 also the input to the internal
clock generator.
To drive the chip with an internal oscillator, one would ground XTAL1 and
XTAL2. Since the input to the clock generator is divide by two flip flop there are no
requirements on the duty cycle of the external oscillator signal. However, minimum
high and low times must be observed.
The clock generator divides the oscillator frequency by 2 and provides a tow
phase clock signal to the chip. The phase 1 signal is active during the first half to each
clock period and the phase 2 signals are active during the second half of each clock
period.
3.3.3.9CPU TIMING:
A machine cycle consists of 6 states. Each stare is divided into a phase / half,
during which the phase 1 clock is active and phase 2 half. Arithmetic and Logical
operations take place during phase1 and internal register - to register transfer take
place during phase 2
a. Industrial Control
b. Instrumentation and
c. Intelligent computer peripherals
Motor
Robotics
In medical instrumentation
Oscilloscopes
Telecommunication
Automobiles
Driving an LCD
Period Measurements
3.4 LCD
LCD (Liquid Crystal Display) screen is an electronic display module and find
a wide range of applications. A 16x2 LCD display is very basic module and is very
commonly used in various devices and circuits. These modules are preferred over
seven segments and other multi segment LEDs. The reasons being: LCDs are
economical; easily programmable; have no limitation of displaying special & even
custom characters (unlike in seven segments), animations and so on.
A 16x2 LCD means it can display 16 characters per line and there are 2 such
lines. In this LCD each character is displayed in 5x7 pixel matrix. This LCD has two
registers, namely, Command and Data.
The command register stores the command instructions given to the LCD. A
command is an instruction given to LCD to do a predefined task like initializing it,
clearing its screen, setting the cursor position, controlling display etc. The data register
stores the data to be displayed on the LCD. The data is the ASCII value of the
character to be displayed on the LCD.
Pin Diagram:
FIGURE 3.4: PIN DIAGRAM OF LCD
3.5 IR SENSOR
Infrared transmitter is one type of LED which emits infrared rays generally
called as IR Transmitter. Similarly IR Receiver is used to receive the IR rays
transmitted by the IR transmitter. One important point is both IR transmitter and
receiver should be placed straight line to each other.
3.6 DC MOTOR
FIGURE 3.6.2:
So since most small DC motors are of a three-pole design, let's tinker with
the workings of one via an interactive animation .
The use of an iron core armature (as in the Mabuchi, above) is quite
common, and has a number of advantages. First off, the iron core provides a strong,
rigid support for the windings -- a particularly important consideration for high-torque
motors. The core also conducts heat away from the rotor windings, allowing the motor
to be driven harder than might otherwise be the case. Iron core construction is also
relatively inexpensive compared with other construction types.
FIGURE 3.6.4:
But iron core construction also has several disadvantages. The iron
armature has a relatively high inertia which limits motor acceleration. This
construction also results in high winding inductances which limit brush and
commutator life.
3.7 BUZZER
When high pulse (5 Volt) signal is given to base of the transistor, the
transistor is conducting and closes the collector and emitter terminal. Hence the
buzzer was already getting a volt power supply in the positive terminal. At that time
the buzzer gets the negative supply. So the circuit will close and the Buzzer will ON.
When low pulse is given to base of transistor, it will turn OFF. So buzzer
will also OFF because it doesnt get negative power supply. This type of transistor
arrangement is called driver circuit. We cant connect any load to the Micro-controller
output terminals. That is why we need a driver circuit.
2. A pulse of current will make it click. A series of pulses will cause it to output
a tone, and you can control the frequency.
3. With the Arduino TONE library, many different sounds can be made. It is not a
full-range speaker.
3.8 ADVANTAGES & DISADVANTAGES OF MULTILEVEL CAR
PARK SYSTEM
3.8.1 Advantages
This system is more versatile and fast automatic parking system. The
advantages of multilevel parking system are:
- Maximum utilization of ground space.
- Quick entry and exit due to the independent operation of lifts.
- designed for driver convenience.
- Partial breakdown doesn't affect the other parts.
- Governed by computers.
- Multiple safety guarantee of the drivers and the cars too.
- Average vehicle retrieve time is less than 2 minutes.
- require less building volume and less ground area.
3.8.2 Disadvantages
3.9 APPLICATIONS
Public Parking
Airports
Hotels, Malls
Apartments
Office buildings
3.10 CONCLUSION
Automatic multi-stored car parking system is very good substitute for car
parking area. This Automated car parking system enables the parking of vehicles and
thus reduces the time taken to check the space to be used by displaying the spot where
the space for parking is available on an LCD display by using IR sensors at the
entrance. This Automatic Car Parking enables the parking of vehicles-floor after floor
and thus reducing the space used.
REFERENCES
[4] M.A.Mazidi, Janice, Gillispie Mazidi, The 8051 Microcontroller And Embedded
System.
[6] J. Lim, S.Kim, H. Oh, and D.Kim, A Designated Query Protocol for Serverless
Mobile RFID Systems with Reader and Tag Privacy, TSINGHUA SCIENCE AND
TECHNOLOGY.