0% found this document useful (0 votes)
150 views17 pages

MATLAB Report

The document describes a smart parking management system that uses hardware components like push buttons, servo motors, LED lights, resistors, and an Arduino Uno board along with MATLAB software. The system uses these components to manage and display available parking spots, open and close barriers, and signal lights for entering and exiting vehicles. It aims to help solve issues with finding parking spots in urban areas by automating some parking functions and providing information on availability. The system was designed and coded by students for a class project and has the potential to be implemented in locations like parking lots.

Uploaded by

Raja Shekar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
150 views17 pages

MATLAB Report

The document describes a smart parking management system that uses hardware components like push buttons, servo motors, LED lights, resistors, and an Arduino Uno board along with MATLAB software. The system uses these components to manage and display available parking spots, open and close barriers, and signal lights for entering and exiting vehicles. It aims to help solve issues with finding parking spots in urban areas by automating some parking functions and providing information on availability. The system was designed and coded by students for a class project and has the potential to be implemented in locations like parking lots.

Uploaded by

Raja Shekar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 17

Smart Parking Management System

Department of Industrial and Electrical and Computer Engineering

Computational Methods and Modeling for


Engineering Applications
(GENG-8030-5)
Group-1

Name Student Number


Abhinay Musthyala 110091817
Aravind Pulugula 110090197

Submitted to:
Dr. Yasser M. Alginahi

Date:

27/10/2022
Table of Contents

1. Introduction…………………………………………………………………..……………3
1.1 Project Overview……………………………………………………………...………3
1.2 Project purpose……………………………………………………………………..…3
1.3 Project outcome……………………………………………………………………….3
2. Project components and Requirements……………………………………………………4
2.1 Hardware components………………………………………………………………4-9
2.2 Software……………………………………………………………………………….9
3. Methodology……………………………………………………………………………..10
3.1 Block diagram…………………………………………………………………..……10
3.2 Steps in methodology………………………………………………...………………11
4. Pseudo code………………………………………………………………………..…11-13
5. Milestones………………………………………………………………………………..13
6. Limitations and Risks that are faced……………………………………………………..14
7. Conclusion……………………………………………………………………………….14
8. References………………………………………………………………………………..15

Page 1 of 17
List of Figures:

1. Push Button …………..………………………………………………………….…….4

2. Servo Motor……………………………………………………..……………………..4

3. Common Cathode RGB LED………………………………………………………….5

4. Resistor………………………………………………………………….………….….5

5. Breadboard………………………………………………………………….….…........6

6. LCD……………………………………………………………….……………………6

7. Jumper Wires……………………………………………………………….………….7

8. Arduino UNO………………………………………………………………………….7

9. Battery and Connector cable…………………………………………………….…….8

10. Arduino Connector cable ……………………………………………………………...8

11. Potentiometer…………………………………………………………………………9

12. Block Diagram………………………………………………………………………10

13. Flow Chart…………………………………………………………………………...11

Page 2 of 17
1. Introduction
1.1 Project Overview:
Urban car parking is a major problem in both industrialised and developing nations. The rapid
growth in car ownership has led to a shortage of parking spaces for cars in many cities, creating
an imbalance between supply and demand that may be considered the main cause of urban parking
issues. Poor land use planning and an early underestimation of the need for space are two factors
that contribute to this mismatch. Lack of parking spaces, high parking rates, and traffic jams
brought on by individuals looking for a spot to park are common parking complaints [1]. A simple
and efficient parking management system makes it possible to manage parking. The servo motor,
LCD display, LED module, and Arduino UNO were used in the creation of this system. For coding,
MATLAB software is employed. This project can be used in a variety of locations, including
private parking lots, hotels, clinics, and offices.

1.2 Project Purpose:

To build a smart parking management system, an Arduino UNO board and MATLAB software
will be used. Along with segregated parking spaces, an automatic lifting bar, traffic lights to serve
as a signal, and an LCD display that shows the number of parking spaces available.

1.3 Project Outcome:

