Cloud With Iot in Smart Parking: June 2017

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/323253794

cloud with IoT in smart parking

Article · June 2017

CITATIONS READS
0 427

1 author:

Suja Radha
VIT University
57 PUBLICATIONS   106 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Software Project Management View project

Classification & Prediction View project

All content following this page was uploaded by Suja Radha on 09 May 2018.

The user has requested enhancement of the downloaded file.


ISSN (Online): 2456-0448
International Journal Of Innovative Research In Management, Engineering And Technology
Vol. 2, Issue 6, June 2017

Cloud With Iot In Smart Parking


[1] [2] [3] [4]
Prof Sujatha R, Rahul Gorai, Harshita Wadhwa, Shivani Tripathi
[1]
Assistant Professor (SG), SITE, VIT University, Vellore
[2] [3] [4]
B.Tech. (IT), SITE, VIT University, Vellore

Abstract: The notion of emerging smart cities integrated with internet of things and clouds to make data and service available
everywhere helps to create a boon artefact which makes human life very easy.. Regarding smart cities flow of data after its generation
and it manipulation to get a desired result is most important. This need can be easily fulfilled by the use of Internet of Things with
clouds to perform data generation and information exchange (DGIE). IoT for smart city may include new generation devices such as
smart phones, GSM and various sensors along with the available web services such as Google Firebase in order to promote
internet-as-a-service. Applications precisely focusing on smart parking system implemented with Internet Of Things (IoT) ,clouds and
web services has been proposed in the paper. Further, the system is also designed to create an application for a-priori booking of
parking slot to reduce the hassle at parking areas. In addition, a theoretical comparison is presented to show various systems against
various metrics.

Keywords: Smart Parking, Raspberry pi, PIR motion sensor, cloud, web services, Internet of Things (IoT), Firebase, Twilio, Python,
Android.

I. INTRODUCTION

Urbanization with Information and Communications Technologies (ICT) have been evolving in the latest years. The
technological advancement and the economic support over the years have greatly contributed to the development of
urban areas. This lead to the fostering of urbanization which eventually which later caused serious problems in terms of
environment and its resources.[13] Urbanization demands the need of energy, land, infrastructure, food and other
resources to serve the urban population which may grow tremendously[28]. In this scenario, the concept of smart
cities comes up, that is, cities able to solve urban issues while trying to save the environment. Smart city focuses on
smart growth which implies a community-driven reaction to solve traffic congestion, school overcrowding, air pollution,
loss of open space and skyrocketing public facilities cost.
A smart city is a dream to incorporate multiple information and communication technology (ICT) and Internet of Things
(IoT) solutions in a secure way to manage a city’s assets. Smart city helps in improving quality of life by means of urban
informatics and technology to improve the efficiency of services and meet the crowd’s needs. ICT allows the city
population to interact with the community and city infrastructure, control city happenings, evolution of city and to get a
better quality of life. Through the use of sensors integrated with real-time monitoring systems, data are collected from
citizens and devices – then processed and analysed. The information and knowledge gathered are keys for tackling
inefficiency. In this paper we focus on one important area that includes smart parking system.

In the existing parking systems, only the parking administrator has the knowledge about the parking spaces occupied or
available at a point of time. It does not enable proper information exchanging for the drivers, thus is not the most efficient
parking solution. A better solution here would be the use of smart sensors and some middleware software.

II. RELATED WORKS

The problem of parking is very ancient and to cure it various technologies has been developing from years. In the present
date the implementation of smart parking system is done using various technologies including sensors, microprocessors,
cameras and complex algorithms [1]. Some of those includes sensors such as RFID[27],PIR (Photo Infra-Red), UV(Ultra
Violet Sensor), Magnetometer , Microwave Radar ,Piezoelectric sensor, Inductive loop detectors,
Electromagnetic parking sensor and many more. Including these many systems also contains complex parking lot finding
algorithms such as min-max detection algorithm [2]. Many systems have also developed to incorporate Centralized
assisted parking search (CAPS) ,Non-assisted parking search (NAPS), Opportunistically assisted parking search (OAPS),

Copyright to IJIRMET www.ijirmet.com 81


ISSN (Online): 2456-0448
International Journal Of Innovative Research In Management, Engineering And Technology
Vol. 2, Issue 6, June 2017

