Sie sind auf Seite 1von 37

AUTOMATED MULTISTORIED CAR PARKING SYSTEM

Contents 1. INTRODUCTION 2. 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 t&e car par$in% area. In t&e modern (orld, (&ere par$in%)space &as become a *ery bi% problem and in t&e era of miniat!ri'ation, it is become a *ery cr!cial necessity to a*oid t&e (asta%e of space in modern, bi% companies and apartments etc. In places (&ere more t&an 1++ cars need to be par$ed, t&is system pro*es to be !sef!l in red!cin% (asta%e of space. ,&is #!tomatic Car -ar$in% System enables t&e par$in% of *e&icles, floor after floor and t&!s red!cin% t&e space !sed. .ere any n!mber of cars can be par$ed accordin% to t&e re/!irement. ,&is ma$es t&e system moderni'ed and e*en a space) sa*in% one. ,&is idea is de*eloped !sin% 0+ 1 1icrocontroller. .ere pro%ram is (ritten accordin% to t&is idea !sin% 0+ 1. -&oto%rap& of t&is model

2. Basic idea" # display is pro*ided at t&e %ro!nd floor (&ic& is basically a co!nter t&at displays n!mber of cars in eac& floor. It informs (&et&er t&e floors are f!lly filled (it& t&e cars or is it &a*in% place in a partic!lar floor or not. ,&ere is facility of lift to carry t&e car to !p and do(n. 1o*ement of Lift is controlled by stepper motor. #n indicator (it& a %reen and red L2D is $ept in all t&e floors to indicate (&et&er t&e lift is b!sy or is it ready to ta$e t&e car !p or do(n. If t&e red L2D %lo(s t&at means t&e lift is already en%a%ed and t&e person &as to (ait for t&e %reen L2D to %lo(. In t&is pro3ect (e &a*e pro*ided t&ree floors of a b!ildin% for car par$in%. 1a4im!m stora%e capacity of eac& floor is %i*en as ten. Stora%e capacity can be c&an%ed accordin% to t&e re/!irement. #ny one can enter to first or second floor. ,&e t&ird floor in t&is model is for 5I-6s only. ,&erefore (&en 5I-6s are to be enterin% t&ey are e4pected to enter t&eir pass(ord and t&ey (ill be ta$en to t&e t&ird reser*ed floor. ,&e pass(ord (ill be of 4 di%its. ,&e processor c&ec$s for t&e pass(ord entered and if it is fo!nd to be (ron%, a siren is &eard. In t&is partic!lar model 1+ pass(ords are stored. So (&en a pass(ord is entered, t&e processor c&ec$s for it and it is compared (it& 1+ pass(ords. It indicates (&et&er it is t&e correct one or not. 7&en t&e car enters t&e lift, t&e LD8 detects its presence and sends a si%nal to %lo( 82D L2D indicatin% t&at t&e lift is b!sy. It also sends a si%nal to motor (&ic& ma$es t&e motor to rotate. #fter 82D L2D %lo(s t&e lift (ill ta$e t&e person and t&e car !p to t&e floor (&ere t&e space for par$in% is a*ailable. 9:or 5I- it (ill be t&e t&ird floor;. 7&en t&e lift reac&es t&e first floor, t&e processor compares t&e filled amo!nt to t&at of t&e already fed capacity of t&at floor, and if it finds t&at t&e first floor is f!lly filled , it %oes to t&e second floor and t&!s t&e proced!re stops &ere. #s soon as a car is placed in a partic!lar floor, t&e display co!nter at t&e %ro!nd floor increments as to indicate t&e floor capacity &as decreased by one. #fter t&e lift places t&e car in a partic!lar floor, it comes bac$ to its normal position and t&at time, t&e motor t&at dri*es it , also stops. <o( processor sends si%nal to %lo( =822< L2D indicatin% t&at lift is free.

7&en a person needs to come do(n from a partic!lar floor to %ro!nd floor, &e is e4pected to foc!s t&e &eadli%&t onto t&e LD8 placed in t&at floor. <o( sensor section sends si%nal to motor t&at t&e lift &as to be send bac$ to t&at partic!lar floor and sends a si%nal to %lo( 82D L2D indicatin% t&at t&e lift is b!sy. #s soon as t&e lift reac&es t&at partic!lar floor car s&o!ld come inside t&e lift, t&e display co!nter at t&e %ro!nd floor decrements by one as to indicate t&e floor capacity &as increased by one. Lift comes bac$ to its normal position and t&at time, t&e motor t&at dri*es it, also stops. <o( processor sends si%nal to %lo( =822< L2D indicatin% t&at lift is free. If t&ere no par$in% ta$in% place, t&e processor carries o!t t&e 3ob accordin% to t&e follo(in% priority") 1. It c&ec$s (&et&er any pass(ord is entered. 2. It c&ec$s (&et&er any car is entered to lift. 3. It c&ec$s (&et&er any car &eadli%&t is pressed in front of LD8 placed in eac& floor. It is li$e a ro!nd robin system. 3. .ard(are description" Introd!ction to 0+ 1 1icrocontroller" ,&e first tas$ faced (&en learnin% to !se a ne( comp!ter is to become familiar (it& t&e capability of t&e mac&ine. ,&e feat!res of t&e comp!ter best learned by st!dyin% t&e internal &ard(are desi%n, also called t&e arc&itect!re of t&e de*ice, to determine t&e type, n!mber, and si'e of t&e re%isters and ot&er circ!itry. ,&e &ard(are is manip!lated by an accompanyin% set of pro%ram instr!ctions, or soft(are. >ne familiar (it& &ard(are and soft(are, t&e system desi%ner can t&en apply t&e microcontroller to t&e problems at &and. In t&is pro3ect (e ma$e !se of microcontroller. ,&e 0+ 1 microcontroller %eneric part n!mber act!ally incl!des a (&ole family of microcontrollers t&at &a*e n!mbers ran%in% from 0+31 to 0? 1.,&e bloc$ dia%ram of t&e 0+ 1 s&o(s all of t&e feat!res !ni/!e to microcontrollers" @ @ Internal ports @ ,imers Serial data comm!nication IA> @ 8>1 (it& and pro%rammable and 8#1 pins co!nters

,&e bloc$ dia%ram also s&o(s t&e !s!al C-B components pro%ram co!nter, #LB, (or$in% re%isters, and t&e cloc$ circ!its. ,&e @ @ 0+ 1 arc&itect!re 0 1C bit bit consists C-B -C of (it& t&ese specific feat!res" and B 9D-,8;

re%isters # &data pointer

@ @ @ @ @ @ @

bit pro%ram stat!s (ord 9-S7; 0 bit stac$ pointer9S-; Internal 8>1 or 2-8>1 90? 1;of +90+31;to 4$90+ 1; @ Internal 8#1 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 1C bit timerAco!nters",+),1 ,(o e4ternal and t&ree internal interr!pt so!rces >scillator and cloc$ circ!its @

# pin o!t of t&e 0+ 1 pac$a%ed in a 4+ pin DI- is s&o(n belo(.

# pin o!t of t&e 0+ 1 pac$a%ed in a 4+ pin DI- is s&o(n belo(.

:ollo(in% are t&e main sections in t&is model.

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 ICDs are connected to 0+ 1. #ll circ!its are interfaced (it& 02 . Bloc$ dia%ram of t&is pro3ect is s&o(n belo(.

3.1. Display section ,&is section displays t&e floor n!mber alon% (it& t&e n!mber of cars (&ic& &as been already par$ed in t&at partic!lar floor. So (&ene*er a car is ready to eit&er come do(n or %o !p,

t&e pro%ram eit&er decrements t&e co!nt or increments t&e co!nt a!tomatically accordin% to t&e %oin% !p or comin% do(n of a car. Display section is done by interfacin% (it& 02 9--I; of 0+ 1..ere 3 ports of 02 are connected to t&ree ?)se%ment display. Bloc$ dia%ram of t&is section is s&o(n. Clic$ &ere to st!dy more abo!t interfacin% ?)se%ment display.

3.2. Keyboard, indicator & beeper In t&is section,12 s(itc&es are connected in matri4 form and it &as t&ree L2D6s , 82D, =822<&E2LL>7. ,&e person, needed to enter t&e pass(ord &as to (ait !ntil t&e =822< L2D %lo(s and (&en it %lo(s, &e &as to press t&e FS,#8,G b!tton first. ,&is time t&e 82D L2D %lo(s. ,&en t&e person &as to enter t&e pass(ord. #s soon as it is entered, t&e pro%ram c&ec$s it (it& t&e already stored pass(ords. If it is correct, E2LL>7 L2D %lo(s. If t&e entered pass(ord is (ron%, beeper starts beepin% si%nifyin% t&e incorrectness of t&e pass(ord entered. Circ!it dia%ram of $eyboard is s&o(n bello(.

,&e indicator section contains 2 L2D6s , 82D & =822< (&ic& are present in all t&e floors. 82D L2D si%nifies t&at t&e lift is presently b!sy and s&all not entertain any car to enter b!t if =822< L2D %lo(s, it s!%%ests t&at t&e lift is ready and t&e car can enter t&e partic!lar floor. Beeper and L2DDs are connected to port C !pper of 02 . >ne more ad*anta%e of beeper is t&atH (&en a person tries to enter t&e lift irrespecti*e of findin% t&e display section to be ::: 9means t&e floors are already filled;, pro%ram sends a si%nal to Beeper section and it starts beepin% indicatin% t&at &e is not s!pposed to enter t&e lift since all t&e floors are already filled. 3.3. Lift and motor section In lift section, t&ere is a li%&t beam and LD8 to $no( (&et&er a car &as entered t&e lift or not. 7&en t&e =822< L2D of indicator section %lo(s, t&at means t&e lift is ready for t&e car to enter. 7&en t&e car enters t&e lift, t&e li%&t beam falls on LD8 present in t&e lift %ets c!t and it %i*es a si%nal t&at a car &as entered t&e 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 s&o(n bello(.

,&e motor section is a mec&anical part of t&e model (&ic& is !sed for ta$in% t&e lift !pAdo(n. 7&en t&e lift &as to %o !p, pro%ram %i*es t&e si%nal and t&e 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 t&e motor. Circ!it dia%ram of t&is section is s&o(n bello(.

3.4. Sensor section Sensor section contains LD8Ds .,&ese LD8Ds are connected to eac& floar to %i*e information if any car &as to come do(n. 7&en a person needs to come do(n from a partic!lar floor to %ro!nd floor, &e is e4pected to foc!s t&e &eadli%&t t&e car onto t&e LD8 placed in t&at floor. 7&en li%&t falls on LD8 its resistance decreases. .ence IC tri%%ers and %i*es a si%nal. -ro%ram identifies t&at si%nal and %i*es a si%nal to motor section. ,&e circ!it dia%ram sensor is s&o(n

bello(. In t&is pro3ect same circ!its is connected to t&ree floors. ,&is circ!it is different if yo! compared (it& t&at of lift sensor s&o(n abo*e.

3. . LCD Section" In t&is pro3ect LCD is !sed to display some messa%es (&ic& is !sef!l to car o(ners. .ere 2I1C LCD 9 Li/!id Crystal Display; is !sed. ,&is is !sed to display messa%es li$e 72LC>12 ,> C#8 -#8KI<= SES,21 LI:, IS BBSE -L2#S2 7#I, -L2#S2 2<,28 E>B8 -#SS7>8D Circ!it dia%ram of LCD section is s&o(n bello(. LCD is interfaced (it& 0+ 1 microcontroller. Clic$ &ere to st!dy more abo!t interfacin% LCD to 0+ 1.

0+ 1 -ro%ram for #!tomated m!ltistoried car par$in% system.


mo* r+,J1K& mo* Lr+,J+bf& inc r+ mo* Lr+,J0C& inc r+ mo* Lr+,J+db& inc r+ mo* Lr+,J+cf& inc r+ mo* Lr+,J+eC&

inc r+

H Storin% t&e e/!i*alent codes of

mo* Lr+,J+ed& inc r+ mo* Lr+,Jfd& inc r+ mo* Lr+,J0?& inc r+ mo* Lr+,J+ff& inc r+ mo* Lr+,J+e?& inc r+ mo* Lr+,J3K& inc r+ mo* Lr+,J++&

common cat&ode display.

mo* r+,J2 & mo* Lr+,J4+& inc r+ mo* Lr+,J+fK& inc r+ mo* Lr+,J24& inc r+ mo* Lr+,J3+& inc r+ mo* Lr+,JKK&

H Storin% t&e e/!i*alent codes of common anode.

inc r+ mo* Lr+,J12& inc r+ mo* Lr+,J+2& inc r+ mo* Lr+,J?0& inc r+ mo* Lr+,J++& inc r+ mo* Lr+,J10& inc r+ mo* Lr+,J+e&

mo* r+,J4 & mo* Lr+,J++& inc r+ mo* Lr+,J+1& inc r+ mo* Lr+,J+2& inc r+ mo* Lr+,J+3& inc r+ mo* Lr+,J+0& inc r+

H Storin% ten 4 di%it pass(ords in H internal 8#1.

mo* Lr+,J++ inc r+ mo* Lr+,J+ & inc r+ mo* Lr+,J+1& inc r+ mo* Lr+,J+1& inc r+ mo* Lr+,J++ inc r+ mo* Lr+,J++ inc r+ mo* Lr+,J+1& inc r+ mo* Lr+,J+C& inc r+ mo* Lr+,J++ inc r+ mo* Lr+,J+ & inc r+ mo* Lr+,J++ inc r+ mo* Lr+,J+K& inc r+

mo* Lr+,J+0& inc r+ mo* Lr+,J+0& inc r+ mo* Lr+,J+C& inc r+ mo* Lr+,J+3& inc r+ mo* Lr+,J+1& inc r+ mo* Lr+,J+1& inc r+ mo* Lr+,J+?& mo* a,J+0 S,>82" dec a inc r+ mo* Lr+,a inc r+ mo*4 Lr+,a inc r+ mo*4 Lr+,a inc r+ mo*4 Lr+,a d3n' a,S,>82

mo* dptr,J2+23& mo* a,J01& mo*4 Ldptr,a mo* dptr,J2+43& mo* a,J0+& mo*4 Ldptr,a mo* r3,J++ mo* r4,J++ mo* r ,J++ mo* a,r call L2DMC>D2S mo* dptr,J2+4+& mo*4 Ldptr,a inc dptr mo*4 Ldptr,a inc dptr mo*4 Ldptr,a mo* dptr,J2+22& mo* a,J3+& mo*4 Ldptr,a mo* sp,J11& call lcd(el 82-2#," clr ps(.3

H Confi%!rin% t(o 02

ports.

H Clears t&e display.

H Callin% LCD display s!bro!tine.

clr ps(.4 mo* dptr,J2+22& mo*4 a,Ldptr c3ne a,J31&,D><2 mo* a,J+a& 4rl a,r4 3' SI82< call lcdb!sy mo* a,J1+& mo*4 Ldptr,a call D2L#E mo* r?,J+2 mo* rC,J+2& call 1>,28MBmo* a,J+a& 4rl a,r3 3' IM:BLL inc r3 call D2L#E mo* a,r3 call L2DMC>D2S mo* dptr,J2+42& mo*4 Ldptr,a mo* r?,J+2& mo* rC,J+2& H #%ain load t&e n!mber of rotations to motor H Increment t&e n!mber of car in H first floor and display t&e n!mber of cars. H If first floor is f!ll t&en 3!mp to IM:BLL H n!mber of rotations to motor so t&at lift %oes to first floor. H Call motor to rotate cloc$(ise. H send lift is b!sy si%nal. H Call SI82< if second floor is f!ll. H Comparin% (&et&er car is inside t&e lift.

call 1>,28MD>7< mo* dptr,J2+22& mo* a,J3+& mo*4 Ldptr,a call lcd(el s3mp D><2 IM:BLL" mo* r?,J+2& mo* rC,J+2& call 1>,28MBinc r4 call D2L#E mo* a,r4 call L2DMC>D2S mo* dptr,J2+41& mo*4 Ldptr,a mo* r?,J+4& mo* rC,J+2& call 1>,28MD>7< mo* dptr,J2+22& mo* a,J3+& mo*4 Ldptr,a call lcd(el 3mp D><2 SI82<" mo* a,J?+&

H Call motor to rotate anticloc$(ise.

H send lift is free si%nal.

Hn!mber of rotations to motor so t&at lift %oes to second floor. H Call motor to rotate cloc$(ise.

H Increment t&e n!mber of car in second floor. H Display t&e n!mber of cars.

H#%ain load t&e n!mber of rotations to motor. H Call motor to rotate anticloc$(ise.

H send lift is free si%nal.

H S!bro!tine for SI82<.

mo*4 Ldptr,a =>" mo*4 a,Ldptr

3b a.+,=> 3mp >5281

D><2" mo*4 a,Ldptr c3ne a,J33&,>5281 mo* a,J+a& 4rl a,r 3' SI82< mo* a,J++ mo*4 Ldptr,a call lcdb!sy setb ps(.3 CL2#8" mo* r1,J+a& mo* r+,J+4& S,#8," mo* dptr,J2+2+& mo* a,J+e& mo*4 Ldptr,a 7#I," mo* dptr,J2+22& mo*4 a,Ldptr mo* r?,J++ 4rl a,r? 3' 7#I,

H Compare if start b!tton of t&e $eyboard is pressed.

H Call SI82< if t&ird flore is f!ll.

H Scannin% entered pass(ord from $eyboard

mo* a,J+2 L>>-" mo* rC,a mo* dptr,J2+2+& mo*4 Ldptr,a mo* dptr,J2+22& mo*4 a,Ldptr 3n' C>LSC#< inc r? mo* a,rC rl a 3mp L>>-

C>LSC#<" rrc a 3c D><21 inc r? inc r? inc r? s3mp C>LSC#<

>5281" 3mp >528 D><21" mo* a,r? clr ps(.3 setb ps(.4 mo* r+,J1K&

add a,r+ mo* r+,a mo* a,Lr+ clr ps(.4 setb ps(.3 mo* dptr,J2+21& mo*4 Ldptr,a inc dptr B-" mo*4 a,Ldptr 3n' Bmo* a,J+a& 4rl a,r? 3' CL2#8 mo* a,J+b& 4rl a,r? 3' BI,MCL2#8 mo* a,r? mo* Lr1,a inc r1 mo* r?,J+ff& .2#8" d3n' r?,.2#8 mo* r?,J+ff& .2#81" d3n' r?,.2#81 d3n' r+,S,#8, H Store entered eac& di%it.

mo* r?,J+a& mo* r+,J4 & C.2CK" mo* r1,J+a& mo* rC,J+3& C.2CK1"mo* a,Lr+ 4rl a,Lr1 3n' <2I, inc r1 inc r+ d3n' rC,C.2CK1 mo* dptr,J2+22& mo* a,JK+& mo*4 Ldptr,a clr ps(.3 3mp >K <2I," inc r+ d3n' rC,<2I, inc r+ d3n' r?,C.2CK mo* dptr,J2+22& mo* a,J +& mo*4 Ldptr,a #=#I<" mo*4 a,Ldptr

HC&ec$in% (&et&er entered 4 di%it pass(ord is any one of t&e stored pass(ord.

H N!mp to >K if pass(ord is correct.

c3ne a,J 3&,#=#I< clr ps(.3 mo* a,J3+& mo*4 Ldptr,a 821#I<" mo*4 a,Ldptr 4rl a,J33& 3' 821#I< mo* r+,J+ff& S,#E" d3n' r+,S,#E call lcd(el 3mp >528 H=i*e SI82< if entered pass(ord is (ron%.

L2DMC>D2S"setb ps(.4 mo* r+,J2 & add a,r+ mo* r+,a mo* a,Lr+ clr ps(.4 ret

BI,MCL2#8" dec r1 inc r+ mo* rC,J+ff& .2#82" d3n' rC,.2#82

mo* rC,J+ff& .2#83" d3n' rC,.2#83 3mp S,#8,

>K" mo*4 a,Ldptr c3ne a,JK1&,>K mo* a,J1+& mo*4 Ldptr,a mo* a,J++ mo* dptr,J2+21& mo*4 Ldptr,a call D2L#E mo* r?,J+C& mo* rC,J+2& call 1>,28MBinc r call D2L#E mo* a,r call L2DMC>D2S mo* dptr,J2+4+& mo*4 Ldptr,a mo* r?,J+C& mo* rC,J+2& call 1>,28MD>7< H Call motor to rotate H n!mber of rotations to motor so t&at lift %oes to t&ird flore. H Call motor to rotate cloc$(ise. HIncrement t&e n!mber of car entered to t&ird floor and display t&e n!mber of cars.

call lcd(el 3mp >528

anticloc$(ise.

1>,28MB-"p!s& r mo* r ,J?+& mo* r+,rC mo* dptr,J2+2+& mo* a,J00& &3" mo*4 Ldptr,a rl a mo* r2,J3+ &1" mo* r1,J2 &2" d3n' r1,&2 d3n' r2,&1 d3n' r ,&3 mo* r ,J+ff& d3n' rC,&3 mo* rC,r+ d3n' r?,&3 pop r ret

HS!bro!tine for motor to rotate cloc$(ise.

1>,28MD>7<"p!s& r mo* r ,J?+&

HS!bro!tine for motor to rotate anticloc$(ise.

mo* r+,rC mo* dptr,J2+2+& mo* a,J00& &C" mo*4 Ldptr,a rr a mo* r2,J3+ &4" mo* r1,J2 & " d3n' r1,& d3n' r2,&4 d3n' r ,&C mo* r ,J+ff& d3n' rC,&C mo* rC,r+ d3n' r?,&C pop r ret

D2L#E" mo* r1,J1+& D2L#E1" mo* r2,J+ff& D2L#E2" mo* r+,J+ff& D2L#E3" d3n' r+,D2L#E3 d3n' r2,D2L#E2 d3n' r1,D2L#E1 ret

H S!bro!tine for Delay

>528" mo* dptr,J2+22& mo* a,J3+& mo*4 Ldptr,a mo*4 a,Ldptr c3ne a,J32&,IM>528 mo* a,J1+& mo*4 Ldptr,a call lcdb!sy mo* r?,J+2& mo* rC,J+2& call 1>,28MBdec r3 mo* a,r3 call L2DMC>D2S mo* dptr,J2+42& mo*4 Ldptr,a call D2L#E mo* r?,J+2& mo* rC,J+2& call 1>,28MD>7< mo* dptr,J2+22& mo* a,J3+& mo*4 Ldptr,a H Call motor to rotate anticloc$(ise. H Call motor to rotate cloc$(ise. H Decrements t&e n!mber of cars entered to first floor and display t&e n!mber of cars in first floor.

call lcd(el IM>528" mo*4 a,Ldptr c3ne a,J34&,IIM>528 mo* a,J1+& mo*4 Ldptr,a call lcdb!sy mo* r?,J+4& mo* rC,J+2& call 1>,28MBdec r4 mo* a,r4 call L2DMC>D2S mo* dptr,J2+41& mo*4 Ldptr,a call D2L#E mo* r?,J+4& mo* rC,J+2& call 1>,28MD>7< mo* dptr,J2+22& mo* a,J3+& mo*4 Ldptr,a call lcd(el IIM>528" mo*4 a,Ldptr c3ne a,J30&,2<D H Call motor to rotate cloc$(ise. H Call motor to rotate cloc$(ise. H Decrements t&e n!mber of cars entered to second floor and display t&e n!mber of cars in second floor.

mo* a,J1+& mo*4 Ldptr,a call lcdb!sy mo* r?,J+C& mo* rC,J+2& call 1>,28MBdec r mo* a,r call L2DMC>D2S mo* dptr,J2+4+& mo*4 Ldptr,a call D2L#E mo* r?,J+C& mo* rC,J+2& call 1>,>8MD>7< mo* dptr,J2+22& mo* a,J3+& mo*4 Ldptr,a call lcd(el 2<D" 3mp 82-2#, H Call motor to rotate anticloc$(ise. H Call motor to rotate cloc$(ise. H Decrements t&e n!mber of cars entered to t&ird floor and display t&e n!mber of cars in t&ird floor.

lcd(el" p!s& r3 p!s& r4 mo* a,J3c&

H S!bro!tine for LCD to display O 72LC>12 ,> C#8 -#8KI<= SES,21 6

call command mo* a,J+e& call command mo* a,J+1& call command mo* a,J+C& call command mo* a,J0+& call command mo* a,JD7D call data mo* a,JD2D call data mo* a,JDLD call data mo* a,JDCD call data mo* a,JD>D call data mo* a,JD1D call data mo* a,JD2D call data mo* a,JD D

call data mo* a,J00& call command mo* a,JD,D call data mo* a,JD>D call data mo* a,JD D call data mo* a,JDCD call data mo* a,JD#D call data1 mo* a,JD8D call data mo* a,Jaa& call command mo* a,JD-D call data mo* a,JD#D call data mo* a,JD8D call data mo* a,JDKD

call data mo* a,JDID call data mo* a,JD<D call data mo* a,JD=D call data mo* a,JD D call data mo* a,JDSD call data mo* a,JDED call data mo* a,JDSD call data mo* a,JD,D call data mo* a,JD2D call data mo* a,JD1D call data pop r4 pop r3 ret

command" mo* p1,a clr p3.4 setb p3.3 clr p3.3 mo* r3,J + #" mo* r4,J2 8" d3n' r4,8 d3n' r3,# ret

data" mo* p1,a setb p3.4 setb p3.3 clr p3.3 mo* r3,J + ###" mo* r4,J2 ##" d3n' r4,## d3n' r3,### ret

lcdb!sy" p!s& r4 p!s& r3 mo* a,J3c& call command

H S!bro!tine for LCD to display O LI:, IS BBSE -L2#S2 7#I, 6

mo* a,J+e& call command mo* a,J+1& call command mo* a,J+C& call command mo* a,J0+& call command mo* a,JDLD call data mo* a,JDID call data mo* a,JD:D call data mo* a,JD,D call data mo* a,JD D call data mo* a,JD D call data mo* a,JDID call data mo* a,JDSD call data

mo* a,J00& call command mo* a,JD D call data mo* a,JD D call data mo* a,JDBD call data mo* a,JDBD call data mo* a,JDSD call data mo* a,JDED call data mo* a,Jaa& call command mo* a,JD-D call data mo* a,JDLD call data mo* a,JD2D call data mo* a,JD#D call data

mo* a,JDSD call data mo* a,JD2D call data mo* a,JD D call data mo* a,JD7D call data mo* a,JD#D call data mo* a,JDID call data mo* a,JD,D call data mo* a,JD D call data pop r3 pop r4 ret :or /!eries on t&e abo*e please contact ran3it&Lelectrofriends.com