Professional Documents
Culture Documents
1. Introduction
2. Flow diagram
i. Connecting the sensors.
ii. Connecting to Microcontroller through Amplifier circuit
iii. Overall Connection.
3. Description of hardware and its configuration
i. Transmitter-Receiver Sensor
ii. Amplifying circuit
iii. AT89C51
iv. LCD
4. Schematic Connections
5. Proposed hardware implementation of the Project
6. Conclusion
References
CHAPTER 1
INTRODUCTION
If we take a look at the present world scenario, there is a crucial necessity for
saving the parking space in big companies, apartments etc.
More and more multi-storey buildings are springing up everyday, thus giving rise
to parking problems. Thus there is a shortage of land which leads to cutting down
of trees and deforestation. This has a harsh and adverse effect on the
environment.This project aims at saving the ground space required for parking.
Using this system any number of cars can be parked according to the requirement,
in floors one above the other. Thus, in a space where only 10 cars could be parked,
earlier, we can park 20/30/40cars, depending on the number of floors used.
This could really solve the space unavailability problems that we all are facing
by allowing floor by floor parking.
Facilities such as reserved parking can also be provided for those whose are regular
visitors to that place like the employers of that company office.
The main objective of this system is to optimize the ground space available, for
parking. In places where more than 100 cars need to be parked, this system proves
to be very useful.
Automatic Car Parking System enables the parking of vehicles, floor after floor, by
displaying the available slots thus reducing the ground space used. Here any
number of cars can be parked according to the requirement, making the system
modernized and a space-saving one.
CHAPTER 2
FLOW DIAGRAM
AMPLIFIER CIRCUIT
The amplifier circuit amplifies the signal received by the IR pair. The
microcontroller needs 4-5 volts to respond to a signal. This is achieved by the
amplifier circuit. It is a simple connection of transistor in Common emitter
4
connection. The circuit amplifies the received signal which is of order V to 4-5
volts.
MICROCONTROLLER CIRCUIT:
The microcontroller is embedded with a C program. It is designed in such a way
that whenever it receives the signal from amplifier circuit it displays the filled and
vacant slots in the LCD and LED panels.
DISPLAY UNIT:
The display unit used in the project is LED panel and 16 x 2 LCD. It displays the
filled and vacant slots in the arena through the microcontroller. It is controlled by
AT89C51 microcontroller.
CHAPTER 3
DESCRIPTION OF HARDWARE
Types
A self-contained photoelectric sensor contains the optics, along with the
electronics. It requires only a power source. The sensor performs its own
modulation, demodulation, amplification, and output switching. Some selfcontained sensors provide such options as built-in control timers or counters.
Because of technological progress, self-contained photoelectric sensors have
become increasingly smaller.
Remote photoelectric sensors used for remote sensing contain only the optical
components of a sensor. The circuitry for power input, amplification, and output
switching are located elsewhere, typically in a control panel. This allows the
sensor, itself, to be very small. Also, the controls for the sensor are more
accessible, since they may be bigger.
When space is restricted or the environment too hostile even for remote sensors,
fiber optics may be used. Fiber optics are passive mechanical sensing components.
They may be used with either remote or self-contained sensors. They have no
electrical circuitry and no moving parts, and can safely pipe light into and out of
hostile environments.
Sensing Modes
An opposed (through beam) arrangement consists of a receiver located within the
line-of-sight of the transmitter. In this mode, an object is detected when the light
beam is blocked from getting to the receiver from the transmitter.A retroreflective
arrangement places the transmitter and receiver at the same location and uses a
reflector to bounce the light beam back from the transmitter to the receiver. An
object is sensed when the beam is interrupted and fails to reach the receiver. A
used) arrangement is one in which the transmitted radiation must
reflect off the object in order to reach the receiver. In this mode, an object is
detected when the receiver sees the transmitted source rather than when it fails to
see it. Some photoeyes have two different operational types, light operate and dark
operate. Light operate photoeyes become operational when the receiver "receives"
the transmitter signal. Dark operate photoeyes become operational when the
receiver "does not receive" the transmitter signal.
The detecting range of a photoelectric sensor is its "field of view", or the maximum
distance the sensor can retrieve information from, minus the minimum distance. A
minimum detectable object is the smallest object the sensor can detect. More
accurate sensors can often have minimum detectable objects of minuscule size.
AMPLIFYING CIRCUIT
MICROCONTROLLER - AT89C51
The 8051 microcontroller generic part number actually includes a whole family of
microcontrollers that have numbers ranging from 8031 to 8751.
The block diagram of the 8051 shows all of the features unique to
microcontrollers:
1. Internal ROM and RAM
2. I/O ports with programmable pins
3. Timers and counters
4. Serial data communication
The block diagram also shows the usual CPU components program counter, ALU,
working
registers, and the clock circuits.
The 8051 architecture consists of these specific features:
10
LCD
(LIQUID CRYSTAL DISPLAY)
DESCRIPTION:
LCD is flexible controller and can be used with 8 bit or 4 bit. Micro
controller using the data and control lines Micro controller displays selected item
and other calculated results on its screen.
11
12
PIN DIAGRAM:
13
PIN DESCRIPTION:
As you would probably guess from this description, the interface is a parallel
bus, allowing simple and fast reading/writing of data to and from the LCD.
Above is the quite simple schematic pin diagram. The LCD panel's Enable
and Register Select is connected to the Control Port. The Control Port is an open
Pins
Description
Ground
Vcc
Contrast Voltage
"E" Clock
7 - 14
collector / open drain output. While most Parallel Ports have internal pull-up
resistors, there are a few which don't. Therefore by incorporating the two 10K
external pull up resistors, the circuit is more portable for a wider range of
computers, some of which may have no internal pull up resistors.
14
We make no effort to place the Data bus into reverse direction. Therefore
we hard wire the R/W line of the LCD panel, into write mode. This will cause no
bus conflicts on the data lines. As a result we cannot read back the LCD's internal
Busy Flag, which tells us if the LCD has accepted and finished processing the last
instruction. This problem is overcome by inserting known delays into our program.
The 10k Potentiometer controls the contrast of the LCD panel. Nothing fancy here.
You can use a bench power supply set to 5v or use a onboard +5 regulator.
The 2 line x 16 character LCD modules are available from a wide range of
manufacturers and should all be compatible with the HD44780. The diagram to the
right, shows the pin numbers for these devices. When viewed from the front, the
left pin is pin 14 and the right pin is pin 1.
LCDs can be added quite easily to an application and use as few as three
digital output pins for control. As for cost, LCDs can be often pulled out of old
devices or found in surplus stores for less than a dollar. The most common
connector used for the 44780-based LCDs is 14 pins in a row, with pin centers
0.100" apart.
15
either an instruction is being sent to the LCD or the execution status of the last
instruction is read back (whether or not it has completed).
The different instructions available for use with the 44780 are shown in the
table below:
R/S R/W D7 D6 D5 D4 D3 D2 D1 D0 Instruction/Description
4
14 13 12 11 10 9
Pins
Clear Display
D C B Enable Display/Cursor
SC RL *
DL N F
BF *
D D D D D D D D
17
D D D D D D D D
18
19
3. Write 0x030 to LCD and wait 160 usecs for instruction to complete
4. Write 0x030 AGAIN to LCD and wait 160 usecs or Poll the Busy Flag
5. Set the Operating Characteristics of the LCD
Write "Set Interface Length"
Write 0x010 to turn off the Display
Write 0x001 to Clear the Display
Write "Set Cursor Move Direction" Setting Cursor Behavior Bits
Write "Enable Display/Cursor" & enable Display and Optional Cursor
In describing how the LCD should be initialized in four bit mode, will
specify writing to the LCD in terms of nibbles. This is because initially, just single
nibbles are sent (and not two, which make up a byte and a full instruction). As
mentioned above, when a byte is sent, the high nibble is sent before the low nibble
and the "E" pin is toggled each time four bits is sent to the LCD. To initialize in
four bit mode:
1. Wait more than 15 msecs after power is applied.
2. Write 0x03 to LCD and wait 5 msecs for the instruction to
complete
3. Write 0x03 to LCD and wait 160 usecs for instruction to
complete
4. Write 0x03 AGAIN to LCD and wait 160 usecs (or poll the
Busy Flag)
5. Set the Operating Characteristics of the LCD
6. Write 0x02 to the LCD to Enable Four Bit Mode
All following instruction/Data Writes require two nibble writes:
20
21
between the areas of the display used by the two devices. The actual pin outs and
character addresses for this type of display can vary between manufacturers and
display part numbers.
moved one character to the right. The "Clear Display" and "Return Cursor and
LCD to Home Position" instructions are used to reset the Cursor's position to the
top right character on the display.
To move the Cursor, the "Move Cursor to Display" instruction is used. For
this instruction, bit 7 of the instruction byte is set with the remaining seven bits
used as the address of the character on the LCD the cursor is to move to. These
seven bits provide 128 addresses, which matches the maximum number of LCD
character addresses available. The table above should be used to determine the
address of a character offset on a particular line of an LCD display.
The last aspect of the LCD to discuss is how to specify a contrast voltage to
the Display. I typically use a potentiometer wired as a voltage divider. This will
provide an easily variable voltage between Ground and Vcc, which will be used to
specify the contrast (or "darkness") of the characters on the LCD screen. You may
find that different LCDs work differently with lower voltages providing darker
characters in some and higher voltages do the same thing in others.
There are a variety of different ways of wiring up an LCD. Above, I noted
that the 44780 could interface with four or eight bits. To simplify the demands in
microcontrollers, a shift register is often used (as is shown in the diagram below) to
23
reduce
the
number
of
I/O
pins
to
three.
24
25
26
CHAPTER 5
SCHEMATIC CONNECTIONS
The connections are made in Proteus software. The C file id first compiled in Keil
Software and a hex file is created from Keil. The Hex file is embedded in the
microcontroller in the simulation work and also virtually. In the proteus circuit the
sensors and an array of LED s. Once the circuit is tested through simulation, a PCB
layout is done using EAGLE software. EAGLE stands for Easily Applicable
Graphical Layout Editor.
27
28
CHAPTER 6
PROPOSED HARDWARE IMPLEMENTATION
29
CHAPTER 7
CONCLUSION AND SCOPE OF FUTURE
30
REFERENCES
Microcontrollers by Masjidi
www.wikipedia.com/8051
www.wikipedia.com/photo_electric_sensors
www.google.com/eagle_software
www.isis.com/proteus
31