Parking Guidance and Information System (PGIS),Car Park Occupancy Information System (COINS),Intelligent Parking
Assist System (IPAS)
,Smart Payment System, Agent Based Guiding System (ABGS),Automated Parking[28] etc. All these systems focuses on
creating an urban conceptual smart parking system.
III. DATA GENERATION AND FLOW BETWEEN IOT AND CLOUD

The major fashion of data generation and flow between the IoT sensors[14], mobile applications and the cloud is hybrid in
nature. For an instance the raw data generating from the sensors can be uploaded to the cloud database which can be
accessed directly by the mobile application as well as the web application used by the end user and the administrator
respectively. Secondly, this type of flow also ensures data availability, prevents data congestion and helps in seamless
working process.

Fig. 1. Hybrid Connection in Smart City Data Flow

The data flow also includes some processes such as login, registration and booking of the parking slot. So the IoT
continuously generates data which flows in the whole system either between the inter-connected sensors, applications and
cloud or between the intra- connection between the various processes of the mobile and web application.

IV. MODEL OF THE PROPOSED SMART PARKING SYSTEM

The proposed system primarily focuses on the three main parts of smart parking system which includes a prior booking of
parking slots using an end user mobile application, vehicle identification at the time of receipt of vehicle and accordingly
calculate parking fine and push notification alert by using web services. Upon integration of all the three parts we are able
to build a parking system which helps users to book their parking slot one hour prior to their reach and automatically
generates a receipt of amount to be paid by their mobile application. Further, the notification service also helps user
to get notified.
A. RASPBERRY PI BASED IOT IN PARKING SLOTS

A microcomputer with a Linux based operating system installed with various sensors such as PIR motion sensor and a
pi-camera is used in parking slots to run the python scripts and collect the data using their GPIO pins. The GPIO pins
operate in a high low state and all the 40 pins have various functionality. To get a medium amount of power supply
3.3volt power pin is used to intake of input voltage and other pins such as pin 11 and 13 are used to fetch the output

Copyright to IJIRMET www.ijirmet.com 82


ISSN (Online): 2456-0448
International Journal Of Innovative Research In Management, Engineering And Technology
Vol. 2, Issue 6, June 2017

data generated by the input given by the user via mobile application. This pin is also used to make the system respond.
For instance the system here uses LEDs to indicate the state of parking slot. The state may be an empty one or full one.
The state changes by the user input and slot availability. The blinking green LED ensures that the slot has been booked.

Fig. 2. Connection of Raspberry Pi and Parking Lights

B. PIR MOTION SENSOR AND RASPBERRY PI CAMERA TO DETECT VEHICLE AND GENERATE BILL

A photo infra-red motion sensor[4] responds by the changing heat of the near body. The sensor here operates to activate the
camera at a particular distance to universalise the billing algorithm for every category of vehicle. This in turn also ensures
the power efficiency of the system because the camera doesn’t need to be kept on every time. The camera used here is a
Raspberry-pi installed camera which detects the category of vehicle by calculating the dimension and in turn generate the
bill. To implement the system for demonstration purpose this camera has been used. Otherwise a high resolution camera
can also be used to get more precise results for calculating the dimensions and calculating bill amount.
C. WEB SERVICE AND CLOUD

For the experimental purpose we have used Google Firebase to implement the system and a twilio messaging and mailing
API for push notification. The firebase cloud can be used for various uses but here it is basically used for data-base
purpose and for creation of a shared variable which can be shared by the mobile application and the web application as
well. Secondly, the database is also used to check the existing user account and generate bill for the particular user who
registers and books slot.

Copyright to IJIRMET www.ijirmet.com 83


ISSN (Online): 2456-0448
International Journal Of Innovative Research In Management, Engineering And Technology
Vol. 2, Issue 6, June 2017

Fig. 3. Inter-Connection of Raspberry Pi,Motion sensor, camera and web services with mobile application

V. PROPOSED ALGORITHM FOR CALCULATION OF PARKING FINE AND NOTIFICATION SERVICE

STEP-BY-STEP PROCESS

The algorithm generally works in 4 basic steps which includes


1. Searching of parking slots in a particular area chosen by the user.[6]
2. Response of the IoT on choosing the slot.[5]
[6]. This also includes checking the free slot and resource allocation for reservation.[23]
3. Calculation of bill amount by using vehicle categories.
4. Push notification service using web services.

 Initialise the IoT and mobile application.


 Start monitoring data acquisition system.
 Activate the IoT if any valid input given by user.
 Calculate the bill amount

