Professional Documents
Culture Documents
Part B&C - Cat3
Part B&C - Cat3
Part B&C - Cat3
Q.NO QUESTIONS
1 List and describe different categories of IoT tools.
IoT development means combining hardware parts and software
programs in such a way that the final product could monitor specific
values, collect and transfer data, analyze given data and cause the
physical device to act correspondingly.
Moreover, the Internet of Things has already been transformed into
an industry in its own right, so the need for reliable and
comprehensive developer toolkits has also increased.
IoT development tools needed to create complex applications are
represented by IoT hardware devices (boards, SoM, SoC, sensors,
gateways, trackers, and more), IoT app development platforms, IoT
operating systems (e.g., Embedded Linux) and programming
languages
The 15 most popular tools currently used for IoT projects are Arduino
Flutter Kinoma Tessel M2MLabs Mainspring Raspberry Pi OS
Node-RED Eclipse IoT SiteWhere DeviceHive Home Assistant
OpenRemote ThingsBoard MilesightDeviceHub Zetta
1. Arduino :
Arduino is the leading company on the IoT market that
produces electronic devices and software for them. Arduino
hardware offerings include microcontroller boards, modules,
shields and kits.
Hardware specifications are suitable for creating various
projects, such as robotics and home automation.
Software products are represented by: Arduino IDE — an
open-source prototyping platform, which can be used to
easily write code compatible with any Arduino board.
Arduino Cloud — a single platform that enables the wireless
communication of IoT devices, as well as their remote control
and data collection.
IoT Cloud Remote — an application for creating dashboards
to control cloud-connected devices.
Web Editor — an application for coding from a browser.
2. Raspberry Pi OS :
Raspberry Pi OS, formerly known as Raspbian, is the official
operating system for the Raspberry Pi hardware. A 32-bit version is
available currently, with a 64-bit version in active development. This
is a free, Debian-based system. Raspberry includes basic programs
and utilities to make the hardware run, but it also compiles
thousands of packages and pre-compiled software for easy
installation.
3. Node-RED:
Node-RED is a free programming tool based on Node.js and
designed to integrate distributed IoT hardware and software
systems and automate their interaction. It works primarily in Linux
environments but can be installed on Android and Windows as well
(you’ll only need a Linux subsystem for WIndows). Node-RED offers
out-of-the-box repositories, interfaces for connecting to MQTT,
logic sets and format parsers, as well as the ability to write custom
components.
4. Eclipse IoT:
A wide range of open-source projects for IoT development is
gathered under the Eclipse umbrella. They include software
development platforms, frameworks, services, standards, tools for
building digital twins, fog computing and edge computing solutions,
and many more. Eclipse IoT projects focus on working with the Lua
programming language, which is considered a good fit for Internet
of Things projects.
2 Implement the analytics component for the forest fire
detection system.
Forest Fire Detection:
A big problem for countries with large forest areas is forest fires.
A fire monitoring service does the following tasks:
1. Uses OTP features for programmable WSNs and gateways
2. Measures and monitors the T, RH, CO, CO2 and infrared
light (fire generated) intensity in real time at preset
intervals
3. Each WSN uploads the program and preset measured
intervals of t1 (say, 300 s) each and the preset measured
intervals of t2 (say, on 1 or 5 s) on sensed parameters
values exceeding thresholds can instantaneously trigger
the fire-alarm algorithm
4. Configures the data-adaptation layers with calibration
parameters
5. Communicates the WSN messages at the preset intervals
to the access point associated for specific network area
6. Communicates alerts, triggers, messages and data at data-
adaptation layer using an uploaded program at associated
gateway
7. Uploads connectivity programs for gateways
8. Runs at the data-adaptation layer the faulty or inaccessible
sensors at periodic intervals
9. Integrates data with the node locations found from
mapping with node IDs, compute, and activate the alarms
using an algorithm, input-sensed and calibrated
coefficients
10. Processes the layer data and data base information, and
communicates instantaneously to nearest mobiles and
fire-fighting services near the access point gateway
11. Updates the database and communicates to a cloud
platform, such as Nimbits, my.openHAB, TCUP, AWS or
Bluemix platform
12. Modifies the preset measured intervals to t2 on activation
of the fire alarm after value changes above the configured
threshold values
13. Uses analytics to evaluate reliability index of the
preset, threshold and configuration values and need to
update alarm-algorithm and if needs improvement then
upload new algorithms
14. Uses analytics to generate and communicate
topological maps for the currently fire-infected forest area
and reachability maps for fire-fighting service equipment’s
Sensors play a vital role in forest-fire monitoring.
15. The application has tenth ranking among 50 sensor-
applications for a smarter world.
Figure shows a data-flow diagram and domain architecture
reference model for the monitoring service.
Memory:
The GPU is a specialized chip in the raspberry pi board and that is designed
to speed up the operation of image calculations. This board designed with
a Broadcom video core IV and it supports OpenGL
Ethernet Port
GPIO Pins
The general purpose input & output pins are used in the raspberry pi to
associate with the other electronic boards. These pins can accept input &
output commands based on programming raspberry pi. The raspberry pi
affords digital GPIO pins.
XBee Socket
The power source cable is a small switch, which is placed on side of the
shield. The main purpose of the power source connector is to enable an
external power source.
UART
The Universal Asynchronous Receiver/ Transmitter is a serial input &
output port. That can be used to transfer the serial data in the form of
text and it is useful for converting the debugging code
4 Write a python program for room and door REST services using
serializes.
# import datetime object
from datetime import datetime
# create a class
class Comment(object):
def __init__(self, email, content, created = None):
self.email = email
self.content = content
self.created = created or datetime.now()
# create a object
comment = Comment(email ='leila@example.com', content
='foo bar')
locks.
Home Appliances: Smart refrigerators, washing machines,
dishwashers, and ovens already exist.
Smaller Appliances: As automatic coffee pots and electric
management systems
Smart Thermostats.
void setup() {
// Initialize Serial communication
Serial.begin(9600);
void loop() {
// Read the IR sensor value
int sensorValue = digitalRead(irSensorPin);
// Check if an obstacle is detected
if (sensorValue == LOW)
{
// Obstacle detected
Serial.println("Obstacle detected!");
}
else {
// No obstacle detected
Serial.println("No obstacle detected.");
}
}
Raspberry Pi Code
import RPi.GPIO as GPIO
import time
sensor=3
GPIO.setmode(GPIO.BOARD)
GPIO.setup(sensor,GPIO.PIN)
print “IR sensor detected”
print “”
Try:
While True:
If GPIO.input(sensor):
print(“object not detected”)
While GPIO.input(Sensor):
time.sleep(0.2)
Else:
print(“object detected”)
Except KeyboardInterrupt:
GPIO.cleanup()
8 Implement smart irrigation system using REST architecture and
sensors.