Module-4 (PDFDrive)
Module-4 (PDFDrive)
Books Referred
Arshdeep Bahga, Vijay Madisetti, ”Internet of Things:
A Hands on Approach” Universities Press., 2015
Introduction
IoT for
Home Automation,
Cities,
Environment,
Agriculture,
Productivity Applications.
Home Automation
Incudes
Smart Lighting
Home Intrusion Detection
Home Automation
Smart Lighting
Deployment design
Service specification for the system
Web application screenshot
Schematic diagram
Controller Service
Home Automation
Smart Lighting
Control the lights in a typical home remotely using
web application.
The system includes auto and manual mode.
In Auto mode, the system measures the light in room
and switches on the light when it gets back.
In manual mode system provide the option of manually
remotely switching on/off the light
Home Automation
Smart Lighting
Home Automation
Smart Lighting
The system has two REST services (mode and state)
and a controller native service.
Next slides shows the specification of the mode and
state REST services of the Home automation system.
Home Automation
Smart Lighting
The mode service is the RESTful web service that sets mode to Auto or
Manual (PUT request) or retrieves the current mode (GET request).
The mode is updated to/retrieved from the database.
Home Automation
Smart Lighting
The state service is a RESTful web service that sets light appliance state
to on/off (PUT request) or retrieves the current light state (GET
request).
The state is updated to/retrieved from status database.
Home Automation
Smart Lighting
Screenshot of Home automation web application
Home Automation
Smart Lighting
Schematic diagram of the home automation IoT system. The devices
and components used in this example are Raspberry Pi mini computer,
LDR sensor and Relay switch actuator.
Home Automation
Smart Lighting
The specification of the controller native service that runs on
Raspberry Pi.
When in auto mode the controller service monitor the light level ad
switches the light on/off and updates the status in status database.
When in manual mode controller service retrieves current state from the
database and switches the light on/off .
Home Automation
Home Intrusion Detection
Process Specification
Domain model
Information model
Service specification for the system
Controller Service
Deployment design
Schematic diagram
Deployment of sensors
Web application screenshot
Home Automation
Home Intrusion Detection
The purpose is to detect intrusion using sensors (Such as PIR (passive infrared)
sensor and door sensor) and raise alerts if necessary.
Home Automation
Home Intrusion Detection
Each room in the home has a PIR motion sensor and each
door has a door sensor these sensor can detect motion or
opening of the doors.
Each sensor is read at regular intervals and motion
detection or door opening events are stored and alerts are
sent.
Home Automation
Home Intrusion Detection
Domain Model
Home Automation
Home Intrusion Detection
Domain Model includes physical entities for room and
door and corresponding virtual entities.
The devices used mini computer which has PIR and door
sensors attached to it.
Home Automation
Home Intrusion Detection
Information Model
Home Automation
Home Intrusion Detection
Information Model
It defines the attributes of room and door virtual entity and
their corresponding values.
The room virtual entity has an attribute ‘motion’ and the
door virtual entity has an attributes ‘state’.
Home Automation
Home Intrusion Detection
Service specification for the system:
The system has three services:
1) a RESTful web service that retrieves the current state of a
door from the database or sets the current state of a door to
open/closed
2) A RESTful web service that retrieves the current motion in
a room or sets the motion of a room to yes/no.
3) A native controller service that runs on the device and
reads the PIR and door sensors and calls the REST services for
updating the state of rooms and doors in the database.
Home Automation
Home Intrusion Detection
Service specification for the system: door service
Home Automation
Home Intrusion Detection
Service specification for the system: room service
Home Automation
Home Intrusion Detection
Service specification for the system: Controller service
Home Automation
Home Intrusion Detection
Deployment design
Home Automation
Home Intrusion Detection
Fictional and operational View specification
Home Automation
Home Intrusion Detection
Deployment of Sensors
Home Automation
Home Intrusion Detection
Schematic diagram
Home Automation
Home Intrusion Detection
Web application screenshot
Cities
Smart Parking
To detect the number of empty parking slots and send
the information over the Internet to smart parking
application backend.
This is accessed by drivers from smartphone.
Sensors are used for each parking slot to detect
whether the slot is empty or occupied.
This information is aggregated by local controller and
then send over the internet to a server.
Cities
Smart Parking
Process Specification
Domain model
Information model
Service specification for the system
Controller Service
Service specification
Deployment of sensors
Schematic diagram
Web application screenshot
Cities
Smart Parking
Process Specification
Cities
Smart Parking
Process Specification
Each parking slot has an ultrasonic sensor fixed above
which can detect the presence of a vehicle in the slot.
Each sensor is read at regular interval and the state of
the parking slot is updated in a database.
Cities
Smart Parking
Domain model
Cities
Smart Parking
Domain model
Domain Model includes physical entities for
parking slot and corresponding virtual entities.
Cities
Smart Parking
Information model
Cities
Smart Parking
Information model
It define the attributes (state) of the parking slot
virtual entity with two possible values (empty or
occupied)
Cities
Smart Parking
Service specification for the system:
1) A service that monitors the parking slots (using
ultrasonic sensors) and updates the status in a
database on the cloud (REST web service)
2) A service that retrieves the current state of the
parking slots (controller native service)
Cities
Smart Parking
Controller Service
Cities
Smart Parking
Service specification
Cities
Smart Parking
Deployment of sensors
Cities
Smart Parking
Schematic diagram
Cities
Smart Parking
Web application screenshot
Environment
Weather Monitoring System
Weather Reporting Bot
Air Pollution Monitoring
Forest Fire Detection
Environment
Weather Monitoring System
Deployment design
Schematic diagram
Controller Service
Web application screenshot
Environment
Weather Monitoring System
REST-based Implementation
The purpose of the system is to collect data on
environmental condition such as temperature,
pressure , humidity and light in an area using multiple
end nodes.
The nodes send the data to the cloud where the data is
aggregated and analysed.
Environment
Weather Monitoring System
Deployment design
Environment
Weather Monitoring System
The system consists of multiple nodes placed in
different location for monitoring temperature,
pressure , humidity and light in an area.
The end nodes are equipped with various sensors
which send data to the cloud and stored in the
database.
The analysis of data for aggregate the data and make
predictions.
The centralized controller can send control commands
to the end nodes e.g. configuring the monitoring
intervals.
Environment
Weather Monitoring System
Schematic diagram
Environment
Weather Monitoring System
The Raspberry pi mini computer and sensors for
temperature, pressure , humidity and light, ADC
Environment
Weather Monitoring System
Controller Service
Environment
Weather Monitoring System
The controller service runs as a native service on the
weather temperature, pressure , humidity and light
every 10 sec.
The controller service calls the REST service to store
these measurements in the cloud.
The setupController- Create database for different
parameters like temperature etc.
The runController- reads the sensors every 10 seconds.
Environment
Weather Monitoring System
Web application screenshot
Environment
Weather Monitoring System
WebSocket-based Implementation
It is based on Web application Meassaging Protocol
(WAMP).
The deployment design is same as Weather
Monitoring System
Environment
Weather Monitoring System
Components in the Websocket Implementation
Environment
Weather Monitoring System
The controller in the websocket implemented in WAMP application
component that runs over a websocket transport client on the IoT
device.
WAMP router runs on a websocket.
The role of the client on the device is that of a Publisher, the role of
Router is that Broker.
Publisher publish message to the topics managed by the Broker.
Subscriber subscribe to topic they are interested in with Brokers.
Brokers decouple the publisher and Subscriber.
The communication between Publisher-Broker and Broker-Subscriber
happens over a WAMP-Websocket session.
Environment
Weather Reporting Bot
Which reports weather
information by sending
tweets on Twitter using
Twitter API.
Environment
Weather Reporting Bot
Screenshot of a tweet sent by the weather reporting bot on
Twitter.
Environment
Air Pollution Monitoring
IoT based air pollution monitoring systems can monitor
emission of harmful gases by factories and automobiles
using gaseous and meteorological sensors.
The system design is similar to weather monitoring system.
The system consists of multiple nodes placed in different
locations for monitoring air pollution in an area.
The end node send the data to the cloud and the data is
stored in a cloud database.
Environment
Air Pollution Monitoring
Schematic Diagram
Environment
Forest Fire Detection
IoT based forest fire detection system use a number of
monitoring nodes deployed at different locations in a
forest.
Each monitoring node collects measurements on
ambient condition to predict whether a fire had
broken out.
The system is based on IoT deployment with multiple
end nodes and one coordinator node.
The end node performs sensing and the coordinator
node collects data from the end nodes and sends to the
cloud.
Environment
Forest Fire Detection
Schematic diagram
shows Raspberry Pi
mini computer and
temperature and
humidity sensor.
The XBee module is
used for wireless
communication
between the end node
and the coordinator
node.
Agriculture
Smart Irrigation
Smart irrigation systems use IoT devices and soil
moisture sensors to determine the amount of moisture
in the soil and release the flow of water through the
irrigation pipes only when the moisture levels go
below a predefined threshold.
Data on the moisture levels is also collected in the
cloud where it is analyzed to plan watering schedules.
Agriculture
Smart Irrigation
The design same as Home automation system.
The nodes are placed different location to monitor the
soil moisture in a field and sends data to the cloud and
stored in database.
Agriculture
Smart Irrigation
Schematic Diagram
Productivity Applications
IoT Printer
IoT printer that prints a daily briefing every morning.
The daily briefing comprises of the current weather
information, weather predictions for the day and the
users schedule for the day (Obtained from google
calendar)
Productivity Applications
IoT Printer
Schematic diagram