This project is meant to handle the parking spots system in a smart way. It shows how many
parking spots available; how many are occupied in a parking area and gives a specified parking
spot. “Welcome” is displayed on LCD before a vehicle enters to the parking spot in this situation
RGB LED light will be in red colour. After pressing enter by user, light turns from red to green
and servo motor rotates to open the barrier. With this number of parking spots available will be
decreased by 1. Next case is when the user wants to exit the parking spot and presses exit button
then the servo motor turns to open barrier and let vehicle pass. In this situation RGB LED turns
from red to green and simultaneously parking spots available are increased by 1. Another case is
when no parking spots are available then LCD shows “Please come Later” and light glows in red
with servo motor making no rotation.

Page 3 of 17
2. Project Components and Requirements:

2.1 Hardware Components:

2.1.1 Push Button

Figure 1: Push Button [2]

To turn something on or off, a push button switch uses a basic electric mechanism or air switch
mechanism. Depending on the model, they may function with a momentary or latching action. The
button itself is typically made of a sturdy, long-lasting material like metal or plastic [2].

2.1.2 Servo Motor

Figure 2: Servo Motor [3]

servo motor comes under electromechanical device that generates torque and velocity dependent
on the current and voltage input. As a component of a closed loop system, servo motors deliver
Page 4 of 17
torque and velocity in response to commands from servo controllers, with the loop being closed
by a feedback device.

2.1.3 Common Cathode RGB LED

Figure 3: RGB LED [4]

RBG LEDs are short for red, blue, and green LEDs. These three colours are combined in RGB
LED devices to create over 16 million different shades of light. Be aware that not every hue is
conceivable. There are several colours that fall "outside" of the RGB LEDs' triangular shape.

2.1.4 Resistor

Figure 4: Resistor [5]

A resistor is an electrical component that is used to stop electrons to flow which come under
passive category. It comes with two terminals. The resistance of resistor measured in Ohms.
transmission lines.

Page 5 of 17
2.1.5 Breadboard

Figure 5: Breadboard [6]

A breadboard makes it simple and quick to build temporary electronic circuits or conduct circuit
design experiments. The rows and columns of internally connected spring clips beneath the
perforated plastic casing of breadboards allow developers to quickly connect components or
cables.

2.1.6 LCD Display

Figure 6: LCD Display [7]

There are several uses for LCD (Liquid Crystal Display) screens, which are electrical display
modules. A 16x2 LCD display is a very fundamental module that is frequently included into many
different devices and circuits [7]. With a 16x2 LCD, there are 2 lines that can each display 16
characters. Each character on this LCD is presented using a 5x7 pixel matrix. The 224 different

Page 6 of 17
characters and symbols that can be displayed on the 16 x 2 intelligent alphanumeric dot matrix
display. The Command and Data registers on this LCD are its two registers [7].

2.1.7 Jumper wires

Figure 7: Jumper Wires [8]

Jumper wires are simply wires with connector pins on both sides which can be useful for
connecting two sites without soldering [8]. With breadboards and other prototype equipment,
jumper wires are commonly used for modifying a circuit whenever it is needed [8].

2.1.8 Arduino UNO

Figure 8: Arduino UNO [9]

Arduino is one of its kind electronic devices which connects both hardware and software with no
complexity [9]. By uploading set of instruction to Arduino microcontroller one can turn on light,
switch on/off the fan, start a motor, and can be used to devices that are run by voice. For dumping

Page 7 of 17
code into Arduino board Arduino software (IDE) is used along with a certain programming
language [9].

2.1.9 Battery and Connector Cable

Figure 9: Battery and Connector Cable [10]

Arduino board is powered by a 9v battery with cables. It comes with to wires one is positive and
another one is negative. Positive wire is connected to Arduino board and negative to ground on
bread board [10].

2.1.10 Arduino Connection Cable

Figure 10: Arduino Connection Cable [11]

It is basically a cable that acts as median for Arduino board and programming device. It comes
with USB-B, USB-C [11].

Page 8 of 17
2.1.11 Potentiometer

Figure 11: Potentiometer [12]