if some_vehicle passed : detected by motion sensor


Activate Camera
Take image : start image dimension analysis

if ( dimension category = Small Vehicles )


bill_amount = x
else if ( dimension_category = Large Vehicles )
bill_amount = y

 Send bill amount to user mobile application by using Firebase Cloud and a push notification such as text
message.

This algorithm demonstrates the entire work of the IoT and the data flow using the clouds and web services. This
algorithm is embedded in the form of a python script in the secondary memory of raspberry pi. The script uses some API
such as PIL (Python Imaging Library), firebase API for cloud, twilio API for notification web services and some other
packages which are open source. These scripts are kept in pi- secondary memory and used to run when the system is
activated.[19]

IV. DIMENSION CALCULATION ALGORITHM

The system implements dimension calculation using PIL (Python Imaging Library)[30]. This includes series of image
processing paradigms primarily by exploiting numpy python package and OpenCV[29]. NumPy gives fundamental
operations for scientific computing. To get the dimension of the image we follow these following steps -

 PIL opens the image and NumPy converts it into numpy array
 Detect the image of the vehicle by assuming that every pixel has blue value larger than the median of all blue
values.
 The next step includes calculation of rotated bounding box which finally gives the
 coordinates of all the corners of the image and in turn gives the height and width of the image.

Let the four corners be -


C1 (x1,y1) C2(x2,y2) C3 (x3,y3) C4(x4,y4) For reference x1=y1=0 , y2=x3=0

Copyright to IJIRMET www.ijirmet.com 84


ISSN (Online): 2456-0448
International Journal Of Innovative Research In Management, Engineering And Technology
Vol. 2, Issue 6, June 2017

C1 is (0 ,0) , C2 ( x2,0) ,C3(0 ,y3), C4( x4,y4 ) Width = x2


Height= y3
x4 and y4 may arise some defeclection but can be ignored. If its deviation from x2 and y3 is more it can be normalised.
Then the height and width can be calculated as -
Width = x4+x2/2 (mean) Height =y3+y4/2 (mean)

These normalised height and width can be used for exact calculation of the bill amount for parking. Further the bill
algorithm proposed in section III is used to generate cost by making some category of vehicles.

V. “INTERNET OF THINGS” BASED EXPERIMENTAL SETUP

The basic experimental setup includes as Raspberry-pi microcomputer installed with a pi-camera, PIR motion sensor and 4
LEDs to indicate the state of the slot which may be empty or filled[11]. Secondly a user friendly mobile application is
also demonstrated connected with Firebase database and Twilio web services. The first part is the hardware part which acts
as a data acquisition unit upon getting connected by cloud database. This is done using python and cloud API (Application
Programming Interfaces)[3]. Second part of the experimental setup includes the software which consists of end user mobile
application[10] and administration website which is also in turn connected to cloud to fetch data.

Fig. 4. Circuit Diagram of the interconnection of Pi and LED's

Copyright to IJIRMET www.ijirmet.com 85


ISSN (Online): 2456-0448
International Journal Of Innovative Research In Management, Engineering And Technology
Vol. 2, Issue 6, June 2017

Fig. 5. Mid-sized Raspberry Pi connected to pi camera

Fig. 6. Connection of LED's and PIR motion sensor

VI. RESULTS AND METRICS

RESULTS

The figure illustrates the system generating the output with a step by step working flow. The results are enlightened using
android application and terminal of Raspberry-Pi and the background working code has been generated by using python
and PHP. For the demonstration process the application contains only two slots.

Copyright to IJIRMET www.ijirmet.com 86


ISSN (Online): 2456-0448
International Journal Of Innovative Research In Management, Engineering And Technology
Vol. 2, Issue 6, June 2017

Fig. 7. Android Mobile Application

A comparison between existing systems and proposed system has been made on the grounds of various parameters such as
cost, speed and performance, ease of access, scalability and heterogeneity. The proposed system is scalable because the
services operates for more than expected number of users without degrading the performance. Secondly since the sensors,
clouds,
and web services which belong to different genres, the system proves to maintain heterogeneity. Moreover the usage of
APIs with python helps integrating thing in a better way. Table 1 gives a brief explanation of the metrics which has been
used to compare.

