0% found this document useful (0 votes)
232 views7 pages

Arduino Automated Car Parking System PDF

This document describes how to build an Arduino automated car parking system. The system uses infrared proximity sensors to detect when a car arrives and the occupancy of two parking slots. It then displays the available slots on a homemade LED sign and opens the gate. If both slots are full, it flashes a red LED and keeps the gate closed. The circuit connects the sensors and servo motor that operates the gate to an Arduino board. Code uploaded to the Arduino controls the logic and outputs.

Uploaded by

numaionel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
232 views7 pages

Arduino Automated Car Parking System PDF

This document describes how to build an Arduino automated car parking system. The system uses infrared proximity sensors to detect when a car arrives and the occupancy of two parking slots. It then displays the available slots on a homemade LED sign and opens the gate. If both slots are full, it flashes a red LED and keeps the gate closed. The circuit connects the sensors and servo motor that operates the gate to an Arduino board. Code uploaded to the Arduino controls the logic and outputs.

Uploaded by

numaionel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

instructables

Arduino Automated Car Parking System.

by Ashraf Minhaj

An Arduino Automated Car Parking System that is too Watch the video for the full tutorial.
easy and too fun to make. When a car arrives it shows
the number of empty slots (if available) and then Note: you can use display instead of my hand made
opens the gate. if there is not any empty slot then the led sign display.
gate does not open. Am a z ing t hing is t ha t t he
w ho le pro je ct ca n jus t be PO W ERED us ing a Now lets get started.
PO W ER BANK!!

https://www.youtube.com/watch?v=PvrpTBga60s&t=16s

Step 1: Parts

Arduino - any board


Inf ra re d proxim m it y s e ns o r (pic 2 & 3 - both are functional)
330 r re s is t o r
some LED 's
S e rv o m o t o r - any model or size you wish.

Buy electronic components at utsource.net

Arduino Automated Car Parking System.: Page 1


Step 2: Making the LED Display

To make this LED dis pla y I have used a piece of bredboard then soldered the LED's and the 330r resistor. Then
just added a ribbon cable for nice nish.

NOTE: I soldered the resistors on back so that they cant be seen from front to make the display .

It would be better if you use LCD display or cheap OLED display instead of this. I had not any,so I made this.

Arduino Automated Car Parking System.: Page 2


Step 3: Making the Parking Garage

To make this I have used a card board box then cut it will use the usb cable of arduino to power the whole
to make a nice slope. Then added a piece of cardboard project cut some area of the box to access to that
on to the servo motor and hot glued it. Added one port.
sensor on the entrance and another on each SLOT.
Then hot glued two chopsticks with the display we Don't forget to paint it a little bit.
have made and glue it to the box. And of course as we

Arduino Automated Car Parking System.: Page 3


Step 4: The Circuit

It looks a bit mess for the LED's but tell you what, this Let me explain you. Power banks usually supplies 5v
is really very much simple circuit. 1Amp current which is input to arduino via the usb
cable, now there is a voltage regulator on arduino
NO T E: Proximity sensors use 5v to operate so you can which gives .5Amp to the board. By connecting to VIN
just connect them to 5v source of arduino. we are actually accessing the power from the power
bank without an breadboard. This works and safe.
But what theee!! whay has he connected servo to VIN!!

Arduino Automated Car Parking System.: Page 4


Step 5: The Code

Upload the following code to the arduino

download code https://github.com/ashraf-minhaj/Automated-Parking...

or copy from below

/*Automated Parking Garage by Ashraf Minhaj. www.youtube.com/c/fusebatti


* for any query please mail me at [email protected]*/

#include //adding Servo library


Servo gate; //you may open or close gate using a Servo motor
int slot1 = 5; //Connect IR sensor on digital pin5 for sLOT 1
int slot2 = 4; //sLot2 pin on digital 4
int gateSensor = 3; //IR sensor on gate to arduino pin 3
int slot1_l = 13;
int slot2_l = 12;
int gate_grn = 11;
int gate_red = 10;

void setup()
{
gate.attach(7); //connecting the gate servo on pin 5
pinMode(slot1,INPUT); //setting slot pins & gate IR sensor as input to arduino
pinMode(slot2,INPUT);
pinMode(gateSensor,INPUT);
pinMode(slot1_l,OUTPUT);
pinMode(slot2_l,OUTPUT);
pinMode(gate_grn,OUTPUT);
pinMode(gate_red,OUTPUT);
Serial.begin(9600); //initialzing Serial monitor

void loop()
{
//the car arrives and sensor goes LOW

if( !(digitalRead(gateSensor)) && digitalRead(slot1) && digitalRead(slot2)) //slot1 & slot2 empty
{
Serial.println("Welcome, Available: sLOT1, sLOT2"); //print slot1 and slo2 available
digitalWrite(slot1_l,HIGH);
digitalWrite(slot2_l,HIGH);
delay(1000);
digitalWrite(gate_grn,HIGH);

gate.write(75); //gate will open after the dealy of 1 second

Arduino Automated Car Parking System.: Page 5


}

if( !(digitalRead(gateSensor)) && !(digitalRead(slot1)) && digitalRead(slot2)) //car on slot1,slot2 free


{
Serial.println("Welcome, Available: sLOT2"); // slo2 available
digitalWrite(slot1_l,LOW);
digitalWrite(slot2_l,HIGH);
delay(1000);
digitalWrite(gate_grn,HIGH);
gate.write(75); //gate will open after the dealy of 1 second
}

if( !(digitalRead(gateSensor)) && digitalRead(slot1) && !(digitalRead(slot2))) //car on slot2,slot1 free


{
Serial.println("Welcome, Available: sLOT1"); // slo1 available
digitalWrite(slot1_l,HIGH);
digitalWrite(slot2_l,LOW);
delay(1000);
digitalWrite(gate_grn,HIGH);
gate.write(75);
delay(100); //gate will open after the dealy of 1 second
}

if( !(digitalRead(gateSensor)) && !(digitalRead(slot1)) && !(digitalRead(slot2)))


{
Serial.println("Welcome, Parking Full");// No slot available
digitalWrite(slot1_l,LOW);
digitalWrite(slot2_l,LOW);
delay(1000);
digitalWrite(gate_red,HIGH);
delay(100);
digitalWrite(gate_red,LOW);
delay(100);
digitalWrite(gate_red,HIGH);
delay(100);
digitalWrite(gate_red,LOW);

if( digitalRead(gateSensor))
{ Serial.println("Welcome"); // slo2 available
gate.write(5); //gate close
digitalWrite(slot1_l,LOW);
digitalWrite(slot2_l,LOW);
digitalWrite(gate_red,LOW);
digitalWrite(gate_grn,HIGH);
delay(100);
digitalWrite(gate_grn,LOW);
delay(100);

Step 6: Finished

Arduino Automated Car Parking System.: Page 6


Now power the project using a USB cable to arduino
and have fun.

Let me know how you are thinking to upgrade this


and why.
//www.yout ube.com/embed/CdclcoZlOCw

Thank you.

//www.yout ube.com/embed/PvrpTBga60s

I have some issues with my mechatronics related project. Need your help. Plz revert back asap.
Waiting for your reply.
I guess I'm late...

how can one ground wire of led can be connected to three different spots??

Ground wires are common in any circuit. No matter how many batteries you use (of same or
different voltage and ampH) you still have to common the Ground. Basic Electronics.
IN coding there is error of gate was not scope

This is not supposed to be showed. Do not copy the code. Pleas download from github.

Arduino Automated Car Parking System.: Page 7

You might also like