Está en la página 1de 11

MULTISTOREY CAR PARKING

WILLY V JACOB
ELIZEBETH
MOHAN
SAPNA
CHAUHAN

Multi-Storey Car Parking is a method of parking and retrieving cars that


typically use a system of pallets and lifts. The intention is to compact more
cars in the same space, reduce the space needed to park the same number
of cars. My project is the miniature model of the real thing. It is made by
using 8051 microcontroller and it is for 3 storey building.
COMPONENTS USED

1. Microcontroller 8051( P89V51RD2)


2. PCB
3. LCD
4. LEDS(5 red,3 green )
5. IR pair(2 IR pairs)
6. Resistors
7. 7404 IC(NOT gate)
8. Power jack
9. Capacitors
10. 10k potentiometer
11. MAX232
12. Adapter 5v
13. Switch
14. 7805 regulator
15. Transistors(6 nos)
16. Crystal of frequency 11.0592 Mhz

A green and red led are provided on each floor to indicate whether the car
can be parked on that particular floor or not.If green led of any particular
floor glows, then it will indicate that the particular floor is empty and you
can park your car on that floor. But in case if red led of that particular
floor glows, then it will indicate that there is no vacancy on that floor, in
such case you can park your car on the next floor according to the

indication. If there is no parking place, then all the red indicators of the
floors will glow.

This project consist of the following sections


1. Microcontroller section
2. Sensors section
3. Lcd section
4. Leds section

Microcontroller section-This section consists of the microcontroller, crystal,


switch, power jack, 2 led, resistors, capacitors, sip, max232 IC. This section
deals with the microcontroller, A microcontroller is a small computer on a
single integrated circuit containing a processor core, memory and
programmable I/O peripherals. The pin description of 8051 microcontroller is
given below.

Sensors section- The sensor section consists of an IR pairs. A sensor is a device


that measures physical quantity and converts it into a signal which can be
read by an observer or by an instrument. An IR pair is provided which will sense
whether the car has reached towards the gate or not. There will be 2 IR pairs
provided before the main gate at the ground floor. As soon as the car reaches
between the 2 IR pairs. It will be sensed by the sensors and the display on the LCD
automatically changes and it will show the particular floor on which the car can be
parked.

LCD section- A liquid crystal display (LCD) is a thin, flat electronic visual display.
The lcd is used to display the place to park the vehicle i.e. it show ground floor if
space is available on ground floor etc. the 1st ,5th &16th is given ground.2nd &15th
pin is given Vcc. The data lines are connected to PORT 0 and the control lines are
connected to PORT 1.0 &1.1. The pin description of LCD is given below.

WORKING- Display is provided at the ground floor that displays where to park the
car.Each floor is provided with green and red LEDS,Green for vacancy and
Red for no space.Sensors sense the entry of each car and indicate a message
on LCD about where to park car.If there is no space a message is displayed
NO SPACE.

SOURCE CODE FOR MULTISTOREY CAR PARKING


This program to done to demonstrate a car parking with 3 floors and each
with a capacity of 5 cars.the program is done using embedded c and keil
compiler is used for this language.the header file used is <reg51.h>.the
program is given below.
#include<Reg51.h>
sbit RS=P1^0;
sbit EN=P1^1;
sbit green_led1=P1^4;
sbit red_led1=P2^3;
sbit green_led2=P1^3;
sbit red_led2=P2^4;
sbit red_led3=P2^5;
sbit green_led3=P1^2;
sbit s1=P2^0;
sbit s2=P2^1;
char name[10]={"WELCOME TO"};
char name0[11]={"CAR PARKING"};
char name1[11]={"PARK CAR ON"};
char name2[12]={"GROUND FLOOR"};
char name3[11]={"FIRST FLOOR"};
char name4[12]={"SECOND FLOOR"};
char name5[8]={"NO SPACE"};
int k,count,i,l;
count=0;
void delay()
{
int j;
for(j=0;j<3000;j++);
}
void cmd()
{
RS=0;EN=1;EN=0;
}
void data1()
{
RS=1;EN=1;EN=0;
}
void lcd_start()

{
P0=0X38;
cmd();
delay();
P0=0X01;
cmd();
delay();
P0=0X0E;
cmd();
delay();
P0=0X06;
cmd();
delay();
}
void main()
{
P3=0X00;
P2=0xff;
green_led1=1;
red_led1=0;
green_led2=1;
green_led3=1;
red_led2=0;
red_led3=0;
count=0;
lcd_start();
P0=0X83;
cmd();delay();
for(i=0;i<10;i++)
{
P0=name[i];
data1();
delay();
}
P0=0XC3;
cmd();
delay();
for(i=0;i<11;i++)
{
P0=name0[i];

data1();
delay();
}
delay();
while(1)
{
park:while(s1==1 && s2==1);
if(s1==0)
{
P0=0X01;
cmd();
delay();
delay();
while(s2==1);
count++;
if(count<=0)
{
green_led1=1;
green_led2=1;
green_led3=1;
red_led2=0;
red_led3=0;
red_led1=0;
}
goto a;
}
if(s2==0)
{
P0=0X01;
cmd();
delay();
delay();
while(s1==1);
delay();
count--;
if(count<=0)
{
green_led1=1;
green_led2=1;
green_led3=1;

red_led2=0;
red_led3=0;
red_led1=0;
}
goto a;
}
a:while(1)
{
if(count>0 && count<=5)
{
green_led1=1;
green_led2=1;
green_led3=1;
red_led2=0;
red_led3=0;
red_led1=0;
goto ground;
}
if(count>5 && count<=10)
{
green_led1=0;
green_led2=1;
green_led3=1;
red_led2=0;
red_led3=0;
red_led1=1;
goto first;
}
if(count>10 && count<=15)
{
green_led1=0;
green_led2=0;
green_led3=1;
red_led2=1;
red_led3=0;
red_led1=1;
goto second;
}
if(count>15)
{

green_led1=0;
green_led2=0;
green_led3=0;
red_led2=1;
red_led3=1;
red_led1=1;
goto full;
}
}
ground:
P0=0X80;
cmd();
delay();
for(k=0;k<11;k++)
{
P0=name1[k];
data1();
delay();
}
P0=0XC0;
cmd();
delay();
for(k=0;k<12;k++)
{
P0=name2[k];
data1();
delay();
}
goto park;
first:
P0=0X80;
cmd();
delay();
for(k=0;k<11;k++)
{
P0=name1[k];
data1();
delay();
}
P0=0XC0;

cmd();
delay();
for(k=0;k<11;k++)
{
P0=name3[k];
data1();
delay();
}
goto park;
second: P0=0X01;
cmd();
delay();
P0=0X80;
cmd();
delay();
for(k=0;k<11;k++)
{
P0=name1[k];
data1();
delay();
}
P0=0XC0;
cmd();
delay();
for(k=0;k<12;k++)
{
P0=name4[k];
data1();delay();
}
goto park;
full: P0=0X01;
cmd();
delay();
P0=0X80;
cmd();
delay();
for(k=0;k<8;k++)
{
P0=name5[k];
data1();

delay();
}
goto park;
}
}

ADVANTAGES
Provides lower parking cost per building area.
Solves the problem of less space.
Reduces human effort in finding out the required space.
Fast.
DISADVANTAGES
Deterioration and Maintenance.
Parking angle considerations.
Safety.
VOTE OF THANKS-We would like to thank our teachers at atech 4 guiding us
and we also like to thank our parents 4 making us do the training. We would
like to thank Bonjovi ,Backstreet boys ,Led zeppelin, bullets for my valentine
for being our inspiration.a special thanks to prashant.

También podría gustarte