VI. CONCLUSION

In this paper the design and implementation of a smart parking system has been demonstrated with usage of Internet Of
Things, Clouds and Web services. It shows a prior booking of a parking slot with an added functionality of bill amount
calculation using PIR sensor and camera image processing by dimension analysis using various libraries of python
programming language. As compared to the current available systems this system is more robust, heterogeneous, scalable ,
fast and user friendly which removes one of the most important and deadly problem of today's smart cities which is parking
problem. This in turn also reduces vehicle congestion and helps in establishing clean traffic. The implementation of cloud
based IoT for parking has been highlighted in this paper.
Parameters
Cost Performance Speed Ease of Scalability Heterogeneity
System
Access

Proposed System Low Depends on network Fast and UI provides Yes. Yes. Devices from
connections reliable easy way to Devices can different genres can be
access the be upgraded. added.
services.
RFID High Depends on Fast No No No
transponders interface
GPS capable High Depends on network Slow No ease of No No
System connections with access.
GPS satellite.

Copyright to IJIRMET www.ijirmet.com 87


ISSN (Online): 2456-0448
International Journal Of Innovative Research In Management, Engineering And Technology
Vol. 2, Issue 6, June 2017

Electromagnetic Low Good but generally Fast and Easy to No No


Parking Sensor used in reverse Reliable access
parking.
Active Infrared Low Depends on the Slow Not easy to Yes Yes
System quality of sensor. access.
Some are much
sensitive to
environment.
Magnetometer High Depends on weather Slow Not easy to Yes No
based system conditions. access

Table 1: Comparison of proposed system with other systems based on various parameters.
VII. BIBLIO-GRAPHY REFERENCES

[1] G. Revathi V. R. Sarma Dhulipala Smart Parking Systems and Sensors: A Survey Computing, Communication and
Applications (ICCCA), 2012 International.Conference10.1109/ICCCA.2012.6179195/IEEE

[2] Georgios Tsaramirsis Ioannis Karamitsos Charalampos Apostolopoulos Smart Parking :An IOT Application for
Smart City . Computing for [14] L. Sanchez et al., "SmartSantander: IoT experimentation over a smart city
testbed", Comput. Netw., vol. 61, pp. 217-238, 2014. Sustainable Global Development (INDIACom), 2016
3rd International Conference on 16426805/IEEE/

[3] Diaz Ballesteros E.A.,Castro Calderon C.E., Castro Calderon Y., Gomez Strauss E., ” Android management tool, that
controls electronic devices through a Raspberry Pi under the IOT model,” Computing Colombian Conference (10CCC), pp.
237 -244, 2015

[4] Ansari A.N., Sedky M, Sharma N., Tyagi A., An Internet of things ap-proach for motion detection using Raspberry Pi,
International Conference on Intelligent Computing and Internet of Things (ICIT), pp. 131-134, 2014

[5] Y. Geng and C. G. Cassandras, ‘‘A new ‘smart parking’ system based on optimal resource allocation and reservations,’’
in Proc. 14th Int. IEEE Conf. Intell. Transp. Syst. (ITSC), Oct. 2011, pp. 979–984.

[6] C. W. Hsu, M. H. Shih, H. Y. Huang, Y. C. Shiue, and S. C. Huang, ‘‘Verification of smart guiding system to search
for parking space via DSRC communication,’’ in Proc. 12th Int. Conf. ITS Telecommun. (ITST), 2012, pp. 77–81.

[7] D. J. Bonde, R. S. Shende, K. S. Gaikwad, A. S. Kedari, and A. U. Bhokre, ‘‘Automated car parking system commanded
by Android application,’’ in Proc. Int. Conf. Comput. Commun. Inform. (ICCCI), 2014, pp. 1–4.

[8] I. Wigmore, Internet of Things (IoT). Newton, MA, USA: TechTarget, Jun. 2014.

[9] L. Lambrinos and L. Dosis, ‘‘DisAssist: An Internet of Things and mobile communications platform for disabled
parking space management,’’ in Proc. IEEE Global Commun. Conf. (GLOBECOM), Dec. 2013, pp. 2810–2815.

