0% found this document useful (0 votes)
11 views4 pages

Robotic Project Parking

The document outlines a robotic project aimed at creating a parking precision system that assists in automatic obstacle detection during reverse parking. It includes objectives, required materials, construction steps, and a code snippet for implementation using an ultrasonic sensor. The system is designed to enhance parking accuracy and ease for drivers.

Uploaded by

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

Robotic Project Parking

The document outlines a robotic project aimed at creating a parking precision system that assists in automatic obstacle detection during reverse parking. It includes objectives, required materials, construction steps, and a code snippet for implementation using an ultrasonic sensor. The system is designed to enhance parking accuracy and ease for drivers.

Uploaded by

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

Robotic project- Parking precision syste

______________________________________

What is parking precision?


A “parking precision system” typically refers to a set of technologies and
features in vehicles that assist drivers in parking their cars with greater
accuracy and ease. These systems are designed to help drivers navigate
into parking spaces, whether parallel parking on the street, perpendicular
parking in a parking lot, or even assisting with parallel parking between two
cars.

Objective
To implement a system to automatically detect the obstacle in reverse
parking.
Materials required
● Robotic brain
● Ultrasonic sensor
● Motor blocks
● Wheels
● Few connecting blocks
Construction
Step 1: Construct the basic cart model
Step 2: Place the ultrasonic sensor on the green block as shown.
Step 3: Next, connect the USB of the ultrasonic sensor to the lower slot of
port 2.
Step 4: Connect the battery and turn ON the brain by sliding the switch
upwards.
Text code
Const int M1_1 = 2;
Const int M1_2 = 3;
Const int M2_1 = 5;
Const int M2_2 = 4;
Const int M3_1 = 6;
Const int M3_2 = 7;
Const int M4_1 = 8;
Const int M4_2 = 14;
Long readUltrasonicDistance(int triggerPin, int echoPin)
{
pinMode(triggerPin, OUTPUT);
digitalWrite(triggerPin, LOW);
delayMicroseconds(2);
digitalWrite(triggerPin, HIGH);
delayMicroseconds(10);
digitalWrite(triggerPin, LOW);
pinMode(echoPin, INPUT);
return pulseIn(echoPin, HIGH);
void setup()
{
pinMode(12, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(5, OUTPUT);
pinMode(4, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(14, OUTPUT);
}
Void loop()
{
If (( 0.01723 * readUltrasonicDistance(21, 20) < 20))
{
digitalWrite(12, HIGH);
digitalWrite(M1_1, LOW);
digitalWrite(M1_2, LOW);
digitalWrite(M2_1, LOW);
digitalWrite(M2_2, LOW);
digitalWrite(M3_1, LOW);
digitalWrite(M3_2, LOW);
digitalWrite(M4_1, LOW);
digitalWrite(M4_2, LOW);
}
Else
{
digitalWrite(12, LOW);
digitalWrite(M1_1, LOW);
digitalWrite(M1_2, HIGH);
digitalWrite(M2_1, LOW);
digitalWrite(M2_2, HIGH);
digitalWrite(M3_1, LOW);
digitalWrite(M3_2, HIGH);
digitalWrite(M4_1, LOW);
digitalWrite(M4_2, HIGH);
}}

You might also like