Upload
nitin-sakpal
View
223
Download
0
Embed Size (px)
Citation preview
8/12/2019 33403034 Automated Multistoried Car Parking System
1/37
AUTOMATED MULTISTORIED CAR PARKING SYSTEM
Contents
1. INTRODUCTION2. BASIC IDEA
3. HARDWARE DESCRIPTION
3.1. Display section
3.2. Keyboard, Indicator & Beeper section
3.3. Lift & motor section
3.4. Sensor section
3.. LCD section
4.SOFTWARE PROGRAM
1. Introd!ction"
#!tomatic m!ltistoreyed car par$in% system elps to minimi'e te car par$in% area. In te
modern (orld, (ere par$in%)space as become a *ery bi% problem and in te era of
miniat!ri'ation, it is become a *ery cr!cial necessity to a*oid te (asta%e of space in modern, bi%
companies and apartments etc. In places (ere more tan 1++ cars need to be par$ed, tis system
pro*es to be !sef!l in red!cin% (asta%e of space. is #!tomatic Car -ar$in% System enables te
par$in% of *eicles, floor after floor and t!s red!cin% te space !sed. ere any n!mber of cars
can be par$ed accordin% to te re/!irement. is ma$es te system moderni'ed and e*en a space)
sa*in% one. is idea is de*eloped !sin% 0+1 icrocontroller. ere pro%ram is (rittenaccordin% to tis idea !sin% 0+1.
-oto%rap of tis model
8/12/2019 33403034 Automated Multistoried Car Parking System
2/37
2. Basic idea"
# display is pro*ided at te %ro!nd floor (ic is basically a co!nter tat displays
n!mber of cars in eac floor. It informs (eter te floors are f!lly filled (it te cars or is it
a*in% place in a partic!lar floor or not. ere is facility of lift to carry te car to !p and do(n.
o*ement of Lift is controlled by stepper motor. #n indicator (it a %reen and red LD is $ept
in all te floors to indicate (eter te lift is b!sy or is it ready to ta$e te car !p or do(n. If te
red LD %lo(s tat means te lift is already en%a%ed and te person as to (ait for te %reenLD to %lo(. In tis proect (e a*e pro*ided tree floors of a b!ildin% for car par$in%.
aim!m stora%e capacity of eac floor is %i*en as ten. Stora%e capacity can be can%ed
accordin% to te re/!irement.
#ny one can enter to first or second floor. e tird floor in tis model is for 5I-6s only.erefore (en 5I-6s are to be enterin% tey are epected to enter teir pass(ord and tey (ill
be ta$en to te tird reser*ed floor. e pass(ord (ill be of 4 di%its. e processor cec$s for te
pass(ord entered and if it is fo!nd to be (ron%, a siren is eard. In tis partic!lar model 1+
pass(ords are stored. So (en a pass(ord is entered, te processor cec$s for it and it is
compared (it 1+ pass(ords. It indicates (eter it is te correct one or not.
7en te car enters te lift, te LD8 detects its presence and sends a si%nal to %lo( 8D
LD indicatin% tat te lift is b!sy. It also sends a si%nal to motor (ic ma$es te motor torotate. #fter 8D LD %lo(s te lift (ill ta$e te person and te car !p to te floor (ere tespace for par$in% is a*ailable. 9:or 5I- it (ill be te tird floor;. 7en te lift reaces te first
floor, te processor compares te filled amo!nt to tat of te already fed capacity of tat floor,
and if it finds tat te first floor is f!lly filled , it %oes to te second floor and t!s te proced!re
stops ere. #s soon as a car is placed in a partic!lar floor, te display co!nter at te %ro!nd floor
increments as to indicate te floor capacity as decreased by one. #fter te lift places te car in a
partic!lar floor, it comes bac$ to its normal position and tat time, te motor tat dri*es it , also
stops.
8/12/2019 33403034 Automated Multistoried Car Parking System
3/37
7en a person needs to come do(n from a partic!lar floor to %ro!nd floor, e is epected
to foc!s te eadli%t onto te LD8 placed in tat floor. and 8#
@ IA> ports (it pro%rammable pins
@ imers and co!nters
@ Serial data comm!nication
e bloc$ dia%ram also so(s te !s!al C- components pro%ram co!nter, #L, (or$in%
re%isters, and te cloc$ circ!its.
e 0+1 arcitect!re consists of tese specific feat!res"
@ 0 bit C- (it re%isters # and B
@ 1 bit -C &data pointer 9D-8;
8/12/2019 33403034 Automated Multistoried Car Parking System
4/37
@ 0 bit pro%ram stat!s (ord 9-S7;
@ 0 bit stac$ pointer9S-;
@ Internal 8> or -8> 90?1;of +90+31;to 4$90+1;
@ Internal 8# of 120 bytes.
@ 4 re%ister ban$s , eac containin% 0 re%isters @ 0+ bits of %eneral p!rpose data memory
@ 32 inp!tAo!tp!t pins arran%ed as fo!r 0 bit ports"-+)-3 @ t(o 1 bit timerAco!nters"+)1
@ (o eternal and tree internal interr!pt so!rces
@ >scillator and cloc$ circ!its
# pin o!t of te 0+1 pac$a%ed in a 4+ pin DI- is so(n belo(.
8/12/2019 33403034 Automated Multistoried Car Parking System
5/37
# pin o!t of te 0+1 pac$a%ed in a 4+ pin DI- is so(n belo(.
8/12/2019 33403034 Automated Multistoried Car Parking System
6/37
:ollo(in% are te main sections in tis model.
8/12/2019 33403034 Automated Multistoried Car Parking System
7/37
3.1. Display section
3.2. Keyboard, indicator & Beeper section
3.3. Lift & motor section
3.4. Sensor section
3.. LCD section
-ro%ram is (ritten !sin% 0+1 microcontroller. (o 02 ICs are connected to
0+1. #ll circ!its are interfaced (it 02. Bloc$ dia%ram of tis proect is so(n belo(.
3.1. Display section
is section displays te floor n!mber alon% (it te n!mber of cars (ic as been
already par$ed in tat partic!lar floor. So (ene*er a car is ready to eiter come do(n or %o !p,
8/12/2019 33403034 Automated Multistoried Car Parking System
8/37
te pro%ram eiter decrements te co!nt or increments te co!nt a!tomatically accordin% to te
%oin% !p or comin% do(n of a car. Display section is done by interfacin% (it 029--I; of
0+1.ere 3 ports of 02 are connected to tree ?)se%ment display. Bloc$ dia%ram of tis
section is so(n. Clic$ ereto st!dy more abo!t interfacin% ?)se%ment display.
3.2.Keyboard, indicator & beeper
In tis section,12 s(itces are connected in matri form and it as tree LD6s , 8D,
=87. e person, needed to enter te pass(ord as to (ait !ntil te =87 LD %lo(s. If te entered pass(ord
is (ron%, beeper starts beepin% si%nifyin% te incorrectness of te pass(ord entered. Circ!it
dia%ram of $eyboard is so(n bello(.
http://www.electrofriends.com/articles/8051_programs/seven_seg/index.htmlhttp://www.electrofriends.com/articles/8051_programs/seven_seg/index.html8/12/2019 33403034 Automated Multistoried Car Parking System
9/37
e indicator section contains 2 LD6s , 8D & =8< (ic are present in all te floors.
8D LD si%nifies tat te lift is presently b!sy and sall not entertain any car to enter b!t if
=8< LD %lo(s, it s!%%ests tat te lift is ready and te car can enter te partic!lar floor.Beeper and LDs are connected to port C !pper of 02.
>ne more ad*anta%e of beeper is tatH (en a person tries to enter te lift irrespecti*e of findin%
te display section to be ::: 9means te floors are already filled;, pro%ram sends a si%nal to
Beeper section and it starts beepin% indicatin% tat e is not s!pposed to enter te lift since all te
floors are already filled.
3.3. Lift and motor section
In lift section, tere is a li%t beam and LD8 to $no( (eter a car as entered te lift or not.
7en te =8< LD of indicator section %lo(s, tat means te lift is ready for te car to enter.
7en te car enters te lift, te li%t beam falls on LD8 present in te lift %ets c!t and it %i*es asi%nal tat a car as entered te lift. en pro%ram decides (ic floor lift as to %o and %i*es a
si%nal to motor section. Circ!it dia%ram of sensor present in lift is so(n bello(.
8/12/2019 33403034 Automated Multistoried Car Parking System
10/37
e motor section is a mecanical part of te model (ic is !sed for ta$in% te lift !pAdo(n.
7en te lift as to %o !p, pro%ram %i*es te si%nal and te motor rotates cloc$(ise and if it as
to %o do(n, it rotates anticloc$(ise. :irst 4 pins port # is connected to motor. -o(er transistors
m!st be connected to dri*e te motor. Circ!it dia%ram of tis section is so(n bello(.
3.4. Sensor section
Sensor section contains LD8s .ese LD8s are connected to eac floar to %i*e information if
any car as to come do(n. 7en a person needs to come do(n from a partic!lar floor to %ro!nd
floor, e is epected to foc!s te eadli%t te car onto te LD8 placed in tat floor. 7en li%t
falls on LD8 its resistance decreases. ence IC tri%%ers and %i*es a si%nal. -ro%ram
identifies tat si%nal and %i*es a si%nal to motor section. e circ!it dia%ram sensor is so(n
8/12/2019 33403034 Automated Multistoried Car Parking System
11/37
bello(. In tis proect same circ!its is connected to tree floors. is circ!it is different if yo!
compared (it tat of lift sensor so(n abo*e.
3..LCD Section"
In tis proect LCD is !sed to display some messa%es (ic is !sef!l to car o(ners. ere 21
LCD 9 Li/!id Crystal Display; is !sed. is is !sed to display messa%es li$e
7LC> > C#8 -#8KI8D
Circ!it dia%ram of LCD section is so(n bello(. LCD is interfaced (it 0+1
microcontroller.
Clic$ ereto st!dy more abo!t interfacin% LCD to 0+1.
http://www.electrofriends.com/articles/lcd/index.htmlhttp://www.electrofriends.com/articles/lcd/index.htmlhttp://www.electrofriends.com/articles/lcd/index.html8/12/2019 33403034 Automated Multistoried Car Parking System
12/37
0+1 -ro%ram for #!tomated m!ltistoried car par$in% system.
mo* r+,J1
mo* r+,J+bf
inc r+
mo* r+,J0
inc r+
mo* r+,J+db
inc r+
mo* r+,J+cf
inc r+
mo* r+,J+e
inc r+ H Storin% te e/!i*alent codes of
8/12/2019 33403034 Automated Multistoried Car Parking System
13/37
mo* r+,J+ed common catode display.
inc r+
mo* r+,Jfd
inc r+
mo* r+,J0?
inc r+
mo* r+,J+ff
inc r+
mo* r+,J+e?
inc r+
mo* r+,J3
inc r+
mo* r+,J++
mo* r+,J2 H Storin% te e/!i*alent codes of
mo* r+,J4+ common anode.
inc r+
mo* r+,J+f
inc r+
mo* r+,J24
inc r+
mo* r+,J3+
inc r+
mo* r+,J
8/12/2019 33403034 Automated Multistoried Car Parking System
14/37
inc r+
mo* r+,J12
inc r+
mo* r+,J+2
inc r+
mo* r+,J?0
inc r+
mo* r+,J++
inc r+
mo* r+,J10
inc r+
mo* r+,J+e
mo* r+,J4 H Storin% ten 4 di%it pass(ords in
mo* r+,J++ H internal 8#.
inc r+
mo* r+,J+1
inc r+
mo* r+,J+2
inc r+
mo* r+,J+3
inc r+
mo* r+,J+0
inc r+
8/12/2019 33403034 Automated Multistoried Car Parking System
15/37
mo* r+,J++
inc r+
mo* r+,J+
inc r+
mo* r+,J+1
inc r+
mo* r+,J+1
inc r+
mo* r+,J++
inc r+
mo* r+,J++
inc r+
mo* r+,J+1
inc r+
mo* r+,J+
inc r+
mo* r+,J++
inc r+
mo* r+,J+
inc r+
mo* r+,J++
inc r+
mo* r+,J+
inc r+
8/12/2019 33403034 Automated Multistoried Car Parking System
16/37
mo* r+,J+0
inc r+
mo* r+,J+0
inc r+
mo* r+,J+
inc r+
mo* r+,J+3
inc r+
mo* r+,J+1
inc r+
mo* r+,J+1
inc r+
mo* r+,J+?
mo* a,J+0
S>8" dec a
inc r+
mo* r+,a
inc r+
mo* r+,a
inc r+
mo* r+,a
inc r+
mo* r+,a
dn' a,S>8
8/12/2019 33403034 Automated Multistoried Car Parking System
17/37
mo* dptr,J2+23 H Confi%!rin% t(o 02 ports.
mo* a,J01
mo* dptr,a
mo* dptr,J2+43
mo* a,J0+
mo* dptr,a
mo* r3,J++ H Clears te display.
mo* r4,J++
mo* r,J++
mo* a,r
call LDMC>DS
mo* dptr,J2+4+
mo* dptr,a
inc dptr
mo* dptr,a
inc dptr
mo* dptr,a
mo* dptr,J2+22
mo* a,J3+
mo* dptr,a
mo* sp,J11
call lcd(el H Callin% LCD display s!bro!tine.
8-#" clr ps(.3
8/12/2019 33403034 Automated Multistoried Car Parking System
18/37
clr ps(.4
mo* dptr,J2+22
mo* a,dptr
cne a,J31,D>DS H first floor and display te
mo* dptr,J2+42 n!mber of cars.
mo* dptr,a
mo* r?,J+2 H #%ain load te n!mber of
mo* r,J+2 rotations to motor
8/12/2019 33403034 Automated Multistoried Car Parking System
19/37
call >8MD>7< H Call motor to rotate
mo* dptr,J2+22 anticloc$(ise.
mo* a,J3+
mo* dptr,a H send lift is free si%nal.
call lcd(el
smp D>
8/12/2019 33403034 Automated Multistoried Car Parking System
20/37
mo* dptr,a
=>" mo* a,dptr
b a.+,=>
mp >581
D>
8/12/2019 33403034 Automated Multistoried Car Parking System
21/37
mo* a,J+2
L>>-" mo* r,a
mo* dptr,J2+2+
mo* dptr,a
mo* dptr,J2+22
mo* a,dptr
n' C>LSC#>-
C>LSC#58
D>
8/12/2019 33403034 Automated Multistoried Car Parking System
22/37
add a,r+
mo* r+,a
mo* a,r+
clr ps(.4
setb ps(.3
mo* dptr,J2+21
mo* dptr,a
inc dptr
-" mo* a,dptr
n' -
mo* a,J+a
rl a,r?
' CL#8
mo* a,J+b
rl a,r?
' BIMCL#8
mo* a,r?
mo* r1,a H Store entered eac di%it.
inc r1
mo* r?,J+ff
#8" dn' r?,#8
mo* r?,J+ff
#81" dn' r?,#81
dn' r+,S#8
8/12/2019 33403034 Automated Multistoried Car Parking System
23/37
mo* r?,J+a HCec$in% (eter entered 4 di%it
mo* r+,J4 pass(ord is any one of te
CCK" mo* r1,J+a stored pass(ord.
mo* r,J+3
CCK1"mo* a,r+
rl a,r1
n'
8/12/2019 33403034 Automated Multistoried Car Parking System
24/37
cne a,J3,#=#IK
mo* a,J1+
mo* dptr,a
mo* a,J++
mo* dptr,J2+21
mo* dptr,a
call DL#E
mo* r?,J+ H n!mber of rotations to motor so
mo* r,J+2 tat lift %oes to tird flore.
call >8M- H Call motor to rotate cloc$(ise.
inc r HIncrement te n!mber of car
call DL#E entered to tird floor and display
mo* a,r te n!mber of cars.
call LDMC>DS
mo* dptr,J2+4+
mo* dptr,a
mo* r?,J+
mo* r,J+2
call >8MD>7< H Call motor to rotate
8/12/2019 33403034 Automated Multistoried Car Parking System
26/37
call lcd(el anticloc$(ise.
mp >58
>8M-"p!s r HS!bro!tine for motor to rotate
mo* r,J?+ cloc$(ise.
mo* r+,r
mo* dptr,J2+2+
mo* a,J00
3" mo* dptr,a
rl a
mo* r2,J3+
1" mo* r1,J2
2" dn' r1,2
dn' r2,1
dn' r,3
mo* r,J+ff
dn' r,3
mo* r,r+
dn' r?,3
pop r
ret
>8MD>7
8/12/2019 33403034 Automated Multistoried Car Parking System
27/37
mo* r+,r
mo* dptr,J2+2+
mo* a,J00
" mo* dptr,a
rr a
mo* r2,J3+
4" mo* r1,J2
" dn' r1,
dn' r2,4
dn' r,
mo* r,J+ff
dn' r,
mo* r,r+
dn' r?,
pop r
ret
DL#E" mo* r1,J1+ H S!bro!tine for Delay
DL#E1" mo* r2,J+ff
DL#E2" mo* r+,J+ff
DL#E3" dn' r+,DL#E3
dn' r2,DL#E2
dn' r1,DL#E1
ret
8/12/2019 33403034 Automated Multistoried Car Parking System
28/37
>58" mo* dptr,J2+22
mo* a,J3+
mo* dptr,a
mo* a,dptr
cne a,J32,IM>58
mo* a,J1+
mo* dptr,a
call lcdb!sy
mo* r?,J+2
mo* r,J+2
call >8M- H Call motor to rotate cloc$(ise.
dec r3 H Decrements te n!mber of cars
mo* a,r3 entered to first floor and display
call LDMC>DS te n!mber of cars in first floor.
mo* dptr,J2+42
mo* dptr,a
call DL#E
mo* r?,J+2
mo* r,J+2
call >8MD>7< H Call motor to rotate
mo* dptr,J2+22 anticloc$(ise.
mo* a,J3+
mo* dptr,a
8/12/2019 33403034 Automated Multistoried Car Parking System
29/37
call lcd(el
IM>58" mo* a,dptr
cne a,J34,IIM>58
mo* a,J1+
mo* dptr,a
call lcdb!sy
mo* r?,J+4
mo* r,J+2
call >8M- H Call motor to rotate cloc$(ise.
dec r4 H Decrements te n!mber of cars
mo* a,r4 entered to second floor and
call LDMC>DS display te n!mber of cars in
mo* dptr,J2+41 second floor.
mo* dptr,a
call DL#E
mo* r?,J+4
mo* r,J+2
call >8MD>7< H Call motor to rotate cloc$(ise.
mo* dptr,J2+22
mo* a,J3+
mo* dptr,a
call lcd(el
IIM>58" mo* a,dptr
cne a,J30,
8/12/2019 33403034 Automated Multistoried Car Parking System
30/37
mo* a,J1+
mo* dptr,a
call lcdb!sy
mo* r?,J+
mo* r,J+2
call >8M- H Call motor to rotate cloc$(ise.
dec r H Decrements te n!mber of cars
mo* a,r entered to tird floor and display
call LDMC>DS te n!mber of cars in tird floor.
mo* dptr,J2+4+
mo* dptr,a
call DL#E
mo* r?,J+
mo* r,J+2
call >>8MD>7< H Call motor to rotate
mo* dptr,J2+22 anticloc$(ise.
mo* a,J3+
mo* dptr,a
call lcd(el
> C#8 -#8KI
8/12/2019 33403034 Automated Multistoried Car Parking System
31/37
call command
mo* a,J+e
call command
mo* a,J+1
call command
mo* a,J+
call command
mo* a,J0+
call command
mo* a,J7
call data
mo* a,J
call data
mo* a,JL
call data
mo* a,JC
call data
mo* a,J>
call data
mo* a,J
call data
mo* a,J
call data
mo* a,J
8/12/2019 33403034 Automated Multistoried Car Parking System
32/37
call data
mo* a,J00
call command
mo* a,J
call data
mo* a,J>
call data
mo* a,J
call data
mo* a,JC
call data
mo* a,J#
call data1
mo* a,J8
call data
mo* a,Jaa
call command
mo* a,J-
call data
mo* a,J#
call data
mo* a,J8
call data
mo* a,JK
8/12/2019 33403034 Automated Multistoried Car Parking System
33/37
call data
mo* a,JI
call data
mo* a,J
8/12/2019 33403034 Automated Multistoried Car Parking System
34/37
command" mo* p1,a
clr p3.4
setb p3.3
clr p3.3
mo* r3,J+
#" mo* r4,J2
8" dn' r4,8
dn' r3,#
ret
data" mo* p1,a
setb p3.4
setb p3.3
clr p3.3
mo* r3,J+
###" mo* r4,J2
##" dn' r4,##
dn' r3,###
ret
lcdb!sy" p!s r4 H S!bro!tine for LCD to display
p!s r3 O LI: IS BSE -L#S 7#I 6
mo* a,J3c
call command
8/12/2019 33403034 Automated Multistoried Car Parking System
35/37
mo* a,J+e
call command
mo* a,J+1
call command
mo* a,J+
call command
mo* a,J0+
call command
mo* a,JL
call data
mo* a,JI
call data
mo* a,J:
call data
mo* a,J
call data
mo* a,J
call data
mo* a,J
call data
mo* a,JI
call data
mo* a,JS
call data
8/12/2019 33403034 Automated Multistoried Car Parking System
36/37
mo* a,J00
call command
mo* a,J
call data
mo* a,J
call data
mo* a,JB
call data
mo* a,J
call data
mo* a,JS
call data
mo* a,JE
call data
mo* a,Jaa
call command
mo* a,J-
call data
mo* a,JL
call data
mo* a,J
call data
mo* a,J#
call data
8/12/2019 33403034 Automated Multistoried Car Parking System
37/37
mo* a,JS
call data
mo* a,J
call data
mo* a,J
call data
mo* a,J7
call data
mo* a,J#
call data
mo* a,JI
call data
mo* a,J
call data
mo* a,J
call data
pop r3
pop r4
ret
:or /!eries on te abo*e please contactranitelectrofriends.com
mailto:[email protected]:[email protected]:[email protected]