IoT Based Smart Parking System-REPORT
IoT Based Smart Parking System-REPORT
In recent times the concept of smart cities has gained grate popularity.
Thanks to the evolution of Internet of things, the idea of smart city now seems to
be achievable. Consistent efforts are being made in the field of IoT in order to
maximize the productivity and reliability of urban infrastructure. Problems such as,
traffic congestion, limited car parking facilities and road safety are being addressed
by IoT. In this paper, we present an IoT based cloud integrated smart parking
an IoT module that is used to monitor and signalize the state of availability of each
single parking space. A mobile application is also provided that allows an end user
to check the availability of parking space and book a parking slot accordingly. The
paper also describes a high-level view of the system architecture. Towards the end,
the paper discusses the working of the system in form of a use case that proves the
INTRODUCTION
Embedded systems range from portable devices such as digital watches and
MP3 players, to large stationary installations like traffic lights, factory controllers,
and largely complex systems like hybrid vehicles, MRI, and avionics. Complexity
varies from low, with a single microcontroller chip, to very high with multiple
units, peripherals and networks mounted inside a large chassis or enclosure.
1.1.1 History
One of the very first recognizably modern embedded systems was the
Apollo Guidance Computer, developed by Charles Stark Draper at the MIT
Instrumentation Laboratory. At the project's inception, the Apollo guidance
computer was considered the riskiest item in the Apollo project as it employed the
then newly developed monolithic integrated circuits to reduce the size and weight.
An early mass-produced embedded system was the Automatics D-17 guidance
computer for the Minuteman missile, released in 1961. When the Minuteman II
went into production in 1966, the D-17 was replaced with a new computer that was
the first high-volume use of integrated circuits.
Since these early applications in the 1960s, embedded systems have come
down in price and there has been a dramatic rise in processing power and
functionality. An early microprocessor for example, the Intel 4004, was designed
for calculators and other small systems but still required external memory and
support chips. In 1978 National Engineering Manufacturers Association released a
"standard" for programmable microcontrollers, including almost any computer-
based controllers, such as single board computers, numerical, and event-based
controllers.
As the cost of microprocessors and microcontrollers fell it became feasible
to replace expensive knob-based analog components such as potentiometers and
variable capacitors with up/down buttons or knobs read out by a microprocessor
even in consumer products. By the early 1980s, memory, input and output system
components had been integrated into the same chip as the processor forming a
microcontroller. Microcontrollers find applications where a general-purpose
computer would be too costly.
1.1.2 Applications
Embedded systems are used in transportation, fire safety, safety and security,
medical applications and life critical systems, as these systems can be isolated from
hacking and thus, be more reliable, unless connected to wired or wireless networks
via on-chip 3G cellular or other methods for IoT monitoring and control purposes.
[citation needed] For fire safety, the systems can be designed to have greater
ability to handle higher temperatures and continue to operate. In dealing with
security, the embedded systems can be self-sufficient and be able to deal with cut
electrical and communication systems. A new class of miniature wireless devices
called motes are networked wireless sensors. Wireless sensor networking, WSN,
makes use of miniaturization made possible by advanced IC design to couple full
wireless subsystems to sophisticated sensors, enabling people and companies to
measure a myriad of things in the physical world and act on this information
through IT monitoring and control systems. These motes are completely self-
contained, and will typically run off a battery source for years before the batteries
need to be changed or charged.
More sophisticated devices that use a graphical screen with touch sensing or
screen-edge buttons provide flexibility while minimizing space used: the meaning
of the buttons can change with the screen, and selection involves the natural
behavior of pointing at what is desired. Handheld systems often have a screen with
a "joystick button" for a pointing device.
Some systems provide user interface remotely with the help of a serial (e.g.
RS-232, USB, I²C, etc.) or network (e.g. Ethernet) connection. This approach gives
several advantages: extends the capabilities of embedded system, avoids the cost of
a display, simplifies BSP and allows one to build a rich user interface on the PC. A
good example of this is the combination of an embedded web server running on an
embedded device (such as an IP camera) or a network router. The user interface is
displayed in a web browser on a PC connected to the device, therefore needing no
software to be installed.
1.2 IOT
The concept of Internet of Things (IoT) started with things with identity
communication devices. The devices could be tracked, controlled or monitored
using remote computers connected through Internet. IoT extends the use of Internet
providing the communication, and thus inter-network of the devices and physical
objects, or ‘Things’. The two prominent words in IoT are “internet” and “things”.
Internet means a vast global network of connected servers, computers, tablets and
mobiles using the internationally used protocols and connecting systems. Internet
enables sending, receiving, or communicating of information. Thing in English
has number of uses and meanings. Dictionary meaning of ‘Thing’ is a term used to
reference to a physical object, an action or idea, situation or activity, in case when
we do not wish to be precise. IoT, in general consists of inter-network of the
devices and physical objects, number of objects can gather the data at remote
locations and communicate to units managing, acquiring, organizing and analyzing
the data in the processes and services. It provides a vision where things (wearable,
watch, alarm clock, home devices, surrounding objects with) become smart and
behave alive through sensing, computing and communicating by embedded small
devices which interact with remote objects or persons through connectivity. The
scalable and robust nature of Cloud computing is allowing developers to create and
host their applications on it. Cloud acts as a perfect partner for IoT as it acts as a
platform where all the sensor data can be stored and accessed from remote
locations. These factors gave rise to the amalgamation of both technologies thus
leading to the formation of a new technology called Cloud of Things(CoT). In CoT
the things(nodes) could be accessed, monitored and controlled from any remote
location through the cloud. Due to high scalability in cloud any number of node
could be added or removed from the IoT system on a real time basis. In simple
terms IoT can be explained in form of an equation stating:
The ideal of creating a Smart City is now becoming possible with the
emergence of the Internet of Things. One of the key issues that smart cities relate
to are car parking facilities and traffic management systems. In present day cities
finding an available parking spot is always difficult for drivers, and it tends to
become harder with ever increasing number of private car users. This situation can
be seen as an opportunity for smart cities to undertake actions in order enhance the
efficiency their parking resources thus leading to reduction in searching times,
traffic congestion and road accidents. Problems pertaining to parking and traffic
congestion can be solved if the drivers can be informed in advance about the
availability of parking spaces at and around their intended destination. Recent
advances in creating low-cost, low-power embedded systems are helping
developers to build new applications for Internet of Things. Followed by the
developments in sensor technology, many modern cities have opted for deploying
various IoT based systems in and around the cities for the purpose of monitoring.
A recent survey performed by the International Parking Institute reflects an
increase in number of innovative ideas related to parking systems. At present there
are certain parking systems that claim to citizens of delivering real time
information about available parking spaces. Such systems require efficient sensors
to be deployed in the parking areas for monitoring the occupancy as well as quick
data processing units in order to gain practical insights from data collected over
various sources.
Fig 1.4 Smart Parking System
Cloud computing and IoT have witnessed large evolution. Both the
technologies have their advantages, however several mutual advantages can be
foreseen from their integration. On one hand, IoT can address its technological
constraints such as storage, processing and energy by leveraging the unlimited
capabilities and resources of Cloud. On the other hand, Cloud can also extend its
reach to deal with real world entities in a more distributed and dynamic fashion by
the use of IoT. Basically, the Cloud acts as an intermediate between things and
applications, in order to hide all the complexities and functionalities necessary for
running the application. Below are some of the factors that led to the amalgamation
of Cloud and IoT.
The devices being used under IoT have limited processing capabilities. Data
collected from various sensors is usually transmitted to more powerful nodes
where its aggregation and processing can be done. The computation needs of IoT
can be addressed by the use of unlimited processing capabilities and on-demand
model of Cloud. With the help of cloud computing, IoT systems could perform
real-time processing of data thus facilitating highly responsive applications.
1.4.4 Scalability
1.4.5 Availability
Any time anywhere availability of resources becomes very easy with cloud
integration. Many of the cloud providers assure 5 nine availability. With cloud, the
applications are always up and running and continuous services are being provided
to the end users.
1.4.6 Interoperability
IoT involves the use of devices that are heterogeneous in nature. These
devices may have different hardware or software configurations as a result causing
compatibility issues. It becomes very difficult in an IoT environment to ensure
interoperability among these devices. Cloud helps in addressing this problem as it
provides a common platform where various devices can connect and interact.
Devices are allowed to share and exchange data in a format that is acceptable to
them.
CHAPTER 2
LITERATURE REVIEW
2.1 Rico, J., Sancho, J., Cendon, B., & Camus, M. (2013, March). Parking
easier by using context information of a smart city: Enabling fast search and
management of parking resources. In Advanced Information Networking and
Applications Workshops (WAINA), 2013 27th International Conference on
(pp. 1380-1385). IEEE.
2.2 Zheng, Y., Rajasegarar, S., & Leckie, C. (2015, April). Parking availability
prediction for sensor-enabled car parks in smart cities. In Intelligent Sensors,
Sensor Networks and Information Processing (ISSNIP), 2015 IEEE Tenth
International Conference on (pp. 1-6). IEEE.
2.3 Zhou, F., & Li, Q. (2014, November). Parking Guidance System Based on
ZigBee and Geomagnetic Sensor Technology. In Distributed Computing and
Applications to Business, Engineering and Science (DCABES), 2014 13th
International Symposium on (pp. 268-271). IEEE.
Concerning the phenomenon that common parking service could not satisfy the
increasing demand of the private vehicle owners, an intelligent parking guidance
system based on Zig Bee network and geomagnetic sensors was designed. Real-
time vehicle position and related traffic information were collected by geomagnetic
sensors around parking lots and updated to center server via Zig Bee network. On
the other hand, out-door Liquid Crystal Display screens controlled by center server
can display information of available parking places. In this paper, guidance
strategy was divided into four levels, which could provide clear and effective
information to drivers. The experimental results prove that the distance detection
accuracy of geomagnetic sensors was within 0.4m, and the lowest package loss
rate of the wireless network in the range of 150m is 0%. This system can provide
solution for better parking service in intelligent cities. With the acceleration of
transportation construction pace, intelligence transportation has become the
development direction of urban traffic management, it is an important way to ease
traffic congestion and improve the efficiency of transportation and management.
Current road traffic information collection technologies mainly include that GPRS
wireless communication technology, infrared detection technology and radio
frequency identification (RFID) technology. GPRS communication technology
must pay extra fee for network using to operators and will easily lead to
communication delay when the network is busy; infrared detection communication
distance is shorter and will be affected by car's thermal radiation; although passive
RFID technology can achieve accurate vehicles' position and anti-jamming
performance is ideal, it only supports star network, the amount of transferred data
and communication distance will be very limited, so it is not easy to mass
deployment and difficult to promote.
2.4 Botta, A., de Donato, W., Persico, V., & Pescapé, A. (2014, August). On the
Integration of Cloud Computing and Internet of Things. In Future Internet of
Things and Cloud (FiCloud), 2014 International Conference on (pp. 23-30).
IEEE.
Cloud computing and Internet of Things (IoT), two very different
technologies, are both already part of our life. Their massive adoption and use is
expected to increase further, making them important components of the Future
Internet. A novel paradigm where Cloud and IoT are merged together is foreseen
as disruptive and an enabler of a large number of application scenarios. In this
paper we focus our attention on the integration of Cloud and IoT, which we call the
CloudIoT paradigm. Many works in literature have surveyed Cloud and IoT
separately: their main properties, features, underlying technologies, and open
issues. However, to the best of our knowledge, these works lack a detailed analysis
of the CloudIoT paradigm. To bridge this gap, in this paper we review the
literature about the integration of Cloud and IoT. We start analyzing and discussing
the need for integrating them, the challenges deriving from such integration, and
how these issues have been tackled in literature. We then describe application
scenarios that have been presented in literature, as well as platforms -- both
commercial and open source -- and projects implementing the CloudIoT paradigm.
Finally, we identify open issues, main challenges and future directions in this
promising field. The Internet of Things (IoT) paradigm is based on intelligent and
self configuring nodes (things) interconnected in a dynamic and global network
infrastructure. It represents one of the most disruptive technologies, enabling
ubiquitous and pervasive computing scenarios. IoT is generally characterized by
real world and small things with limited storage and processing capacity, and
consequential issues regarding reliability, performance, security, and privacy. On
the other hand, Cloud computing has virtually unlimited capabilities in terms of
storage and processing power, is a much more mature technology, and has most of
the IoT issues at least partially solved.
2.5 Ji, Z., Ganchev, I., O'droma, M., & Zhang, X. (2014, August). A
cloudbased intelligent car parking services for smart cities. In General
Assembly and Scientific Symposium (URSI GASS), 2014 XXXIth URSI (pp.
1-4). IEEE.
This paper presents the generic concept of using cloud-based intelligent car
parking services in smart cities, as an important application deployed on the
Internet of Things (IoT) paradigm. The corresponding IoT sub-system includes
sensor layer, communication layer, and application layer. A high-level view of the
system architecture is outlined. To demonstrate the provision of car parking
services with the proposed platform, a cloud-based intelligent car parking system
for use within a University campus is described along with details of its design and
implementation. Intelligent car parking services are an important part of the
Intelligent Transport Systems (ITS) with a primary purpose to find, allocate,
reserve, and provide the ‘best’ car parking lot for each individual user/driver.
Researchers show that more than 66% of drivers are willing to pay for car parking
during working hours. This directly adds value to the car parking business, which
is a stimulus for the development of intelligent car parking services for smart
cities.
2.7 Ballon, P., Glidden, J., Kranas, P., Menychtas, A., Ruston, S., & Van Der
Graaf, S. (2011, October). Is there a Need for a Cloud Platform for European
Smart Cities?. In eChallenges e-2011 Conference Proceedings, IIMC
International Information Management Corporation.
EPIC - the “European Platform for Intelligent Cities”- is more than just an
IT platform; it is a one-stop-shop where small to medium sized Cities in Europe
can find real, affordable solutions (products and services) to materialize the “Smart
Cities” concept efficiently and cost-effectively. Instead, the EPIC Smart City
roadmap, service catalogue and cloud platform enable every city in Europe to
access and deploy innovative Smart City applications that meet their budgets and
needs. EPIC offers city managers a Roadmap for their journey towards becoming a
smart city in a strategic way. The Roadmap consists of a short-term assessment
exercise covering vision, budget and delivery. EPIC also uses its cloud platform
(currently based on IBM infrastructure) to deliver Smart City solutions “as a
service”. The Roadmap and Cloud Platform provide the foundations for EPIC's
unique selling point: a marketplace for Smart City services. In this marketplace,
EPIC brings together service providers and information/data providers (from
private and public sector) in order to aggregate “Smart City services” with added
value for citizens, city visitors, businesses in the city and the city itself.
2.8 Suciu, G., Vulpe, A., Halunga, S., Fratu, O., Todoran, G., & Suciu, V.
(2013, May). Smart cities built on resilient cloud computing and secure
internet of things. In Control Systems and Computer Science (CSCS), 2013
19th International Conference on (pp. 513-518). IEEE.
Cloud Computing and Internet of Things (IoT) are currently two of the most
popular ICT paradigms that are expected to shape the next era of computing. The
convergence between cloud computing and IoT has become a hot topic over the
last few years because of the benefits that IoT could have from the distributed
nature of cloud computing infrastructures. This paper proposes a new platform for
using cloud computing capacities for provision and support of ubiquitous
connectivity and real-time applications and services for smart cities' needs. We
present a framework for data procured from highly distributed, heterogeneous,
decentralized, real and virtual devices (sensors, actuators, smart devices) that can
be automatically managed, analyzed and controlled by distributed cloud-based
services.
2.9 Chen, S. Y., Lai, C. F., Huang, Y. M., & Jeng, Y. L. (2013, July).
Intelligent home-appliance recognition over IoT cloud network. In Wireless
Communications and Mobile Computing Conference (IWCMC), 2013 9th
International (pp. 639-643). IEEE.
In recent years, under the concern of energy crisis, the government has
actively cooperated with research institutions in developing smart meters. As the
Internet of Things (IoT) and home energy management system become popular
topics, electronic appliance recognition technology can help users identifying the
electronic appliances being used, and further improving power usage habits.
However, according to the power usage habits of home users, it is possible to
simultaneously switch on and off electronic appliances. Therefore, this study
discusses electronic appliance recognition in a parallel state, i.e. recognition of
electronic appliances switched on and off simultaneously. This study also proposes
a non-invasive smart meter system that considers the power usage habits of users
unfamiliar with electronic appliances, which only requires inserting a smart meter
into the electronic loop. Meanwhile, this study solves the problem of large data
volume of the current electronic appliance recognition system by building a
database mechanism, electronic appliance recognition classification, and waveform
recognition. In comparison to other electronic appliance recognition systems, this
study uses a low order embedded system chip to provide low power consumption,
which have high expandability and convenience. Differing from previous studies,
the experiment of this study considers electronic appliance recognition and the
power usage habits of general users. The experimental results showed that the total
recognition rate of a single electronic appliance can reach 96.14%, thus proving the
feasibility of the proposed system.
CHAPTER 3
SYSTEM ANALYSIS
3.1.1 DISADVANTAGES
By measuring the distance using ultrasonic sensor drivers are able to find the
empty slot in parking to park the car and help the driver to find the slot
easily and reduce the searching time.
3.2.1 ADVANTAGES
Highly secured.
3.3 System Architecture
The parking system that we propose comprises of various actors that work in
sync with one another. Below is the mathematical model that defines our smart
parking system.
For our parking system we have made use of sensors like Infrared, Passive
Infrared(PIR) and Ultrasonic Sensors. The work of these sensors is the same i.e. to
sense the parking area and determine whether a parking slot is vacant or not. In
this case we are using ultrasonic sensors to detect the presence of a car. The
ultrasonic sensors are wirelessly connected to raspberry pi using the ESP8266 chip.
An ESP8266 Wi-Fi chip comprises of a self-contained SOC with integrated
TCP/IP protocol stack that allows any microcontroller to access a Wi-Fi network.
The sensors are connected to a 5V supply either from raspberry pi or an external
source. External source being more preferable.
The mobile application acts like an interface for the end users to interact
with the system. The application is developed in Apache Cordova and Angular Js
framework using Javascript as a programming language. The purpose of using
Apache Cordova is to create applications that can run on both android and iOS
platforms with the same source code. The application is connected with the IBM
MQTT server through a secure channel and a 2 factor authorization. The purpose
of this mobile application is to provide information regarding availability of
parking spaces and allowing the end user to book a slot accordingly. Transfer of
data takes place in JSON format between IBM MQTT server and the mobile
application. In order to ensure proper communication both the Raspberry pi and
mobile application must be subscribed to a particular channel on IBM MQTT
server.
The IBM MQTT server is hosted on cloud. Cloud acts as a data base to store
all the records related to parking areas and end users that have access to the
system. It keeps a track of every user connected to the system and maintains
information such as time at which the car was parked, time duration for parking a
car, amount paid by the user and mode of payment. It is due to the flexible nature
of cloud which permits the system to add any number of users at any time of the
day. Continuous backup is made of the data stored on cloud in order to ensure easy
and quick recovery of data in case of any kind of system failure.
On closely looking at the figure one gets to see that empty parking spaces
are indicated by red light in Lane A whereas green light in Lane B. This is due to
the fact that in case of Lane A although there is no car currently parked but there
still is a red light because the slot has already been booked by some user. On the
other hand, the parking slot in Lane B shows green light because it neither has a
booking nor a car parked in it.
In this, we talk about the implementation and working of the system in a real
world scenario. The complete process of booking a parking slot, parking a car in
that slot and leaving the parking area is explained with the help of the following
flow chart.
Ultrasonic LCD
Sensor
Ultrasonic ARDUINO
WIFI Chip
Sensor UNO
Ultrasonic
Sensor
Fig 3.2 Block Diagram
CHAPTER 4
OVERVIEW OF HARDWARE
Arduino
16x2 LCD
WIFI Chip
Ultrasonic Sensor
5.1.1 OVERVIEW
The Arduino Uno is a microcontroller board based on the ATmega328 . It
has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog
inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP
header, and a reset button. It contains everything needed to support the
microcontroller; simply connect it to a computer with a USB cable or power it with
a AC-to-DC adapter or battery to get started. The Uno differs from all preceding
boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it
features the Atmega16U2 (Atmega8U2 up to version R2) programmed as a USB-
to-serial converter. Board has the following new features:
pinout: added SDA and SCL pins that are near to the AREF pin and two
other new pins placed near to the RESET pin, the IOREF that allow the shields to
adapt to the voltage provided from the board. In future, shields will be compatible
both with the board that use the AVR, which operate with 5V and with the Arduino
Due that operate with 3.3V. The second one is a not connected pin, that is reserved
for future purposes.
Atmega 16U2 replace the 8U2. "Uno" means one in Italian and is named to
mark the upcoming release of Arduino 1.0. The Uno and version 1.0 will be the
reference versions of Arduino, moving forward. The Uno is the latest in a series of
USB Arduino boards, and the reference model for the Arduino platform; for a
comparison with previous version 2.2 Schematic & Reference Design The Arduino
reference design can use an Atmega8, 168, or 328, Current models use an
ATmega328, but an Atmega8 is shown in the schematic for reference. The pin
configuration is identical on all three processors. 2.3 Summary Microcontroller -
ATmega328 Operating Voltage - 5V Input Voltage - 7-12V (Recommended) Input
Voltage (limits) - 6-20V Digital I/O Pins - 14 (of which 6 provide PWM output)
Analog Input Pins - 6 DC Current per I/O Pin - 40 mA DC Current for 3.3V Pin -
50 mA Flash Memory - 32 KB (ATmega328) of which 0.5 KB used by bootloader
SRAM - 2 KB (ATmega328) EEPROM - 1 KB (ATmega328) Clock Speed - 16
MHz 2.4 Power The Arduino Uno can be powered via the USB connection or with
an external power supply. The power source is selected automatically. External
(non-USB) power can come either from an AC-to-DC adapter (wall-wart) or
battery. The adapter can be connected by plugging a 2.1mm center-positive plug
into the board's power jack. Leads from a battery can be inserted in the Gnd and
Vin pin headers of the POWER connector. The board can operate on an external
supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may
supply less than five volts and the board may be unstable. If using more than 12V,
the voltage regulator may overheat and damage the board. The recommended
range is 7 to 12 volts.
The power pins are as follows: VIN -The input voltage to the Arduino board
when it's using an external power source (as opposed to 5 volts from the USB
connection or other regulated power source). You can supply voltage through this
pin, or, if supplying voltage via the power jack, access it through this pin. 5V -
This pin outputs a regulated 5V from the regulator on the board. The board can be
supplied with power either from the DC power jack (7 -12V), the USB connector
(5V), or the VIN pin of the board (7-12V). Supplying voltage via the 5V or 3.3V
pins bypasses the regulator, and can damage your board. We don't advise it. 3V3-
A 3.3-volt supply generated by the on-board regulator. Maximum current draw is
50 mA. GND - Ground pins. IOREF - This pin on the Arduino board provides the
voltage reference with which the microcontroller operates. A properly configured
shield can read the IOREF pin voltage and select the appropriate power source or
enable voltage translators on the outputs for working with the 5V or 3.3V. 2.5
Memory the ATmega328 has 32 KB (with 0.5 KB used for the bootloader). It also
has 2 KB of SRAM and 1 KB of EEPROM (which can be read and written with
the EEPROM library).
Input and Output Each of the 14 digital pins on the Uno can be used as an
input or output, using pinMode(), digitalWrite(), and digitalRead ()functions. They
operate at 5 volts. Each pin can provide or receive a maximum of 40 mA and has
an internal pull-up resistor (disconnected by default) of 20-50 kOhms. In addition,
some pins have specialized functions: Serial: 0 (RX) and 1 (TX). Used to receive
(RX) and transmit (TX) TTL serial data. These pins are connected to the
corresponding pins of the ATmega8U2 USB-to-TTL Serial chip. External
Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low
value, a rising or falling edge, or a change in value. See the attach Interrupt ()
function for details. PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with
the analog Write () function. SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK).
These pins support SPI communication using the SPI library. LED: 13. There is a
built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is
on, when the pin is LOW, it's off. The Uno has 6 analog inputs, labeled A0
through A5, each of which provide 10 bits of resolution (i.e., 1024 different
values). By default, they measure from ground to 5 volts, though is it possible to
change the upper end of their range using the AREF pin and the analog Reference
() function. Additionally, some pins have specialized functionality: TWI: A4 or
SDA pin and A5 or SCL pin. Support TWI communication using the Wire library.
There are a couple of other pins on the board: AREF. Reference voltage for
the analog inputs. Used with analog Reference (). Reset. Bring this line LOW to
reset the microcontroller. Typically used to add a reset button to shields which
block the one on the board 2.7 Communication the Arduino Uno has a number of
facilities for communicating with a computer, another Arduino or other
microcontrollers. The ATmega328 provides UART TTL (5V) serial
Communication, which is available on digital pins 0 (RX) and 1 (TX). An
ATmega16U2 on the board channels this serial communication over USB and
appears as a virtual com port to software on the computer. The '16U2 firmware
uses the standard USB COM drivers, and no external driver is needed. However,
on Windows, a .inf file is required. The Arduino software includes a serial monitor
which allows simple textual data to be sent to and from the Arduino board. The RX
and TX LEDs on the board will flash when data is being transmitted via the USB-
to-serial chip and USB connection to the computer (but not for serial
communication on pins 0 and 1). A Software Serial library allows for serial
communication on any of the Uno's digital pins. The ATmega328 also supports
I2C (TWI) and SPI communication. The Arduino software includes a Wire library
to simplify use of the I2C bus; see the documentation for details. For SPI
communication, use the SPI library.
The Arduino Uno can be programmed with the Arduino software. The
ATmega328 on the Arduino Uno comes pre-burned with a bootloader that allows
you to upload new code to i without the use of an external hardware programmer.
It communicates using the original STK500 protocol (reference, C header files).
You can also bypass the bootloader an program the microcontroller through the
ICSP (In-Circuit Serial Programming) header; see these instructions for details.
The ATmega16U2 (or 8U2 in the rev1 and rev2 boards) firmware source code is
available. The ATmega16U2/8U2 is loaded with a DFU bootloader, which can be
activated by: On Rev1 boards: connecting the solder jumper on the back of the
board (near the map of Italy) and then resetting the 8U2. On Rev2 or later boards:
there is a resistor that pulling the 8U2/16U2 HWB line to ground, making it easier
to put into DFU mode. You can then use Atmel's FLIP software (Windows) or the
DFU programmer (Mac OS X and Linux) to load a new firmware. Or you can use
the ISP header with an external programmer (overwriting the DFU bootloader).
See this user-contributed tutorial for more information. 2.9 Automatic (Software)
Reset Rather than requiring a physical press of the reset button before an upload,
the Arduino Uno is designed in a way that allows it to be reset by software running
on a connected computer. One of the hardware flow control lines (DTR) of
theATmega8U2/16U2 is connected to the reset line of the ATmega328 via a 100
nanofarad capacitor. When this line is asserted (taken low), the reset line drops
long enough to reset the chip. The Arduino software uses this capability to allow
you to upload code by simply pressing the upload button in the Arduino
environment. This means that the bootloader can have a shorter timeout, as the
lowering of DTR can be well-coordinated with the start of the upload. This setup
has other implications. When the Uno is connected to either a computer running
Mac OS X or Linux, it resets each time a connection is made to it from software
(via USB). For the Following half-second or so, the bootloader is running on the
Uno. While it is programmed to ignore malformed data (i.e., anything besides an
upload of new code), it will intercept the first few bytes of data sent to the board
after a connection is opened. If a sketch running on the board receives one-time
configuration or other data when it first starts, make sure that the software with
which it communicates waits a second after opening the connection and before
sending this data. The Uno contains a trace that can be cut to disable the auto-reset.
The pads on either side of the trace can be soldered together to re-enable it. It's
labeled "RESET-EN". You may also be able to disable the auto-reset by
connecting a 110-ohm resistor from 5V to the reset line.
USB Over current Protection the Arduino Uno has a resettable polyfuse that
protects your computer's USB ports from shorts and over current. Although most
computers provide their own internal protection, the fuse provides an extra layer of
protection. If more than 500 mA is applied to the USB port, the fuse will
automatically break the connection until the short or overload is removed.
Physical Characteristics The maximum length and width of the Uno PCB are
2.7 and 2.1 inches respectively, with the USB connector and power jack extending
beyond the former dimension. Four screw holes allow the board to be attached to a
surface or case. Note that the distance between digital pins 7 and 8 is 160 mil
(0.16"), not an even multiple of the 100-mil spacing of the other pins.
Each of the 14 digital pins on the Uno can be used as an input or output,
using pinMode(), digitalWrite(), and digitalRead() functions. They operate at 5
volts. Each pin can provide or receive a maximum of 40 mA and has an internal
pull-up resistor (disconnected by default) of 20-50 kOhms. In addition, some pins
have specialized functions:
Each of the 14 digital pins on the Arduino Uno can be used as an input or output,
using pinMode(), digitalWrite(), and digitalRead() functions. They operate at 5
volts. Each pin can provide or receive a maximum of 40 mA and has an internal
pull-up resistor (disconnected by default) of 20-50 kOhms.
Serial: pins 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL
serial data. These pins are connected to the corresponding pins of the ATmega8U2
USB-to-TTL Serial chip.
PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analog Write ()
function.
The Uno has 6 analog inputs, labelled A0 through A5, each of which provide 10
bits of resolutio n (i.e. 1024 different values). By default they measure from
ground to 5 volts, though is it possible to change the upper end of their range using
the AREF pin and the analogReference() functio n.
TWI: A4 or SDA pin and A5 or SCL pin. Support TWI communication using the
Wire library.
AREF. Reference voltage for the analog inputs. Used with analogReference().
Reset. Bring this line LOW to reset the microcontroller. Typically used to add a
reset button to shields which block the one on the board.
LCD Modules can present textual information to user. It’s like a cheap
“monitor” that you can hook in all of your gadgets. They come in various types.
The most popular one is 16x2 LCD Module. It has 2 rows and 16 columns.
Select your chip and clock frequency. Then click on LCD tab. Select the
PORT at which you want to make LCD connections.
Set chars/line text box to 16, because you will be using 16*2 LCD. All the
connections of the LCD other than power connections will be displayed in the
wizard. Make other settings and then select generate save, save and exit from file
menu. To save the file, give the file name.
Once this is done, you are ready to use LCD display form your program.
You can now use inbuilt functions to write to the LCD screen.
•Near the center of the area where your computers and other devices operate,
and preferably within line of sight to your wireless devices.
•So it is accessible to an AC power outlet and near Ethernet cables for wired
computers.
•In an elevated location such as a high shelf, keeping the number of walls
and ceilings between the Wi-Fi modem router and your other devices to a
minimum.
•Away from electrical devices that are potential sources of interference, such
as ceiling fans, home security systems, microwaves, computers, or the base of a
cordless phone or 2.4-GHz cordless phone.
•Away from any large metal surfaces, such as a solid metal door or
aluminum studs. Large expanses of other materials such as glass, insulated walls,
fish tanks, mirrors, brick, and concrete can also affect your wireless signal.
ESP-01 is the one of the most popular ESP8266 module available in the
market. ESP8266 is a self contained SoC with integrated TCP/IP stack which helps
any microcontroller having UART to access a wifi network. It can act as both WiFi
access point as well as a WiFi client. It is pre-programmed with AT commands, so
we can easily access and configure it using a microcontroller. ESP8266 runs on
3.3V and its input pins are not 5V tolerant. So we need to reduce the 5V output of
the Arduino Tx pin to 3.3V by using voltage dividing resistors to connect to Rx pin
of ESP8266 module. Arduino TTL input pins will detect 3.3V as logic high, so we
can directly connect 3.3V output of ESP8266 Tx to Arduino Rx pin.
Fig 5.3 ESP 8266
An ultrasonic sensor transmits ultrasonic waves into the air and detects
reflected waves from an object. There are many applications for ultrasonic sensors,
such as in intrusion alarm systems, automatic door openers and backup sensors for
automobiles. Accompanied by the rapid development of information processing
technology, new fields of application, such as factory automation equipment and
car electronics, are increasing and should continue to do so. Using its unique
piezoelectric ceramics manufacturing technology developed over many years,
Murata has developed various types of ultrasonic sensors which are compact and
yet have very high performance. The information contained in this catalog will
help you to make effective use of our ultrasonic sensors. Ultrasonic waves are
sounds which cannot be heard by humans and are normally, frequencies of above
20kHz.
CHAPTER 6
OVERVIEW OF SOFTWARE
1.ARDUINO IDE
2.LIBRARIES
3.EMBEDDED C
Arduino boards are able to read analog or digital input signals from
different sensors and turn it into an output such as activating a motor, turning LED
on/off, connect to the cloud and many other actions.
Unlike most previous programmable circuit boards, Arduino does not need
an extra piece of hardware (called a programmer) in order to load a new code onto
the board. You can simply use a USB cable.
6.2 LIBRARIES
The Arduino environment can be extended through the use of libraries, just
like most programming platforms. Libraries provide extra functionality for use in
sketches, e.g. working with hardware or manipulating data. To use a library in a
sketch, select it from Sketch > Import Library. A number of libraries come
installed with the IDE, but you can also download or create your own. See these
instructions for details on installing libraries.
Embedded Programming
CHAPTER 7
For our parking system we have made use of sensors like Infrared, Passive
Infrared(PIR) and Ultrasonic Sensors. The work of these sensors is the same i.e. to
sense the parking area and determine whether a parking slot is vacant or not. In this
case we are using ultrasonic sensors to detect the presence of a car. The ultrasonic
sensors are wirelessly connected to raspberry pi using the ESP8266 chip. An
ESP8266 WiFi chip comprises of a self contained SOC with integrated TCP/IP
protocol stack that allows any microcontroller to access a WiFi network. The
sensors are connected to a 5V supply either from raspberry pi or an external
source. External source being more preferable
It comprises of Raspberry pi which is a processor on chip. The processing unit acts
like an intermediate between the sensors and cloud. All the sensors are wirelessly
connected to the processing unit. A single raspberry pi unit comprises of 26 GPIO
pins i.e. 26 different sensors can be connected to it. However we can increase this
number by attaching a multiplexer (MUX) to it. It is essential that the ground of
raspberry pi and sensors must be connected in order to transfer data using the
GPIO pins. There is a python script running on the chip that checks the status of
various GPIO pins and updates this information onto the cloud. Data collected
from various sensors is sent to the raspberry pi through the esp8266 chip. The
raspberry pi then transmits this data to the IBM MQTT Server through MQTT
protocol over a channel. MQTT[15] (Message Queue Telemetry Transport)
Protocol is a publish-subscribe based "light weight" messaging protocol that is
used on top of the TCP/IP protocol. It is designed to establish connections across
remote locations where limited amount of data needs to be transferred or in cases
of low bandwidth availability
The IBM MQTT server is hosted on cloud. Cloud acts as a data base to store
all the records related to parking areas and end users that have access to the
system. It keeps a track of every user connected to the system and maintains
information such as time at which the car was parked, time duration for parking a
car, amount paid by the user and mode of payment. It is due to the flexible nature
of cloud which permits the system to add any number of users at any time of the
day. Continuous backup is made of the data stored on cloud in order to ensure easy
and quick recovery of data in case of any kind of system failure.
CHAPTER 8
CONCLUSION
The concept of Smart Cities has always been a dream for humanity. Since
the past couple of years’ large advancements have been made in making smart
cities a reality. The growth of Internet of Things and Cloud technologies have
given rise to new possibilities in terms of smart cities. Smart parking facilities and
traffic management systems have always been at the core of constructing smart
cities. In this paper, we address the issue of parking and present an IoT based
Cloud integrated smart parking system. The system that we propose provides real
time information regarding availability of parking slots in a parking area. Users
from remote locations could book a parking slot for them by the use of our mobile
application. The efforts made in this paper are indented to improve the parking
facilities of a city and thereby aiming to enhance the quality of life of its people.
REFERENCES
[1] Rico, J., Sancho, J., Cendon, B., & Camus, M. (2013, March). Parking easier
by using context information of a smart city: Enabling fast search and management
of parking resources. In Advanced Information Networking and Applications
Workshops (WAINA), 2013 27th International Conference on (pp. 1380-1385).
IEEE.
[2] Zheng, Y., Rajasegarar, S., & Leckie, C. (2015, April). Parking availability
prediction for sensor-enabled car parks in smart cities. In Intelligent Sensors,
Sensor Networks and Information Processing (ISSNIP), 2015 IEEE Tenth
International Conference on (pp. 1-6). IEEE.
[3] Zhou, F., & Li, Q. (2014, November). Parking Guidance System Based on
ZigBee and Geomagnetic Sensor Technology. In Distributed Computing and
Applications to Business, Engineering and Science (DCABES), 2014 13th
International Symposium on (pp. 268-271). IEEE.
[4] Botta, A., de Donato, W., Persico, V., & Pescapé, A. (2014, August). On the
Integration of Cloud Computing and Internet of Things. In Future Internet of
Things and Cloud (FiCloud), 2014 International Conference on (pp. 23-30). IEEE.
[5] Ji, Z., Ganchev, I., O'droma, M., & Zhang, X. (2014, August). A cloudbased
intelligent car parking services for smart cities. In General Assembly and Scientific
Symposium (URSI GASS), 2014 XXXIth URSI (pp. 1-4). IEEE.
[7] Ballon, P., Glidden, J., Kranas, P., Menychtas, A., Ruston, S., & Van Der
Graaf, S. (2011, October). Is there a Need for a Cloud Platform for European
Smart Cities?. In eChallenges e-2011 Conference Proceedings, IIMC International
Information Management Corporation.
[8] Suciu, G., Vulpe, A., Halunga, S., Fratu, O., Todoran, G., & Suciu, V. (2013,
May). Smart cities built on resilient cloud computing and secure internet of things.
In Control Systems and Computer Science (CSCS), 2013 19th International
Conference on (pp. 513-518). IEEE.
[9] Chen, S. Y., Lai, C. F., Huang, Y. M., & Jeng, Y. L. (2013, July). Intelligent
home-appliance recognition over IoT cloud network. In Wireless Communications
and Mobile Computing Conference (IWCMC), 2013 9th International (pp. 639-
643). IEEE.
[10] Dash, S. K., Mohapatra, S., & Pattnaik, P. K. (2010). A survey on applications
of wireless sensor network using cloud computing. International Journal of
Computer science & Engineering Technologies (E-ISSN: 2044-6004), 1(4), 50-55.