How to make Smart Car Parking System Using Arduino I 2017|
code and diagram: https://drive.google.com/open?id=1UlyCtURcn8_o0G0za5psyh0pK2PNyrNw
Objective:
Enhance the security with simplifying parking system. The Smart system that parks a number of vehicles with the least space possible.
Motivation:
The main motivation of our system is to decrease the traffic which occurs due to unavailability of parking space. Due to increasing population, the purchase of automobiles has increased which leads to traffic accumulation. To reduce these factors we have introduced Smart Parking System.
Full Project Description:
Here In this project we used the following components:
1. Arduino UNO R3
2. RC Micro Servo
3. sonar sensor
4. LCD1602
5. Mini breadboard
6. Cable jumpers
7. Tother material for making parking lot.
Here in this project, we used two sonar sensor. One for when cars entering in the parking lot and another for when a car exiting the parking lot. This project is for 6 parking space parking lot. If we want we can change the parking space number in the code. When any car enters the parking lot the counter will increase and it will increase up to as our capacity is 6.When any car exit from the parking lot the counter will decrease. If the parking lot is full we cannot enter into the parking lot.
Block Diagram:
Photograph:
Future Development:
Youtube link:
Code and discussion :
https://youtu.be/eg6mB-0AlvM
Here we include the LiquidCrystal.h and Servo.h to run lcd and servo motor.
Here we define some pin at 7,6,4,5 and led pin at 13.
For servo:
Here we attach the servo at pin 9 using attach() method. Here we take the angle as 120 for the servo. And move our bar using the servo with myservo.write().
For sonar sensor:
Here we take two variable duration and distance for working with sonar sensor.Here we calculate the duration the pulseIn() method. And calculate the distance using microsecondsToCentimeters() method.Here the calculate the distance within 10 Centimeters.
For lcd Display:
We create an object lcd in the pin A0, A1, A2, A3, A4, A5.To work with lcd we used lcd.begin() method. To display our message we use lcd.print() method. To set our cursor in the display we used lcd.setCursor method.