Digital Design: Design and Implementation of Car Parking System On VHDL
Digital Design: Design and Implementation of Car Parking System On VHDL
DIGITAL DESIGN
Design and Implementation of Car
Parking System on VHDL
Instructor Lê Hải Sâm
Student name: Nguyễn Mạnh Cường
Class: CTTT CĐT K61
Student ID: 20160561
1. Introduction
In this project, I will implementation a public park with following requirement:
- Number of slots: 4 (I used only 4 slots for easy to simulation)
- Number of entry gates: 1
- Number of exit gates: 1
- Car dimension limitation (Max length – width – height): 6.7 – 2.7 – 2.5 m
Base on given requirement, a digital system was designed to count empty slot that
remain in the park and display the information through a 7 segment Led.
- By using IR sensor, when car come closely to the entry gate barrier, sensor can
detect the car after that whenever empty slots are available, servo motor will be
active and open the gate.
- When the car is going through the gate, another sensor will detect, counter will
plus one and recalculate and display the empty slot through a LCD display and
close the gate.
- In case, there is a car go out of the park the counter will minus one and
recalculate the empty slots and display on the LCD. If none of available slot
remains, the gate will be not opened.
- In each slots of the park, there is one sensor to check that whether this slot is
available or not.
The park is description as below picture with one exit gate and one entry gate. At
each gate, there are two IR sensor, one is setup at the front of the gate, the other is
at the back of the gate.
- 1: Entry_front sensor
- 2: Entry_back sensor
- 3: Exit_back sensor
- 4: Exit_front sensor
2. Finite state machine diagram
This module receives 4 bits signal from parking_counter and decoder into 7
bits signal to control 7 segments led.
Name I/O
No Function
of
bits
Clk In 1 Rising edge of clk signal to implement order of
module
reset in 1 Restart signal set all system to initial
configuration
Motor_entry In 1 Input signal of enable signal to control motor
Motor_entry Out 1 Output signal which form of PWM signal to
_output control position of servo motor
4. External component
4.1. 7 segments led