Automated multistoried car parking system

8051 Program for Automated multistoried car parking system.

mov r0,#19h
mov @r0,#0bfh
inc r0
mov @r0,#86h
inc r0
mov @r0,#0dbh
inc r0
mov @r0,#0cfh
inc r0
mov @r0,#0e6h

inc r0                            ; Storing the equivalent codes of common cathode display.
mov @r0,#0edh
inc r0
mov @r0,#fdh
inc r0
mov @r0,#87h
inc r0
mov @r0,#0ffh
inc r0
mov @r0,#0e7h
inc r0
mov @r0,#39h
inc r0
mov @r0,#00h

mov r0,#25h               ; Storing the equivalent codes of common anode.
mov @r0,#40h
inc r0
mov @r0,#0f9h
inc r0
mov @r0,#24h
inc r0
mov @r0,#30h
inc r0
mov @r0,#99h
inc r0
mov @r0,#12h
inc r0
mov @r0,#02h
inc r0
mov @r0,#78h
inc r0
mov @r0,#00h
inc r0
mov @r0,#18h
inc r0
mov @r0,#0eh

mov r0,#45h                 ; Storing ten 4 digit passwords in
mov @r0,#00h              ; internal RAM.
inc r0
mov @r0,#01h
inc r0
mov @r0,#02h
inc r0
mov @r0,#03h
inc r0
mov @r0,#08h
inc r0
mov @r0,#00
inc r0
mov @r0,#05h
inc r0
mov @r0,#01h
inc r0
mov @r0,#01h
inc r0
mov @r0,#00
inc r0
mov @r0,#00
inc r0
mov @r0,#01h
inc r0
mov @r0,#06h
inc r0
mov @r0,#00
inc r0
mov @r0,#05h
inc r0
mov @r0,#00
inc r0
mov @r0,#09h
inc r0
mov @r0,#08h
inc r0
mov @r0,#08h
inc r0
mov @r0,#06h
inc r0
mov @r0,#03h
inc r0
mov @r0,#01h
inc r0
mov @r0,#01h
inc r0
mov @r0,#07h
mov a,#08
STORE: dec a
inc r0
mov @r0,a
inc r0
movx @r0,a
inc r0
movx @r0,a
inc r0
movx @r0,a
djnz a,STORE

mov dptr,#2023h            ; Configuring two 8255 ports.
mov a,#81h
movx @dptr,a
mov dptr,#2043h
mov a,#80h
movx @dptr,a
mov r3,#00                    ; Clears the display.
mov r4,#00
mov r5,#00
mov a,r5
call LED_CODES
mov dptr,#2040h
movx @dptr,a
inc dptr
movx @dptr,a
inc dptr
movx @dptr,a
mov dptr,#2022h
mov a,#30h
movx @dptr,a
mov sp,#11h
call lcdwel                      ; Calling LCD display subroutine.
REPEAT: clr psw.3
clr psw.4
mov dptr,#2022h
movx a,@dptr
cjne a,#31h,DONE        ; Comparing whether car is inside the lift.
mov a,#0ah
xrl a,r4
jz SIREN                          ; Call SIREN if second floor is full.
call lcdbusy
mov a,#10h
movx @dptr,a                 ; send lift is busy signal.
call DELAY
mov r7,#02                     ; number of rotations to motor so that lift goes to first floor.
mov r6,#02h
call MOTER_UP                 ; Call motor to rotate clockwise.
mov a,#0ah
xrl a,r3
jz I_FULL                          ; If first floor is full then jump to I_FULL
inc r3
call DELAY
mov a,r3                          ; Increment the number of car in
call LED_CODES               ; first floor and display the number of cars.
mov dptr,#2042h
movx @dptr,a
mov r7,#02h                    ; Again load the  number of rotations to motor
mov r6,#02h
call MOTER_DOWN           ; Call motor to rotate anticlockwise.
mov dptr,#2022h
mov a,#30h
movx @dptr,a                  ; send lift is free signal.
call lcdwel
sjmp DONE
I_FULL:  mov r7,#02h       ;number of rotations to motor so that lift goes to second floor.
mov r6,#02h
call MOTER_UP                  ; Call motor to rotate clockwise.
inc r4
call DELAY
mov a,r4                           ; Increment the number of car in second floor.
call LED_CODES               ; Display the number of cars.
mov dptr,#2041h
movx @dptr,a
mov r7,#04h                    ; Again load the  number of rotations to motor.
mov r6,#02h
call MOTER_DOWN           ; Call motor to rotate anticlockwise.
mov dptr,#2022h
mov a,#30h
movx @dptr,a                   ; send lift is free signal.
call lcdwel
jmp DONE
SIREN: mov a,#70h          ; Subroutine for SIREN.
movx @dptr,a
GO:    movx a,@dptr
jb a.0,GO
jmp OVER1