A three-terminal resistor with a sliding or revolving contact that creates a variable voltage divider
is called a potentiometer [12]. It functions as a variable resistor or rheostat if only the wiper and
one end of the connector are used [12].

2.2 Software

MATLAB blends a programming language that natively expresses matrix and array mathematics
with a desktop application optimised for iterative analysis and design. For writing scripts that mix
code, output, and formatted text in an executable notebook, it comes with the Live Editor [13].

You can use MATLAB programmes to test out various algorithms on data. Once you've
achieved the desired results, you can generate a MATLAB programme automatically and it can
do your job automatically [13].

With relatively small code modifications, scale your analysis to run on clusters, GPUs, and
clouds. You don't need to master out-of-memory programming, large data programming, or to
completely rebuild your code [13].

Page 9 of 17
3. Methodology

3.1 Block Diagram

Figure 12: Block Diagram

3.2 Steps for Methodology:

Smart parking system is executed for three cases. Case1 is for vehicles that are entering parking
slots. Case 2 is for cars that are wanting to exit the parking area by pressing “Exit”. Case 3 is for
executing, if parking slots are not available to fill.

Page 10 of 17
Figure 13: Flow Chart

Case1: vehicle enters parking area where parking slots are

Case2: vehicle enters parking area where slots are not available

Case3: vehicle exits the parking area

4. Pseudocode:

Step-1: Firstly, Initialize Arduino UNO.

Step-2: Create an LCD object and initialize the 16X2 LCD display.

Step-3: Allocate 2 pins on the Arduino to initialize “Green” and “Red” pins in the LED

Step-4: Configure Arduino board for 2 switches – Entry and Exit.

Step-5: Allocate an Arduino pin to Servo motor and create an object named "servo", then turn the
Servo Motor to the "0" position.

Page 11 of 17
Step-6: To show that the barrier gate is closed, write "1" to the Red LED pin on the Arduino
UNO.

Step-7: Initialize a variable named empty slots to store the total number of available parking slots

Step-8: Display below details on the LCD with specified time delay

• Welcome message,
• Project name,
• Group number,
• Team member1 name & student ID,
• Team member2 name & student ID.

Step-9: Display empty slots.

Case1:

• If user press Enter

• If there are more parking spaces available than zero:

• Decrease the number of slots available by 1

• Servo motor rotates to 90 degrees and raises barrier gate

• To indicate that a barrier gate is open, RGB LED turns from red to green

• Wait for two seconds

• The servo motor rotates back to 0 degrees by closing the barrier gate

Case 2:

• If Available parking slots equal to 0 that means no parking slot is available

• Display "Parking lots are occupied" on LCD

• Then display “Please come later"

Page 12 of 17
Case 3:

• If presses exit

• Showing how many slots are available on the LCD

• Then increase the slots available by 1

• RGB LED light turns from red to green

• Servo motor rotates to 90 degrees and raises barrier gate allows vehicle to pass

• Wait for 2 seconds

• Close the barrier gate where servo motor rotates back to 0 degrees and lights turns to red

5. Milestones:

For smart parking system we divided tasks equally and contributed equally. At this stage we
reached two milestones. One is planning the project to meet our objectives by designing an
algorithm with steps and stages of work. Another milestone that we met is collecting every
hardware required for the project along with software such as MATLAB.

Milestones completed: Milestone 1: Planed the project to meet our


objectives and knowing what the necessary
components are required for project.
Milestone2: Bought all required components and
verified that are working or not and created an
algorithm with necessary steps and stages.
Milestones yet to be completed: Milestone 3: In this stage we need to develop a
program in MATLAB which includes three cases.
Upload that program into Arduino and verify the
output.
Milestone 4: Need to work on final report with
written code and pictures of output. Submit the final
report.

Page 13 of 17
6. Limitations and Risks that are faced:

First limitation that we faced was to decide what necessary components that are required for smart
parking system. Risk taken in verifying Arduino with outside code to check whether its working
or not. Need to handle components with at most care if not they can become defective. Need to
store the components like resistor, LED, and lights in some cool places if not when they exposed
to high temperature, they may disfunction.

7. Conclusion:

