0% found this document useful (0 votes)
61 views

Artificial intelligence Project Report (ultrasonic sensor automatic arduino car parking system project)

This is class 12 AI project Report CBSE BOARD (2024-25)

Uploaded by

ak9766194882
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

Artificial intelligence Project Report (ultrasonic sensor automatic arduino car parking system project)

This is class 12 AI project Report CBSE BOARD (2024-25)

Uploaded by

ak9766194882
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

SCHOO;

oBLIC NEW CANTT


AL
LAH BAD
AMY
PUBLIC SCHOO

ALLAHABAD

ARTIFICIAL INTELLIGENCE

PROJECT REPORT
TOPIC : Ultrasonic Sensor
Automatic Arduino Car Parking
System Project

NAME: AKASH KUMAR


ROLL NO:03
CLASS:XII
SECTION:A
1 Introduction

The rapid urbanization and increase in the


number of vehicles have led to a growing need for
smart parking solutions. Traditional parkin
systems often involve human intervention, which
may result in inefficiencies, delays, and errors. To
address these challenges, automnated car parking
systems using advanced technologies like
ultrasonic Sensors and microcontrollers are

becoming a necessity.

This project focuses on designing an Ultrasonic


Sensor-Based Automatic Car Parking System
powered by Arduino. It provides a hands-free
parking experience by using ultrasonic sensors to
detect the presence of obstacles, calculate
distances, and automate parking gate operations.
This system is an excellent demonstration of
artificial intelligence and automation for solving
real-world problems.
2,Objectves of the Project

The primary objectives of the project are as


follows:
1.Automation: Develop an automated
parking system to reduce human
intervention.
Accuracy: Ensure precise detection of
2.
obstacles andparking space availability
using ultrasonic sensors.
Safety: Minimize accidents during parking
3.
user.
by providing alerts to theutilization
Efficiency: Enhance the of
4.
available parking spaces.
Design a system that can be
5.Scalability:
implemented in various parking scenarios,
publicparking lots, malls, and
such as
residential complexes.
3. Components Used in the Project

This project requires che following


components:
1.Arduino Uno: Acts as the brain of the
system, controlling all components.
2. HC-SR04 Ultrasonic Sensor: Measures the
distance between the car and obstacles.
3. Servo Motor: Simulates the parking gate by
opening and closing based on thesystem's
instructions.
4.LEDs: Indicate whether parking is available
or occupied.
5. Buzzer: Provides sound alerts when the
vehicle is too close to an obstacle.
6.Resistors: Ensure proper functioning of
LEDs.
7.Breadboard and Jumper Wires: Facilitate
connections between components.
8.Power Supply: Powers the Arduino and
other connected components.
4.Working Principle ofthe System
The ultrasonic sensor operates on the principle of sound
wave reflection. It sends ultrasonic waves (at afrequency
of 40 kHz) toward an object and measures the timne taken
for the echo to return after hitting the object. The
Arduino microcontroller processes this information to
calculate the distance between the sensor and the object
using the formula:

Distance = Speed of Sound x Time


=

The system works as follows:


ultrasonic sensor
1.Distance Measurement: The
the car from the
continuously monitors the distance of
sensor.
Detection: If the distance is within a
2.Obstacle
determines thata car is
predefined range, the system
present.
Control: The servo motor opens the gate
3. Parking Gate once the car passes
available and closes it
ifspace is
through. availability, while the
4.Alerts: LEDs indicate space
too close obstacle.
to an
buzzer warns if the car is
5. Circuit Diagramand Connectiong

The circuit consists of the ultrasonic sensor, servO motor.


LEDs, and a buzzer connected to the Arduino bo¡rd.
Below are the pin connections:

Component Arduino Pin

Trig Pin (Ultrasonic Sensor) Pin 9

Echo Pin (Ultrasonic Sensor) Pin 10

Servo Motor PWM Pin 3

LED (Green) Pin 5

LED (Red) Pin 6

Buzzer Pin 7
6.Software Implementation
The Arduino programming environnment (|DE) is used to
write and uploadthe program to the Arduino board.
Below is tthe detailed
d code for thc project:
#include Servo.h>

Servo myServo;
const int trigPin 9:
const int echoPin 10:
const int ledGreen 5:
const int ledRed e 6:
const int buzzer 7:

void setup() {
pinMode(trig Pin,OUTPUT);
pinModelechoPin, INPUT);
pinMode(led Green,OUTPUT):
pinMode(ledRed,OUTPUT);
pinMode(buzzer, OUTPUT);
myServo.attach(3);
start
myServo. write(0); //Gate closed at
Serial.begin(9600);

void loop0{
long duration;
int distance;

digitalWrite(trig Pin,LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trig Pin, LoW);

duration = pulseln(echoPin, HIGH);


distance = duration 0.034 /2;

If (distance <10){
digitalWritelledGreen, LOW);
digitalWritelledRed, HIGH);
digitalWrite(buzzer, HIGH);
myServo.write(90); // Gate opens
else {
digitalWritelled Green, HIGH);
digitalWrite(led Red, LOW);
digitalWrite(buzzer, LoW);
myServo.write(0): //Gate closes
}
delay(500);
7. Advantages of the System

1.Safety: Reduces collisions by providing


audio and visual alerts.
2.Automation:Eliminates the need for manual
parking attendants.
3.Efficiency: Utilizes parking spaces more
4.
effectively.
Cost-Effective: Uses affordable components,
making it accessible for small-scale
applications.
5. Customizable: Can be scaled or modified for
specific requirements.
8.Applications

1.PublicParking Lots: Tomanage high


volumes of vehicles efficiently.
2.Residential Complexes: For secure and
automated parking.
3.Malls and Offices: Enhances customer
experience by automating parking.
4.Smart Cities: Integrates with loT systems
for advanced parking management.
9. Conclusion

TheUltrasonic Sensor Automatic Arduino


Car Parking System successtully
demonstrates the application of automation
and AI in solving real-world parking
challenges. It uses simple and cost-effective
Components to achieve accurate obstacle
detection, efficient parking management,
and enhanced safety. This project serves as
a foundation for more advanced
parking
systems integrated with loT and machine
learning technologies.
10. Future Scope

1.IoT Integration: Real-timeparking


space updates on mobile apps.
2.Solar Power: Use solar panels to
make the system energy-efficient.
3.Adyanced Sensors: Incorporate
infrared sensors for enhanced
accuracy.
4.Machine Learning: Predict parking
patterns and optimize space
utilization.
THANK
YOU

You might also like