Vous êtes sur la page 1sur 3

Problem Statement:

Design a system to control an automatically operated car park.

Hardware Used:
1. IR sensors
2. LEDs
3. 7 segment display
4. DC motor
5. Card authentication system

Assumption:
1. Parking lot is meant only for people with authorized card
2. This is only a 4-wheeler parking
3. Parking lot assumed to be a small just for experiment purpose with capability to
fill only 4 cars.

Block Diagram:

Algorithm:
 Free slot available algorithm
1. Detect slot 1 is available using IR sensor. If vehicle is already parked
in the slot 1 then display slot 1 is full.
2. Check step 1 for all remaining slot available in parking.
3. If all slots are full then do not allow vehicle for card authorization.
 Get card details
1. System wait for card detect.
2. Check if card was already swiped by checking database in the system
if no then follow below method:
1. Once card is detected then all information of the person.
 Name
 Vehicle number
 Balance
2. Do card authorization and checking in secure domain. Such as
balance available in the card, card expiry date and accordingly
authorize the card and allow car to enter.
3. Save card detail along with timestamp in fixed area in RAM after
authorization that system will consume these details for further
processing and mark card is swiped.
3. Check if card was already swiped by checking database in the system
if Yes then follow below method:
1. This indicates car is exiting from parking
2. Get current timestamp and previous timestamp from the
database and calculate duration of the car in parking
3. Send that duration to the Card monitoring system to take
follow-up action to deduct certain amount from the card.

Flow chart:
Flow chart to get free slot in available parking (considering miniature parking slot
[4 parking available])

Code flow:
Please find attached text file for the code.

Further improvement:
1. Code can be extended for more parking slots by improving the logic.
2. Card monitoring system can be used to authenticate card and do the logic as
mentioned in the code flow.
3. Further display information can be provided with details matrix (car no. its
location, free slots)
4. Improved display can give proper rich display of car information present in
car parking
5. Car parking lights can be managed depend upon car entry in the slot as
below:
a. Once car occupied switch on the light
b. Empty car slots lights should be switched off
This improved overall power consumption in the parking slots.

Vous aimerez peut-être aussi