Smart Parking system can overcome all possible difficulties of conventional parking system. With
this, users can save lot of time by doing task with ease and can save fuel. It will become a
revolutionary change in the parking system and cam customize according to requirements. Users
can easily find where the spots are available and how many spots available. Pollution problem can
be reduced to some extent with this technology. This technology can be established in vertical
parking system also.

8. References:
Page 14 of 17
[1]. H. Ibrahim, "Car Parking Problem in Urban Areas, Causes and Solutions," 1st International
Conference on Towards a Better Quality of Life, Apr. 24, 2018. [Online]. Available:
https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3163473#:~:text=This%20imbalance%20is
%20partially%20due,examples%20of%20everyday%20parking%20problems. [Accessed: Oct.
21, 2022].

[2]. “What is a push button switch?,” Herga Technology Ltd, Nov. 19, 2018. [Online]. Available:
https://www.herga.com/news-media/technical-blog-archive/what-is-a-push-button-switch-
#:~:text=A%20Push%20Button%20switch%20is,such%20as%20metal%20or%20plastic.
[Accessed: Oct. 22, 2022].

[3]. “How Servo Motors Work,” KOLLMORGEN, Sep. 29, 2020. [Online]. Available:
https://www.kollmorgen.com/en-us/blogs/how-servo-motors-work/. [Accessed: Oct. 20, 2022].

[4]. “What does RGB LED means?,” PHILIPS. [Online]. Available:


https://www.lighting.philips.com/main/support/support/faqs/white-light-and-colour/what-does-
rgb-led-
mean#:~:text=RGB%20LED%20means%20red%2C%20blue,formed%20by%20the%20RGB%2
0LEDs. [Accessed: Oct. 22, 2022].

[5]. “Resistor,” WIKIPEDIA. [Online]. Available:


https://en.wikipedia.org/wiki/Resistor#:~:text=A%20resistor%20is%20a%20passive,transmissio
n%20lines%2C%20among%20other%20uses. [Accessed: Oct. 21, 2022].

[6]. T. Schousek, “Embedded control fundamentals,” Science Direct, 2018. [Online]. Available:
https://www.sciencedirect.com/topics/engineering/breadboard. [Accessed: Oct. 22, 2022].

[7]. “Standard LCD 16*2 Display,” thingbits. [Online]. Available:


https://www.thingbits.in/products/standard-lcd-16x2-
display#:~:text=A%2016x2%20LCD%20means%20it,%2C%20namely%2C%20Command%20
and%20Data. [Accessed: Oct. 22, 2022].

[8]. “What Are Jumper Wires: Know by Colour, Types and Uses,” WILTRONICS, Apr. 14, 2022.
[Online]. Available: https://www.wiltronics.com.au/wiltronics-knowledge-base/what-are-jumper-
wires/#:~:text=Jumper%20wires%20are%20electrical%20wires,diagnose%20problems%20in%2

Page 15 of 17
0a%20circuit. [Accessed: Oct. 23, 2022].

[9]. “What is Arduino?,” Arduino, Feb. 05, 2018. [Online]. Available:


https://www.arduino.cc/en/Guide/Introduction. [Accessed: Oct. 23, 2022].

[10]. M. Bevequva, “Car Battery Cable Replacement: A Complete DIY Guide,” carparts.com.
[Online]. Available: https://www.carparts.com/blog/car-battery-cable-replacement-a-complete-
diy-guide/. [Accessed: Oct. 23, 2022].

[11]. “USB 2.0 Cable Type A/B,” Arduino. [Online]. Available: https://store-
usa.arduino.cc/products/usb-2-0-cable-type-a-b. [Accessed: Oct. 22, 2022].

[12]. “Potentiometer,” WIKIPEDIA. [Online]. Available:


https://en.wikipedia.org/wiki/Potentiometer. [Accessed: Oct. 22, 2022].
[13]. “Designed for the way you think and the work you do,” MATLAB. [Online]. Available:
https://www.mathworks.com/products/matlab.html. [Accessed: Oct. 22, 2022].

Page 16 of 17

You might also like