Parking Spot Status Indicator

by akshayfrozentree in Circuits > Arduino

6046 Views, 79 Favorites, 0 Comments

Parking Spot Status Indicator

IMG_20160416_221442.jpg

In a busy city, we commute a lot. And if we choose a car as our mode of transport, finding a parking spot become quite a challenge. This is a prototype for a parking spot status indicator. This would make a good science project for the tech and skills required is nothing more than to program an obstacle detector.

Contributors:

Pranavchendur T K ( https://tkpc.in )

Materials Required

IMG_20160416_192102.jpg
IMG_20160416_192054.jpg
IMG_20160416_220502.jpg

1) Arduino UNO

2) Ultrasonic sensor - HC-SR04

3) Breadboard

4) Jumper wires

5) LEDs optional

You will also need the open source arduino software. You can download it using this link : https://www.arduino.cc/en/Main/Software

Putting the Things Together

hc-sro4_esq.jpg
IMG_20160416_205728.jpg

1) Connect VCC and GND slots from the arduino board to the breadboard using jumper wires

2)The ultrasonic sensor has four pins denoted by VCC, Trig, Echo and GND

3) Connect VCC and GND to 5V supply and ground respectively

4) Connect the trig pin to pin 6 and echo to pin 7 in the arduino board

5) Do the same with another sensor with its trig connected to 3 and echo connected to 4 in the arduino board.

6) Connect two leds with their positive to 13 and 10 and their negatives to the ground.

Coding

IMG_20160416_205846.jpg
IMG_20160416_205748.jpg

Compile the following code in the file attached below (usonic.ino) into the arduino

Downloads

Testing

IMG_20160416_221442.jpg
IMG_20160416_221705.jpg

Now if no object is placed before your sensors, both leds will glow, denoting that spot is available to be parked. If you place an object, for instance, a toy car before any one of your sensor that corresponding led will switch off, showing that it is occupied. This project would take less than an hour to build and execute with all the components, and could be a good small scale project for kids.