0% found this document useful (0 votes)
51 views9 pages

Iot Domain Analyst (Ece3502) : Experiment-6

1) The document describes a smart parking system that uses ultrasonic sensors and an LCD display to detect available parking spots. 2) When a sensor detects that a spot is empty (more than 100cm from the sensor), the LCD displays which spots are available. 3) The system was able to accurately display the number of available spots and their locations under different test conditions, from all spots empty to all filled.
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)
51 views9 pages

Iot Domain Analyst (Ece3502) : Experiment-6

1) The document describes a smart parking system that uses ultrasonic sensors and an LCD display to detect available parking spots. 2) When a sensor detects that a spot is empty (more than 100cm from the sensor), the LCD displays which spots are available. 3) The system was able to accurately display the number of available spots and their locations under different test conditions, from all spots empty to all filled.
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/ 9

IOT DOMAIN ANALYST(ECE3502)

SCHOOL OF ELECTRONICS ENGINEERING


(SENSE)
WINTER SEMESTER:-2020-21

EXPERIMENT-6
SMART PARKING SYSTEM

SKAND VIJAY
18BEC0089
L35+L36

Under the Guidance of:


Prof. Biswajit Dwivedy
AIM:-

To Create Smart Parking System, giving details of the circuit and procedure followed for
achieving the same.

THEORY:
Tinkercad is a free, online modeling program that runs in a web browser, known for its
simplicity and ease of use. Since it became available in 2011 it has become a popular
platform for creating models for 3D printing as well as an entry-level introduction to
constructive solid geometry in schools.

COMPONENTS:

Components Quantity
Arduino Uno R3 1
LCD 16 x 2 1
250 kΩ Potentiometer 1
600 Ω Resistor 1
Ultrasonic Distance Sensor 3
Arduino Uno R3 1
LCD 16 x 2 1

PLATFORM:
1. Tinkercad: Tinkercad is a free, online 3D modeling program that runs in a web
browser, known for its simplicity and ease of use.

WORKING PRINCIPLE:
➢ Ultrasonic Sensor is an electronic device which measures the distance of a target object
by producing ultrasonic sound waves, and converting the reflected sound into an
electrical signal .For the proposed system, the ultrasonic sensors are used for each
parking slot to check the presence of the vehicle.
➢ A liquid crystal display is a display that uses liquid crystalline materials to produce
visible image. Here is how the system works, when current is applied to such
crystalline material, it becomes opaque thereby blocking the backlight behind the
screen, hence, that particular area becomes dark relative to other areas. The character
to be displayed assumes this dark area of the screen.

ALGORITHM:
1. Firstly connecting the 5V supply pin from the Arduino to one of the lines of the
breadboard and the Ground (GND) pin of the Arduino to another line of pins of the
breadboard.
2. Connect VCC on the ultrasonic sensor to the 5V pin on the Arduino. Connect the Trig
pin on the ultrasonic sensor to pin on the Arduino. Connect the Echo pin on the ultrasonic
sensor to pin on the Arduino. Connect the GND on the ultrasonic sensor to GND on the
Arduino.Doing this for all the three sensors.
3. Put a condition if the distance is less than 100 cm in any of ultrasonic sensor in a
particulat slot turn on the LCD and predict the empty slot.

4. LCD 16x2 is used to display the Free slots as output after detection is sensed by the
sensors.
5. Baud rate kept is 9600
FLOWCHART:

START

SYSTEM INITIALIZE

CHECK
PRESENCE OF
OBJECT/VEHICLE

YES NO

GET DATA FROM


ULTRASONIC SENSOR

OUTPUT DISPLAY ON
LCD FOR FREE SLOTS

END
CIRCUIT CONFIGURATION:

Figure 1 Circuit Configuration

CODE:-
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

#define t1 10
#define t2 9
#define t3 8

int distanceThreshold = 100;

void setup() {
lcd.begin(16,2);
lcd.setCursor(0,0);
Serial.begin (9600);
}

long readDistance(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 loop()
{
float d1 = 0.01723 * readDistance(t1, t1);
float d2 = 0.01723 * readDistance(t2, t2);
float d3 = 0.01723 * readDistance(t3, t3);

Serial.println("d1 = " + String(d1) + "cm");


Serial.println("d2 = " + String(d2) + "cm");
Serial.println("d3 = " + String(d3) + "cm");

if (d1>100 & d2>100 & d3>100){


lcd.setCursor(0,0);
lcd.print("3 Slots Free");
lcd.setCursor(0,1);
lcd.print("Slot 1 2 3 Free");
delay(500);
}
else if((d1>100 & d2>100)|(d2>100 & d3>100)|(d3>100 & d1>100))
{
lcd.setCursor(0,0);
lcd.print("2 Slots Free");
lcd.setCursor(0,1);
if(d1>100 & d2>100)
lcd.print("Slot 1 & 2 Free");
else if(d1>100 & d3>100)
lcd.print("Slot 1 & 3 Free");
else
lcd.print("Slot 2 & 3 Free");
delay(500);
}
else if(d1<100 & d2<100 & d3<100)
{
lcd.setCursor(0,0);
lcd.print("No Slot Free");
lcd.setCursor(0,1);
lcd.print("Parking Full");
delay(500);
}
else if((d1<100 & d2<100)|(d2<100 & d3<100)|(d3<100 & d1<100))
{
lcd.setCursor(0,0);
lcd.print("1 Slot Free");
lcd.setCursor(0,1);
if(d1>100)
lcd.print("Slot 1 is Free");
else if (d2>100)
lcd.print("Slot 2 is Free");
else
lcd.print("Slot 3 is Free");
delay(500);
}

delay(100);
}

OUTPUT AND RESULT DISCUSSION:

Case-1:- When there is No car infront of the ultrasonic sensor it shows all slots
are free and a new car can have 3 positions to get parked.

Figure 2 Output of Circuit Configuration When No Object infront of Sensors


Case-2:-When a Car is parked at Slot-1,the LCD screen shows other two
slots(Slot-2 and and Slot-3) are empty for new cars.

Figure 3 Output of Circuit Configuration When one Object infront of Sensor(U1)

Case-3:-When the cars are parked in all the slots, LCD will show Parking Full
and there is No Slot free.

Figure 4 Output of Circuit Configuration When Object is there infront of All the Sensors
OBSERVATIONS:

• Distance in cm and inches is shown near ultrasonic sensor rather than conventional
time as we have calculated and converted the time taken by the signal into the
distance covered by it. (conventionally ultrasonic sensor signal travel at a speed of
sound (340m/s).

• We can see in the output screenshots ,


✓ In Case-1:When No object infront of Utrasonic Sensor,lcd has printed “All
Slots Free”.

✓ In Case-2: When one object infront of Utrasonic Sensor(Slot-1),lcd has


printed “Slot-2 & Slot-3 Free”.
✓ In Case-3: When there is object infront of all the Utrasonic Sensor,lcd has
printed “No Slots Free” and “Parking Full”.

CONCLUSION:
✓ If the distance of car is less than 100cm then the LCD will start showing the other
available slots(if any).
✓ The conclusion of the proposed system adds multiple benefits over the traditional
parking system. The time-consuming problem of searching and navigating to the
parking slot is solved. As an effort to reduce environmental problems fuel wastage is
also reduced and online payment eliminates the need for parking receipts. Therefore
we can say that the system provides a very efficient, environmentally friendly solution
to tackle the rising parking problem in the cities.

You might also like