DONE: movx a,@dptr        ; Compare if start button of the keyboard is pressed.
cjne a,#33h,OVER1
mov a,#0ah
xrl a,r5
jz SIREN                             ; Call SIREN if third flore is full.
mov a,#00
movx @dptr,a
call lcdbusy
setb psw.3
CLEAR: mov r1,#0ah        ; Scanning entered password from keyboard
mov r0,#04h
START: mov dptr,#2020h
mov a,#0eh
movx @dptr,a
WAIT: mov dptr,#2022h
movx a,@dptr
mov r7,#00
xrl a,r7
jz WAIT
mov a,#02
LOOP: mov r6,a
mov dptr,#2020h
movx @dptr,a
mov dptr,#2022h
movx a,@dptr
jnz COLSCAN
inc r7
mov a,r6
rl a
jmp LOOP

COLSCAN: rrc a
jc DONE1
inc r7
inc r7
inc r7
sjmp COLSCAN

OVER1: jmp OVER
DONE1: mov a,r7
clr psw.3
setb psw.4
mov r0,#19h
add a,r0
mov r0,a
mov a,@r0
clr psw.4
setb psw.3
mov dptr,#2021h
movx @dptr,a
inc dptr
UP: movx a,@dptr
jnz UP
mov a,#0ah
xrl a,r7
jz CLEAR
mov a,#0bh
xrl a,r7
jz BIT_CLEAR
mov a,r7
mov @r1,a                     ; Store entered each digit.
inc r1
mov r7,#0ffh
HEAR: djnz r7,HEAR
mov r7,#0ffh
HEAR1: djnz r7,HEAR1
djnz r0,START

mov r7,#0ah                 ; Checking whether entered 4 digit password is
mov r0,#45h                 ; any one of the stored password.
CHECK: mov r1,#0ah
mov r6,#03h
CHECK1:mov a,@r0
xrl a,@r1
jnz NEXT
inc r1
inc r0
djnz r6,CHECK1
mov dptr,#2022h
mov a,#90h
movx @dptr,a
clr psw.3
jmp OK                           ; Jump to OK if password is correct.
NEXT: inc r0
djnz r6,NEXT
inc r0
djnz r7,CHECK
mov dptr,#2022h
mov a,#50h
movx @dptr,a
AGAIN: movx a,@dptr
cjne a,#53h,AGAIN
clr psw.3
mov a,#30h                   ; Give SIREN if entered password is wrong.
movx @dptr,a
REMAIN: movx a,@dptr
xrl a,#33h
jz REMAIN
mov r0,#0ffh
STAY: djnz r0,STAY
call lcdwel
jmp OVER

LED_CODES:setb psw.4
mov r0,#25h
add a,r0
mov r0,a
mov a,@r0
clr psw.4
ret

BIT_CLEAR: dec r1
inc r0
mov r6,#0ffh
HEAR2: djnz r6,HEAR2
mov r6,#0ffh
HEAR3: djnz r6,HEAR3
jmp START

; continued…

Editorial Team
Editorial Team

We are a group of young techies trying to provide the best study material for all Electronic and Computer science students. We are publishing Microcontroller projects, Basic Electronics, Digital Electronics, Computer projects and also c/c++, java programs.

403 thoughts on “Automated multistoried car parking system

  1. sir
    i am doing this project .can you mail the pcb layout of this project with all inter connection and its complete circuit diagram.
    sir,it will help me more,plz mail me as soon as possible.

  2. Im interested in this project could u plizzz send me the full schematic,circuit diagram and coding or flow chart plizzzzz its urgent

  3. can you plz mail me the details of this project with circuit diagram…i want to make this on as my major project,plz mail me as soon as possible

  4. sir can you please send me the circuit diagram of this project. it will be very helpful for us.
    thank u in advance…..

  5. Sir, Im interested in this project could u plz mail me the complete circuit diagram of the project?

  6. Plz send me full circuit diagram plz I do this project in final year. Plz help me sir. & all students

  7. Sir, I am a B.E. student and I want to do this project as my final yr project. So i want the complete ckt diagram of this project. I request you to please send me at my email address as early as possible.

  8. Dear sir ,
    i’m very interested on this project , can you send me the full details of this nice project ?
    Very appreciate 🙂

  9. dear sir, I am also intersted in doing this project, bt i hv ltl confusion, that when a car comes near to ground floor then wheather the user is inside or not, also if at any floor there are 2 cars alerady parked and next car has to be park then how the car will go from lift to that perticular space. Again if when any user wants to go and needs his car back then how his car will get back to perticular person. According to this project it is applicable only for the single car.

  10. SIR,
    I am the student of B E final yr , in intrested your project . but i have some problem in this project, so please send me circute dig and flow chart, coding please sir its urgant, please send as soon as possible.
    Thanks a lot.

  11. I am sty diploma final year sir this project all detills hear. but circuit diagram not pll help me…… pll Response me

  12. sir , i m final year student and i want to make multilevel car parking system as my minor project but i have some difficulty in programing pllzz help me..

  13. How we know that parking space is available or not I.e if in each floor their is capacity of park 10 car then how we know that 10 cars are parked or not??

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in