fbpx

This is a DIY parking assistant . It can be easily installed in any regular car . It will help the driver to park his car in most packed places . This parking assistant consist of an output led panel which will show a top overview of the car . So when the driver is parking his car and in case if the car is going to hit the wall then the assistant will detect it immediately with the help of the sensors . The part which is VERY close to the obstacle will be shown red in the panel with the help of led lights and a buzzer will start making noise .This way driver can easily park his car in packed places like mall , side roads etc. it will also be helpful to beginners for parking their car

Car PARKING ASSISTANT

Circuit Diagram

Structure

Panel with respect to obstacle

Code

const int pingPin1 = 7;

const int echoPin1 = 6;

const int pingPin2 = 4;

const int echoPin2 = 5;

const int pingPin3 = 3;

const int echoPin3 = 2;

void setup()

{

Serial.begin(9600);

pinMode(13, OUTPUT);

pinMode(12, OUTPUT);

pinMode(11, OUTPUT);

pinMode(10, OUTPUT);

}

void loop()

{

long duration1,duration2,duration3;

float dist1,dist2,dist3;

pinMode(pingPin1, OUTPUT);

digitalWrite(pingPin1, LOW);

delayMicroseconds(2);

digitalWrite(pingPin1, HIGH);

delayMicroseconds(10);

digitalWrite(pingPin1, LOW);

pinMode(echoPin1, INPUT);

duration1 = pulseIn(echoPin1, HIGH);

dist1 = 345*duration1/20000;

Serial.print(“dist1 = “);

Serial.print(dist1);

Serial.print(“\n”);

pinMode(pingPin2, OUTPUT);

digitalWrite(pingPin2, LOW);

delayMicroseconds(2);

digitalWrite(pingPin2, HIGH);

delayMicroseconds(10);

digitalWrite(pingPin2, LOW);

pinMode(echoPin2, INPUT);

duration2 = pulseIn(echoPin2, HIGH);

dist2 = 345*duration2/20000;

Serial.print(“dist2 = “);

Serial.print(dist2);

Serial.print(“\n”);

pinMode(pingPin3, OUTPUT);

digitalWrite(pingPin3, LOW);

delayMicroseconds(2);

digitalWrite(pingPin3, HIGH);

delayMicroseconds(10);

digitalWrite(pingPin3, LOW);

pinMode(echoPin3, INPUT);

duration3 = pulseIn(echoPin3, HIGH);

dist3 = 345*duration3/20000;

Serial.print(“dist3 = “);

Serial.print(dist3);

Serial.print(“\n”);

if (dist1<=15 || dist2<=15 || dist3<= 15)

{

digitalWrite(13, HIGH);

}

if (dist1 <= 15)

{

digitalWrite(12, HIGH);

}

if (dist2 <= 15)

{

digitalWrite(11, HIGH);

}

if (dist3 <= 15)

{

digitalWrite(10, HIGH);

}

delay(100);

}

Working

PARKING ASSISTANT WORKS IN THE FOLLOWING WAY :

STEP 1 : WE HAVE TO SWITCH ON THE PARKING ASSISTANT

STEP 2 : THE LED BOARD ACTIVATES .

STEP 3 : WHEN ANY SIDE OF THE CAR IS REACHING A CLOSE DISTANCE THE ULTASONIC SENSOR WILL DETECT THE OBSTACLE AND SEND SIGNAL TO ARDUINO .

STEP 4 : IF THE DISTANCE IS LESS THEN 15 CM THEN THE PART WHICH IS CLOSE TO THE OBSTACLE THAT RESPECTIVE PART WILL BE SHOWN RED IN THE PANEL WITH THE HELP OF LED .

STEP 5 : A BUZZER WILL ALSO START MAKING SOUND SIMULTANEOUSLY WITH THE LED .

STEP 6 : AS SOON AS THE DRIVER TAKES THE CAR AWAY FROM THE OBSTACLE LED TURNS OFF AND BUZZER STOPS .

STEP 7 : THIS WILL HELP DRIVERS PARK THE CAR WITHOUT ANY RISK OF GETTING ANY DENT .

0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*

or

Log in with your credentials

or    

Forgot your details?

or

Create Account