[10] D. J. Bonde, R. S. Shende, K. S. Gaikwad, A. S. Kedari, and A. U. Bhokre, ‘‘Automated car parking system
commanded by Android application,’’ in Proc. Int. Conf. Comput. Commun. Inform. (ICCCI), Coimbatore, India, Jan. 2014,
pp. 1–4.

Copyright to IJIRMET www.ijirmet.com 88


ISSN (Online): 2456-0448
International Journal Of Innovative Research In Management, Engineering And Technology
Vol. 2, Issue 6, June 2017

[11] M. Du, J. Fang, and H. Cao, ‘‘A new solution for city parking guiding based on Internet of Things and multi-level
multi-agent,’’ in Proc. Int. Conf. Electron., Commun. Control (ICECC), 2011, pp. 4093–4096.

[12] D. Georgakopoulos, P. P. Jayaraman, "Internet of things: from internet scale sensing to smart services", Computing,
vol. 98, no. 10, pp. 1041-1058
2016.

[13] J. Rivera, R. van der Meulen, "Gartner Says The Internet Of Things Installed Base will grow to 26
Billion Units By 2020", Stamford Conn Dec., vol. 12, 2013.

[14] L. Sanchez et al., "SmartSantander: IoT experimentation over a smart city testbed", Comput. Netw., vol. 61, pp.
217-238, 2014.

[15] A. Yavari, P. P. Jayaraman, D. Georgakopoulos, S. Nepal, "ConTaaS: An Approach to Internet-Scale


Contextualisation for Developing Efficient Internet of Things Applications", Hawaii International Conference on System
Sciences HICSS-50, 2017.

[16] J. Rico, J. Sancho, B. Cendon, M. Camus, "Parking easier by using context information of a smart city:
Enabling fast search and management of parking resources", Advanced Information Networking and Applications
Workshops (WAINA) 2013 27th International Conference on, IEEE, pp. 1380-1385,
2013, March.

[17] M. Du, J. Fang, H. Cao, "A new solution for city parking guiding based on Internet of Things and multi- level multi-
agent", International. Conference Electron Common. Control (ICECC), pp. 4093-4096, 2011

[18] Y. Geng, C. G. Cassandras, "New ‘smart parking’ system based on resource allocation and reservations", IEEE
Trans. Intell. Transp. Syst., vol.14, no. 3, pp. 1129-1139, Sep. 2013.

[19] X. Zhao, K. Zhao, F. Hai, "An algorithm of parking planning for smart parking system", Proc. 11th World
Congr. Intell. Control Autom. (WCICA), pp. 4965-4969, 2014.

[20] "Smart parking: an Application of optical Wireless Sensor Network", Proceedings of the International Symposium
on Applications and the Internet Workshops, 1906.

[21] L.Y. Mimbela, L.A. Klein, "A summary of vehicle detection and surveillance technologies used in intelligent
transportation systems", New Mexico State University Tech. Report, 2007.

[22] B. Halleman, "Europe's space program (parking space naturally)", Traffic Technology International, pp.
46-49, February/March 2003.

[23] H. Wang, W. He, "A Reservation-based Smart Parking System", Computer Communications Workshops
(INFOCOM WKSHPS) 2011 IEEE Conference on Shanghai, pp. 690-695, 2011.

[24][online]Available:http://www.bu.edu/energy/smart-parking/

[25][online]Available:http://www.pcmag.com/encyclo pedia/term/65086/smart-parking.

[26] R.G. Thompson, P. Bonsall, "Drivers' response to parking guidance and information systems", Transport Reviews, vol.
17, no. 2, pp. 89-104, 1997.

Copyright to IJIRMET www.ijirmet.com 89


ISSN (Online): 2456-0448
International Journal Of Innovative Research In Management, Engineering And Technology
Vol. 2, Issue 6, June 2017

[27] K. Ashton, "That “Internet of Things", Thing RFID Journal online Available:
http://www.rfidjournal.com/article/print/4986.

[28] E. Savitz, "Gartner:10 Critical Tech trends for the next years", [online] Available:
http://www.forbes.com/sites/ericsavitz/2012/10/22/gart ner-10-critical-tech-trends-for-the-next-five-years/.

[29] [online]http://www.pyimagesearch.com
/2016/03/28/measuring-size-of-objects-in-an-image- with-opencv/

Copyright to IJIRMET www.ijirmet.com 90

View publication stats

You might also like