Professional Documents
Culture Documents
Finalished
Finalished
AN INTERNSHIP REPORT
Submitted
In the partial fulfillment of the requirements for
the award of the degree of
Bachelor of Technology in
Electronics and Communication Engineering
By
C.H.A.V.SATYANARAYANA
K.RAMANJENEYULU
Project Co-ordinator
Page 1 of 87
CERTIFICATE
121FA05135
-
3. K.VIPIN KUMAR
121FA05231
-
121FA05306
Signature of
Head ofDepartment
K.ASHOK KUMAR REDDY
Dr. N.
Usha Rani
Asst. Professor
Professor
Page 2 of 87
Page 3 of 87
Page 4 of 87
Page 5 of 87
Page 6 of 87
DECLARATION
We hereby declare that the internship work entitled MULTI LEVEL CAR
PARKING SYSTEM is being submitted to Vignans Foundation for Science,
Technology and Research, University, in partial fulfillment for the award of
B.Tech degree in Electronics and Communication Engineering. The work was
originally designed and executed by us under the guidance of our supervisor
Ms.V.KIRANMYEE with Mr. K.ASHOK KUMAR REDDY as faculty guide
at Department of
Foundation for Science Technology and Research University and was not a
duplication of work done by someone else. We hold the responsibility of the
originality of the work incorporated into this thesis.
Page 7 of 87
ACKNOWLEDGEMENT
After completion of this project it gives us great pleasure to express gratitude and
heart full thanks to all those people whose help went long way in completing this
project. There are several people who deserve more than a written
acknowledgement for practical help.
We would like to thank Ms.V.KIRANMAYEE of PGP ELECTRONICS for
providing the guidance and resources during our internship in PGP
ELECTRONICS and we would like to place on record the help received from our
respected lecturer from School of electronics Mr.K.ASHOK KUMAR REDDY
Assistant professor for his inspiring guidance and help provided during the course
of completing this project.
We would also like to place on record the help received from Dr.N.USHA RANI
Head of Department School of Electronics and Dr.V.MADHUSUDHAN RAO
Director Engineering technology for their valuable support and resources guided
us towards the completion of course and project and we would also like to thank
all our class mates for their valuable suggestions and support in completion of this
work
Page 8 of 87
ABSTRACT
This report details the operation, constuction and testing details of our project Automated
Multi level car parking. This system is designed such that the driver of the car will leave
the car in a specified area. There after the car is placed in the parking slot, automatically,
with the help of mtors. A micro controller is used as the central processing unit. Few
sensors are used as the sensing elements. The system was built and tested. The final
circuit has worked to our entire satisfaction.
Page 9 of 87
TABLE OF CONTENTS
ACKNOWLEDGEMENT
Title
Page
CHAPTER 1: INTRODUCTION
1.1. Introduction
1.4. Objectives
1.7. Limitations
7
8
Page 10 of 87
3.1.1 Transformer
11
3.1.4 Regulator
12
15
16
3.2.2 Operation
16
3.2.3.Circuit Description
18
20
20
20
21
24
25
29
30
32
3.10. LDR
34
3.11.DAY/NIGHT SENSOR
34
34
3.11.2LDR CHARACTERISTICS
35
35
3.13N4001 features:
36
Page 11 of 87
38
40
46
4.4 IC Programming
47
47
49
61
5.1.1
61
63
65
66
CHAPTER 7. Reference
68
Page 12 of 87
LIST OF TABLES
Table
3.9.2(b)
Title
Page
32
3.11.1
33
3.15
Features of IN4001
39
3.15.1
Features ofLM7805
40
Page 13 of 87
LIST OF FIGURES
Figure
Title
Page
3.0
3.1
3.1.1
3.1.2
3.1.2(a)
10
3.1.2(b)
10
3.1.2(c)
11
3.13
12
3.14(a)
Voltage regulator(7805)
14
3.14(b)
14
3.3
15
3.3.2
17
3.3.3
LDR
18
3.3.3(a)
LDR working
19
3.3.(b)
Logic zero
19
3.3.(c)
Logic One
20
3.4.2
22
3.5
24
Page 14 of 87
3.8.1
Oscillator Connections
30
3.8.2
30
3.10.1
NPN transistor
31
3.10.2(a)
RS latch
31
3.11.1
32
3.11.2
3.12
3.13.1
33
34
37
3.13.2
37
3.14
38
4.1(a)
Software simulation
41
4.1.(b)
42
4.2.
Preparation of layout
43
4.3
49
4.5
ATMEGA 8 IDE
51
5.1
Result of Simulation
59
Page 15 of 87
CHAPTER- 1
INTRODUCTION TO MUTLI LEVEL CAR PARKING SYSTEM
1.1. Introduction
This chapter will provide the overview of the project title, its background and the
problems statement. In addition, this chapter will also discussed the objectives of the
project implementation, the scope of works to be done and the limitations that have been
encountered upon the completion of this project.
The Multi level car parking system Parking System with Microcontroller
Interfacing is a project for the convenience of the people who want to save time
and energy in searching for the parking. It consists of several parts; inputs: sensors
(loop detector, motion detector); outputs: display ( 7-Segment), sound (buzzer);
processor: PIC (programming and execution of the software).The main focus of
this project is to relate the inputs and outputs using an interface that can execute
what have been programmed so the outcome will be as expected. It will provide
information and study as much as possible so that it can be reviewed in the future
for better development. It also will be conclude with recommendations on the
most suitable solution for the existing problems.Upon the completion of this
project, it is expect and hope to bring benefit to others. This system will not only
be a big help to customer but also will be an added advantage to the premises
Page 16 of 87
owner as the customer will prefer an informative and systematic parking area
which will help them to find a free space in shorter period than they usually do.
Page 17 of 87
Page 18 of 87
1.7. Limitations
In the first and second chapter, the general content was introduced. It also
provides the information related to the project as the projects reference. The
techniques, methodology involved and result were presented in Chapter 3 and 4.
The last chapter will conclude all the findings and analysis to provide the
outcomes.
CHAPTER- 2
INTRODUCTION TO LITERATURE REVIEW
Chapter 2 has provided the literature reviews on the main research focus
which is on how to tackle and solve the parking difficulties face by people. This
chapter also reviewed the background on the existing smart parking systems,
including the performance metrics, existing solutions and challenges. The related
works also being briefly discussed.
2.1. Performance Metrics
To evaluate the performance of a parking management system, the
following metrics are introduced, which reflect the needs of involved parties, and
our concerns on traffic congestion and environmental protection.
2.2. Walking Distance
Walking distance is defined as the distance from a drivers selected parking space to the
destination. It is an important factor for a driver to determine where to park. Usually, a
driver wants to park as close to the destination as possible if his budget permits.
Therefore, the walking distance indicates the satisfaction of drivers.
2.3.Parking Revenue
Regardless of whether a parking lot is privately owned or municipally owned,
parking revenue represents the benefit to the parking providers. Since multiple parties
are involved in this system, my design does not aim to maximize the parking Revenue
for service providers only, but allows them to obtain profits at reasonable level
CHAPTER-3
HARDWARE DESCRIPTION
The world of Electronics is changing at rapid pace. More and more advancements are
taking place in this field.
Automatic multistoried car parking system helps to minimize the car parking area. In the
modern world, where parking-space has become a very big problem and in the era of
miniaturization, it is become a very crucial necessity to avoid the wastage of space in
modern, big companies and apartments etc. In places where more than 100 cars need to
be parked, this system proves to be useful in reducing wastage of space. This Automatic
Car Parking 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. This
makes the system modernized and even a space-saving one.
The system level block diagram for this system is shown in the next page.
3.0.Block Diagram
230
v ac
RPS
Control
circuit
Sens
oArra
y
Driv
er
Mot
o
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
O
R
Figure 3.0. Block Diagram
O
R
The basic block diagram for automated multi level car park is showno in the above
r
figure. The mains supply is regulated to provide us a constant DC source. The micro
s
More information about the components can be found in the later sections.
3.1 POWER SUPPLY MODULE
The following Hardware and software is used in this system. Deatiled explanation of
these components follow in the later sections.
3.3.1Circuit Description
This is a system designed to opearte independently, without manual interference.
Some of the components in this system require DC5V for their operation, for example the
micro controller. Hence we have designed a 5V regulator.
The major power source for us is mains 230V ac. For the regulator design we need a
lower ac volatge. We have used a transformer to accomplish this task. The transformer
stpped down the 230v ac to an acceptable level. This stpped down ac voltage was
converted to DC with the help of a bridge rectifier. The output of the regulator is DC.
However this DC has some ac contents in it. This ac content is called as ripples. With the
help of a smoothing capacitor these ripples are removed. This gets varied depending on
the load and the mains supply voltage. We have used a regulator IC which provides us
constant DC with constant current. The DC voltage is 5V with a current of 1A.
The other important components are 1)Micro Controller 2) Driver circuit.
3.3.2 Operation
When a user wish to leave their car park in car park area. They bring it to the ramp and
leave the car on the platform. The plat form essentially consist of a fork kind of
arrangement. Then part of the platform is lifted up using a motor. This will be lifted up to
the next available car park level. Once they fid that suitable plce is found, then, they with
the help of another motor the fork is rotated around Then the car park is left at the vacant
place. After placng the car in the desired area the fork is returned back and waits for
another car to be loaded.
Car
Platfro
m
Lift
Level
Parked
.
6. As the car moves out, the LIFT drops to Ground Floor. The car occupies the
allotted slot and the number of free slots are displayed on the 7-Segment display.
7. To call the LIFT to a certain floor, change the state of that floor to calling mode
(i.e. changing logic level from 0 to 1). The LIFT starts to move from Ground Floor to
the Calling Floor and the system expects the car to move into the Lift.
8. As the car moves in the Lift, it starts to move towards Ground Level.
3.3.3 Slot Status:
The status of a slot is monitored by a photo-resistor (or light-dependent resistor,
LDR, or photocell) which is a light-controlled variable resistor. The resistance of a
photo-resistor decreases with increasing incident light intensity, in other words, it
A photo-resistor is made of a high resistance semiconductor. In the dark, a photoresistor can have a resistance as high as several mega-ohms (M), while in the light,
a photo-resistor can have a resistance as low as a few hundred ohms.
As the LDR is exposed to the light the resistance of the LDR decreases which will
allow the voltage to pass through it and the result is a logic zero.
For this project we are using AVR microcontroller. we can use transistors instead of
microcontroller and even transistors are cheap also in comparison to microcontroller but
the reason behind using the microcontroller is we are in learning phase. One reason also
stand for using microcontroller is that if we have used transistor, circuit would have been
very complexed. This is because we prefer to use microcontroller.
In AVR microcontroller there are three I\O ports named B, C & D. The port B & D has 8
pins or bits and the port C has 7 pins. All the bits of any these said ports, we can use as
both I\O port. In this above said system well use port D as input and port B as output.
The AVR core combines a rich instruction set with 32 general purpose working registers.
All the 32 registers are directly connected to the Arithmetic Logic Unit (ALU), allowing
two independent registers to be accessed in one single instruction executed in one clock
cycle. The resulting architecture is more code efficient while achieving throughputs up to
ten times faster than conventional CISC Microcontrollers.
The Power down mode saves the register contents but freezes the Oscillator, disabling all
other chip functions until the next Interrupt or Hardware Reset. In Power-save mode, the
asynchronous timer continues to run, allowing the user to maintain a timer base while the
rest of the device is sleeping.
The ADC Noise Reduction mode stops the CPU and all I/O modules except asynchronous
timer and ADC, to minimize switching noise during ADC conversions. In Standby mode,
the crystal/resonator Oscillator is running while the rest of the device is sleeping. This
allows very fast start-up combined with low-power consumption.
The device is manufactured using Atmels high density non-volatile memory technology.
The Flash Program memory can be reprogrammed In-System through an SPI serial
interface, by a conventional non-volatile memory programmer, or by an On-chip boot
program running on the AVR core. The boot program can use any interface to download
the application program in the Application Flash memory. Software in the Boot Flash
Section will continue to run while the Application Flash Section is updated, providing
true Read-While-Write operation. By combining an 8-bit RISC CPU with In-System SelfProgrammable Flash on a monolithic chip, the atmel ATmega8 is a powerful
microcontroller that provides a highly-flexible and cost-effective solution to many
embedded control applications.
The ATmega8 AVR is supported with a full suite of program and system development
tools, including C compilers, macro assemblers, program debugger/simulators, In-Circuit
Emulators, and evaluation kits.
PC6/RESET
If the RSTDISBL Fuse is programmed, PC6 is used as an I/O pin. Note that the electrical
characteristics of PC6 differ from those of the other pins of Port C. If the RSTDISBL
Fuse is unprogrammed , PC6 is used as a Reset input. A low level on this pin for longer
than the minimum pulse length will generate a Reset, even if the clock is not running.
Shorter pulses are not guaranteed to generate a Reset.
Port D (PD7..PD0)
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each
bit). The Port D output buffers have symmetrical drive characteristics with both high sink
and source capability. As inputs, Port D pins that are externally pulled low will source
current if the pull-up resistors are activated. The Port D pins are tri-stated when a reset
condition becomes active, even if the clock is not running. Port D also serves the
functions of various special features of the ATmega8..
RESET
Reset input. A low level on this pin for longer than the minimum pulse length will
generate a reset, even if the clock is not running. Shorter pulses are not guaranteed to
generate a reset.
AVCC
AVCC is the supply voltage pin for the A/D Converter, Port C (3..0), and ADC (7..6). It
should be externally connected to VCC, even if the ADC is not used. If the ADC is used,
it should be connected to VCC through a low-pass filter. Note that Port C (5..4) use
digital supply voltage, VCC.
AREF
AREF is the analog reference pin for the A/D Converter.
Each port pin consists of 3 Register bits: DDxn, PORTxn, and PINxn.The DDxn bits are
accessed at the DDRx I/O address, the PORTxn bits at the PORTx I/O address, and the
PINxn bits at the PINx I/O address
The DDxn bit in the DDRx Register selects the direction of this pin. If DDxn is written
logic one, Pxn is configured as an output pin. If DDxn is written logic zero, Pxn is
configured as an input pin.
If PORTxn is written logic one when the pin is configured as an input pin, the pull-up
resistor is activated. To switch the pull-up resistor off, PORTxn has to be written logic
zero or the pin has to be configured as an output pin. The port pins are tri-stated when a
reset condition becomes active, even if no clocks are running.
If PORTxn is written logic one when the pin is configured as an output pin, the port pin is
driven high (one). If PORTxn is written logic zero when the pin is configured as an output
pin, the port pin is driven low (zero).
When switching between tri-state ({DDxn, PORTxn} = 0b00) and output high ({DDxn,
PORTxn} = 0b11), an intermediate state with either pull-up enabled ({DDxn, PORTxn} =
0b01) or output low ({DDxn, PORTxn} = 0b10) must occur. Normally, the pull-up
enabled state is fully acceptable, as a high-impedant environment will not notice the
difference between a strong high driver.
Reading the Pin Value
Independent of the setting of Data Direction bit DDxn, the port pin can be read through
the PINxn Register Bit. Tthe PINxn Register bit and the preceding latch constitute a
synchronizer. This is needed to avoid meta stability if the physical pin changes value near
the edge of the internal clock, but it also introduces a delay.
OSCILLATOR CONNECTIONS:
Figure 3.8.1 :oscillator connections
Note: C1, C2 = 30 pF 10 pF for Crystals
= 40 pF 10 pF for Ceramic Resonators
n
Emitter
p
Base
n
collector
Emitter (E)
Collector(C)
Emitter-base jn.
Base (B)
(EBJ)
Collector-base jn.
(CBJ)
R
0
Qn+1
Qn
Above truth table shows that whenever set input is at high the output will be at high and
whenever reset input is at high the output will be at low.
3.10. Motor Driver, L293
The L293D is a monolithic integrated high voltage, high current four channel driver
designed to accept standard DTL or TTL logic levels and drive inductive loads (such as
relays solenoides, DC and stepping motors) and switching power transistors.
To simplify use as two bridges is pair of channels is equiped with an enable input. A
separate supply input is provided from the logic, allowing operation at a low voltage and
internal clamp diodes areincluded.
The block diagram for the motor driver is shown in the following figure.
LEDs have many advantages over other technologies like lasers. As compared to
LEDs are conventional incandescent lamps. For one thing, they don't have a
filament that will burn out, so they last much longer. Additionally, their small plastic bulb
makes them a lot more durable. They also fit more easily into modern electronic circuits.
production process involves generating a lot of heat (the filament must be warmed).
Unless you're using the lamp as a heater, because a huge portion of the available
electricity isn't going toward producing visible light..
DISADVANTAGES OF LEDS:
environment.
But the disadvantages are quite negligible as the negative properties of LEDs do
have enough energy to excite the electron across the entire band gap. Extrinsic devices
have impurities, also called dopants added whose ground state energy is closer to the
conduction band; since the electrons do not have as far to jump, lower energy photons
(i.e., longer wavelengths and lower frequencies) are sufficient to trigger the device. If a
sample of silicon has some of its atoms replaced by phosphorus atoms (impurities), there
will be extra electrons available for conduction. This is an example of an extrinsic
semiconductor.
3.13.DAY/NIGHT SENSOR
A day/night sensor is used as one of the input for ATmega8 controller. We used light
dependent resistor (LDR) as a day/night sensor whose resistance varies with the intensity
of light incident upon it. LDR also known as photo-resistor or photo-conductor is made
up of a semiconductor material which has a high resistance and less free electrons
available for conduction and hence offers a higher resistance and the semiconductor
material used in constructing it is cadmium sulphide (CdS).
In our project, the use of LDR is to determine whether its a day time or night time as in
darkness its resistance will be very high and as light falls on it resistance become smaller
and smaller. The LDR is a part of a voltage divider circuit in order to give an output
voltage
which changes with illumination. There are two ways of constructing the
voltage divider, with the LDR at the top as shown in the figure, or with the LDR at the
bottom as shown in the other figure.
3.13.1COMMON INTERFACING CIRCUIT OF A LDR
5V
V
R
LD
R
P
i
n
P
i
n
R
LDR
4
0
We investigated the behavior of these two circuits and found first figure sensible because
we wanted low output of LDR circuit as the input to the microcontroller and fixed the
resistor in a voltage divider circuit.
3.13.2LDR CHARACTERISTICS
The resistance value of the LDR is calculated by using a multi-meter as an ohm-meter
(Digital Multi Meter) is as follows:
1.
2.
3.
REGULATOR:
Table.3.15.1Features of LM7805
LM78XX Series:
3-Terminal 1A positive voltage regulators
Features:
1.
2.
3.
4.
5.
6.
Output current up to 1A
Output voltages of 5,6,8,9,10,12,15,18,24
Thermal overload protection
Short circuit protection
Output transistor safe operating area protection
Output voltage tolerance =
Chapter 4
SOFTWARE EXPLANATION
4.1 Proteus
Software development is the tools use to drive the PIC controller. High
level language such as C is chosen to be implemented in the project. For the
software development, a series of program will be created suit with the
requirement by the site. This project will require constructing the exact prototype
to show that this system can be executed in the real world. Before fabricating the
system, the circuit need to be design and tested. The simulation software, Proteus,
is use to simulate the hardware as in Figure 4.1
connection thus ease the jobs of connecting all the components in the circuit. This
software also helps the designer to design electronic circuit and simulate it before being
produce. This will help reducing the cost of fabrication and time for designing and
testing. Once the program and the hardware are functioning, then the exact hardware can
be constructing.
After the program and circuit has been tested, the Proteus is net-linked
with another software, Ares, to design the circuit that is needed for the next
development stage; hardware development. In software Ares, the circuit that have
been constructed in Proteus can be loaded and Ares will automatically design a
circuit as shown in Figure 4.1 (b).
section will elaborate the phases and steps involved in producing the
hardware.
PHASE 1: Circuit printing
The finished circuit can be printed on a special PCB sheet or
plastic. The toner (carbon-based) will be printed on the sheet as in Figure
Figure 4.2.(a): Circuit design printed on plastic sheet
After the circuit printed on the plastic sheet, the next step is to transfer the
design onto PCB. The process of transferring the circuit design onto the
PCB will need to use excessive heat, so a domestic iron will be use. The
processes are as follows:
Step 1: Place the printed sheet onto the PCB (make sure the side is
correct).
Step 2: Clip and secure the edges to avoid the sheet moving during later
steps. Then place the board under a thin fabric.
Step 3: The iron need to be heated up to high temperature.
Step 4: When the iron is ready, carefully and firmly press the iron onto the
area thoroughly. This will allow the toner to adhere on the copper.
Step 5: Leave the board for cooling down and after a few minutes take the
sheet off and the design will remain.
PHASE 2: Etching
After finish transferring the design onto the PCB, the next phase is
etching. Etching is a process of removing the unwanted part on the PCB.
In this case, the part that is wanted was the circuit diagram that already
being transferred on the board. Etching process will use a chemical
substant which need to be mixed in hot water. When the mixed substant is
ready, the PCB needs to be dipped into the mixture as shown in Figure 4.2.
PHASE 4: Soldering
What left to do is soldering all the components onto the PCB. The
steps are illustrates in Figure 4.2.6, Figure 4.2.7and Figure 4.2.8. Figure
4.2.9 shows the circuit designed using Ares to compare with the finish
product shown in Figure 4.2.6.
CUSTO
MER
o
Passing
ope
nin
g
loop
det
counter=0
ect
or
Yes
Passing
closing
loop detector
Counter = Counter
Yes
+1
||
Counter = Counter 1
LCD and
indicators
guiding
customer to the
respective
levels
Customer search
for vacant
parking.
Green = Vacant
Red =
Occupied
Yes
system
guiding
level
; after reach the respective level,
the customer will spot vacant
parking by looking at Green
light
;
thesensordetectsifv
ST
OP
the
o
Vehicle
ent
eri
ng
parking
slo
RED light turns
t?
to GREEN
the
ehicle is entering
the parking slot
; the light will turn
from RED to
GREENtoindicates
occupancy
4.4 IC Programming
One of the key factors in this project is the programming. To test whether
the programming is working or not, the programming needs to be encoded into the
integrated chip (IC) and test it virtually using Proteus. Although it is virtually
tested, the program needs to be loaded into the chip on every modification. Having
this feature, the program can be loaded without having the real chip for testing
purposes thus saving valuable time.
After verifying that the programming is working, finally the coding can be
loaded into the real IC. From PICC Compiler software, the data will be burnt into
the chip by first connecting the device burner to the communication port (com
port). This can be done by clicking the Program Chip tab and choose ICD. The
software will automatically detect the device. After the software detects it, then
load the file that is needed by browsing the file location and load the .PJT file.
After that click the program button and the coding will be burnt into the IC.
4.5. ATMega 8 Ide Tool
First of all we write our software in the 8051 ide assembler. Here we use 8051
assembler because we wrote our software in the assembly code. We assemble
these code in assembler and assembler after assemble the software convert into
hex code Now this hex code is transfer into the blank ic with the help of the serial
programmer. In the serial programmer we insert the blank ic on the ZIP socket
( blank ic socket) and select the particular ic in the assembler.
Atmel 8051
Programmer software
Figure.4.5.1
Figure.: 4.5.2
int x;
uint8_t y=0x00;
for (x=0;x<8;x++)
{
y=(1<<x);
if((PINA&y)==0)
{ count++;
}
}
If ((PINB&0x01)==0)
{ count++;
}
return count;
}
int freestagenum() {
int num;
num=0;
if( (PINA & 0x01)==0 || (PINA & 0x02)==0 || (PINA & 0x04)==0 ) {
num=1; return num;
}
if( (PINA & 0x08)==0 || (PINA & 0x10)==0 || (PINA & 0x20)==0 ) {
num=2; return num;
}
if( (PINA & 0x40)==0 || (PINA & 0x80)==0 || (PINB & 0x01)==0 )
{
break;
case 9: PORTC=0b01111011;
break;
default :
break;
}
}
void posrot(int n)
{
n=n*ROT;
while(n)
{
PORTD=0b00000001;
PORTD=0b00000010;
PORTD=0b00000100;
PORTD=0b00001000;
PORTD=0b00000001;
PORTD=0b00000000;
n=n-1;
}
}
void negrot(int n)
{
n=n*ROT;
while(n)
{
PORTD=0b0000100;
PORTD=0b00000010;
PORTD=0b00000001;
PORTD=0b00001000;
PORTD=0b00000010;
PORTD=0b00000000;
n=n-1;
}
}
void way03()
{
posrot(3);}
void way02()
{ posrot(2);}
void way01()
{ posrot(1);}
void way30()
{ negrot(3);}
void way20()
{ negrot(2);}
void way10()
{ negrot(1);}
void way12()
{ posrot(1);}
void way13()
{ posrot(2);}
void way31()
{ negrot(2);}
void way21()
{ negrot(1);}
void way23()
{ posrot(1);}
void way32()
{ negrot(1);}
void cust(){
int b;
b=freestagenum();
switch(b)
{
case 0:
break;
case 1:
way01();
way10();
break;
case 2:
way02();
way20();
break;
case 3:
way03();
way30();
break;
default:
break; } }
void travel3()
{
PORTD &= 0xEF;
way03();
PORTD |= 0x80;
while( (PINB & 0x20) != 0x20 )
if((PINB & 0x20) == 0x20)
{
PORTD &= 0x7F;
way30(); }
while((PINB & 0x20)== 0x20) }
void travel2()
{
PORTD &= 0xEF;
way02();
PORTD |= 0x40;
while((PINB & 0x20)!= 0x20)
if((PINB & 0x20)== 0x20)
{
a=check();
segdisplay(a);
if( ((PINB & 0x02)==0) && ((PINB & 0x04)==0) && ((PINB & 0x08)==0) &&
((PINB & 0x10
)==0) )
{
PORTD |= 0x10;
}
if( ((PINB & 0x02)==0x02) && ((PINB & 0x04)==0) && ((PINB & 0x08)==0) &&
((PINB &
0x10)==0))
{
travel0();
}
if( ((PINB & 0x02)==0) && ((PINB & 0x04)==0x04) && ((PINB & 0x08)==0) &&
((PINB &
0x10)==0))
{
travel1();
}
if( ((PINB & 0x02)==0) && ((PINB & 0x04)==0) && ((PINB & 0x08)==0x08) &&
((PINB &
0x10)==0))
{
travel2();
}
if( ((PINB & 0x02)==0) && ((PINB & 0x04)==0) && ((PINB & 0x08)==0) &&
((PINB & 0x10
)==0x10))
{
travel3();
}
if( ((PINB & 0x02)==0x02) && ((PINB & 0x04)==0x04) && ((PINB & 0x08)==0)
&& ((PINB &
0x10)==0))
{
travel1();
_delay_ms(1000);
travel0();
}
if( ((PINB & 0x02)==0x02) && ((PINB & 0x04)==0) && ((PINB & 0x08)==0x08)
&& ((PINB &
0x10)==0))
{
travel2();
_delay_ms(1000);
travel0(); }
if( ((PINB & 0x02)==0x02) && ((PINB & 0x04)==0) && ((PINB & 0x08)==0) &&
((PINB &
0x10)==0x10))
{
travel3();
_delay_ms(1000);
travel0(); }
if( ((PINB & 0x02)==0) && ((PINB & 0x04)==0) && ((PINB & 0x08)==0x08) &&
((PINB &
0x10)==0x10))
{
travel2();
travel3(); }
if( ((PINB & 0x02)==0) && ((PINB & 0x04)==0x04) && ((PINB & 0x08)==0) &&
((PINB &
0x10)==0x10))
{
travel1();
travel3(); }
if( ((PINB & 0x02)==0) && ((PINB & 0x04)==0x04) && ((PINB & 0x08)==0x08)
&& ((PINB &
0x10)==0))
{
travel1();
travel2(); }
if( ((PINB & 0x02)==0) && ((PINB & 0x04)==0x04) && ((PINB & 0x08)==0x08)
&& ((PINB &
0x10)==0x10))
{
travel3();
travel2();
travel1(); }
if( ((PINB & 0x02)==0x02) && ((PINB & 0x04)==0) && ((PINB & 0x08)==0x08)
&& ((PINB &
0x10)==0x10))
{
travel3();
travel2();
cust(); }
if( ((PINB & 0x02)==0x02) && ((PINB & 0x04)==0x04) && ((PINB & 0x08)==0)
&& ((PINB &
0x10)==0x10))
{
travel3();
travel1();
cust(); }
if( ((PINB & 0x02)==0x02) && ((PINB & 0x04)==0x04) && ((PINB &
0x08)==0x08) && ((PINB
& 0x10)==0))
{
travel2();
travel1();
cust(); }
if( ((PINB & 0x02)==0x02) && ((PINB & 0x04)==0x04) && ((PINB &
0x08)==0x08) && ((PINB
& 0x10)==0x10))
{
travel3();
travel2();
travel1();
cust(); }
}}}
CHAPTER--5
RESULT AND DISCUSSION
This chapter provides the result and discussion to provide a thoroughly
information about the execution result of the proposed project. The outcome of
this project will also be discussed to evaluate the relevant of the implementation of
this project.
5.1 Guided System Perspective
The following experimental results define the efficacy and feasibility of
the proposed Informative Parking System with Microcontroller Interfacing
(IPSMI) in a time-worth and cost-effective way. The results evaluate the
effectiveness of guided policy in terms of following perspective:
5.1.1
two methods of finding a vacant parking space. One is through blind searching
and another one is through guided-system. The average driving distance under
blind search method which illustrate by Line 1 has the worst outcome, especially
during the peak hours. It is because without knowing the exact location of a vacant
parking, the users tend to wandering around the parking area and thus resulting to
wasting time and gas in the attempt. The situation might get worst if there are a lot
of vehicle using the same method. On the other hand, the guided system method
which represented by Line 2 has the best result compared to blind search because
by using this method, the user have the higher rate of probability to find a vacant
space.
L
L
i
n
e
2
i
n
e
1
Wave 2
Wave 3
WaveSignals
4
Figure 5.1.(c):
for input and output value with respect to the clock input
condition. It means, at this moment, there is no vehicle entering the parking space
yet. As you can see, all the parking lot from PA PD are vacant with green light
indication. There is also a green light indicator at every level entrance that shows
that particular level still has vacant parking. The counter will show the amount of
vacant space left at the level entrance. As referring to Figure 4.2 (a) and Figure 4.2
(b), this parking premise has four levels with four parking spaces at every level, so
the counter will show four (4) to indicate there are four vacant parking on that
level. By this, people will know exactly how much vacant parking still available at
the respectiive level.
At the initial state, the LCD will display welcoming note. These LCDs will
be mounted at every ramp to guide people until they find their parking space. The
LCD will show the real-time event and always updating the status of the level.
Figure 5.2.3: Condition after several vehicles entering the parking lot
CHAPTER 6
This chapter will conclude all the findings and analysis to evaluate the
overall outcome of this project implementation. It will also describe about the
future planning towards improving the system.
6.1 Conclusion
I would like to conclude this project as a very great and enriching experience.
During the project labs I familiarized myself with P.C.B designing, application of I.C.
(its pin diagram), mounting of components using soldering process and interfacing
of the hardware circuit with the computer. The circuit can be used at all places
starting from domestic to the industrial sectors. The simplicity in the usage of this
circuit helps it to be used by a large number of people as people with less
knowledge of hardware can also use it without facing any problem. TheI also
learned about the engineering. Responsibility and about their hard work. This
project was not only good for personality development but also great in terms of
imparting practical knowledge.Thus I conclude our project with a very nice and
wonderful experience With a push towards solving the problem facing by people,
a new prototype of Informative Parking System with Microcontroller Interfacing
(IPSMI) has been developed to optimize parking management. The proposed
project is the solution system for the parking difficulties faced by people for such
a long time. The implementation of a system which integrates with the
programmable integrated chip (PIC) technology will consume lesser cost for
producing the product because the input and output ports are able to handle more
devices. At the same time, the system can also reduce the time of searching for
vacant parking. When the main objective being accomplished it is believed that
the user as well as the management will gain the benefits. Upon the completion of
the project, the knowledge on how the PIC works after being programmed can be
understood
For future enhancements, this project can be integrated with the Field Programmable
Logic Array (FPGA) which is able to rectify the problems and troubleshoot it without
having to come to the site. It means, the administrator can monitor the status of the
parking area by using only software. Besides that, the IPSMI can also be using the
Fuzzy Logic algorithm so it will be an intelligent system that can automatically reserve a
space as soon as the user takes the parking ticket. This intelligent system will be able to
detect the ticket and guide the user to their special reserved parking space.
7. Reference
1.www.google.com
2.www.wikipedia.com
Datasheet we referred:
1.Fairchild semiconductor/1N4001-1N4007 general purpose rectifiers
2.Fairchild semiconductor/LM78XX 3-terminal 1A positive voltage regulator
3.Atmel/ATmega8
Books we referred:
1.Analog Electronics, L.K Maheshwari, M.M.S Anand, Prentice-Hall of india pvt.
Ltd., Third edition,
2. Digital Design, M.Morris Mano, Prentice-Hall of india pvt. Ltd., Third edition,
3. Electronic devices and circuits- S.Salivahanan, N.Suresh Kumar, A.Vallavaraj, 2nd
edition, 2008.