Parking Spot Status - IoT

by akshayfrozentree in Circuits > Arduino

9174 Views, 78 Favorites, 0 Comments

Parking Spot Status - IoT

IMG_20160417_025225.jpg

We all have been there. Not finding a parking spot for your car. So we came up with a project to find vacant parking spots using sensors. We tried to achieve the same goals using IoT, we did. The sensors used were increased and so was the difficulty. However this instructable gives you all the required files and how to use them accordingly.

Contributor: Pranavchendur T K ( https://tkpc.in ), Gokulnath

Hardware and Softwares Required

IMG_20160416_221442.jpg

1) Arduino Uno

2) Ultrasonic sensors HC-SR04

3) Jumper wires

4) LEDs

5) Arduino software

6) Breadboard

7) Processing (software)

8) A php instance

Setting Up Hardware

IMG_20160417_024502.jpg
hc-sro4_esq.jpg

The arduino and the ultrasonic sensor HC-SR04 is connected as shown in the diagram. The coding part for 'em is done using arduino software. You can find the files here. The number of sensors that can be integrated is left upto you. Use this as a template for it.

Getting Connected

IMG_20160417_024314.jpg
IMG_20160417_024356.jpg

We use Processing software since this is a prototype. This takes out a piece of hardware out of the list. IT collects the sensor data from the arduino and push it through HTTP requests to the server. We implement this by running the code on a computer to which the arduino is connected on a specified COM port. Use the attached sketch for implementing your processing application.

Spinning Up the Server

Screenshot_2016-04-17-02-46-20-530.jpeg
Screenshot_2016-04-17-02-46-38-955.jpeg

We use PHP to handle the request from the arduino sensors. We use AJAX to update the status page in real time. The attached code can be deployed to a PHP instance to power up your setup.

Downloads

Testing

IMG_20160417_024810.jpg
IMG_20160417_024952.jpg
IMG_20160417_024445.jpg

When you are finally set up, run a few hit and trial runs to find out bugs if any. The output from the sensor should be updated lively to any website that you used for the process. Both cases of outputs are shown in these images.