Arduino Automated Car Parking System PDF
Arduino Automated Car Parking System PDF
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
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.
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
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!!
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);
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
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.