Cloud With Iot in Smart Parking: June 2017
Cloud With Iot in Smart Parking: June 2017
Cloud With Iot in Smart Parking: June 2017
net/publication/323253794
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:
All content following this page was uploaded by Suja Radha on 09 May 2018.
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.
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),
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.
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.
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
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.
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.
Fig. 3. Inter-Connection of Raspberry Pi,Motion sensor, camera and web services with mobile application
STEP-BY-STEP PROCESS
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]
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.
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.
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.
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.
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.
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.
[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.
[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.
[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/