Parking Spot Status Indicator

5.9K7914

Intro: Parking Spot Status Indicator

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 )

STEP 1: Materials Required

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

STEP 2: Putting the Things Together

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.

STEP 3: Coding

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

STEP 4: Testing

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.

12 Comments

error in the code : ultrasonic class has no member named timing

HELP AYUDA PLEASE

Arduino: 1.5.8 (Windows 8), Placa:"Arduino Uno" sketch_jun08a.ino: In function 'void loop()': sketch_jun08a.ino:24:24: error: 'class Ultrasonic' has no member named 'ti sketch_jun08a.ino:25:24: error: 'class Ultrasonic' has no member named 'conv sketch_jun08a.ino:25:43: error: 'CM1' is not a member of 'Ultrasonic' sketch_jun08a.ino:27:25: error: 'class Ultrasonic' has no member named 'timing' sketch_jun08a.ino:28:25: error: 'class Ultrasonic' has no member named 'convert' sketch_jun08a.ino:28:44: error: 'CM1' is not a member of 'Ultrasonic' Error de compilaciĆ³n This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.

i have a problem where adruino repeatedly gives error as

'class Ultrasonic' has no member named 'Convert'

please can u help

Have you added ultrasonic library for to your library directory? You can simply get it online. I hope that's the error holding you back.

i had already added that although .convert didn't helped yet i was able to make my way through the .ranging function btw the project really helped ..thanks a lot mate...

Were you thinking of installing this by the street in front of your house to see if your spot is open?

We made this for a makeathon event at my college. The idea was that it could be incorporated in mall's parking lots to see which slot is vacant and occupied. What we made was a small prototype to demonstrate the possibility, but that would also be a way to use it in real life