Professional Documents
Culture Documents
The Internet of Things (IoT) is the network of physical objects embedded with electronics,
software, sensors, and network connectivity, which enables these objects to collect and
exchange data.
IoT allows objects to be sensed and controlled remotely across existing network
infrastructure
IoT enables any time, any place and any thing connection
NOTE : Things in IoT can be physical as well as virtual
Physical things include objects such as alarm system, water boiler, car, human beings, etc
Virtual things include online notification platforms, email, stocks, traffic, etc
All IoT systems contain the following elements :
1. Sensors and Actuators
Sensor – device that converts physical parameter to electrical output. Eg) light,
temperature, humidity, sound sensor, etc
Actuator – device that converts electrical signal to a physical output. Eg) creating
sound, vibrate, rotate
3. Server/Middleware platforms
Evolution of IoT
Data-Information-Knowledge in IoT
Data - Raw and unprocessed data obtained from IOT devices (generally does not have
meaning just on its own)
Information - Inferred/summarized from data by filtering, processing, categorizing data
Knowledge - Inferred from information by structuring information and is put into action to
achieve specific objectives.
Eg) Weather Monitoring system
Data - ((72,45);(84,56))
Information - Average temperature and humidity readings for last 5 minutes
Knowledge - An alert is raised if average temp in last 5 minutes exceeds 120F
Definition of IoT
A dynamic global network infrastructure with self-configuring capabilities based on
standard and interoperable communication protocols where physical and virtual “things”
have identities, physical attributes, and have virtual personalities and use intelligent
interface, and are seamlessly integrated into the information network, often communicate
data associated with users and their environments.
Characteristics of IoT :
1. Dynamic and self adapting – dynamically adapt to changing contexts and take action
based on environment conditions
2. Self-configuring – large number of devices can be connected & configured and thus,
can work together with minimal manual intervention
4. Unique identity – each device has unique identifier (such as IP address or URI)
To send a char (8-bits) over UART, the char is enclosed within a start and a stop bit, so to
send 8-bits of char data, it would require 2-bit overhead. This 10-bit of information is called a
UART frame.
Advantages of UART :
High speed not required
Cheap communication
Single wire for each direction
2 UARTs communicate directly with each other
PaaS(Platform as a Service) - Clients can install, build and modify or control applications.
Here, runtime, middleware, OS is provided by cloud.
Ex: Google App Engine
SaaS(Software as a Service) - Clients can access and use software at remote location using a
web browser.
Ex: Google documents
Advantages of cloud computing :
Effectively infinite size, so no worry about running out of capacity
Can access cloud-based applications from anywhere (device and platform
independent)
Automated backup and maintenance
Elastic, pay as you go – scale up or down policy
IoT level-1
Single node/device that performs sensing, actuation, stores data, performs analysis and hosts
application.
Suitable for low-complexity and low-cost systems where data is not big
Eg) Home automation like smoke detector, lighting control
IoT level-2
Single node/device that performs sensing, actuation.
Data is stored in cloud and application is cloud-based
Suitable for systems where data involved is big, but data analysis is not computationally
intensive.
Eg) Smart irrigation
IoT level-3
IoT level-4
Multiple nodes/devices perform sensing, actuation
Data is stored in cloud and application is cloud-based
Contains local and cloud-based observer nodes which can subscribe and receive information
collected in the cloud from IoT devices.
Suitable for systems where multiple nodes are required, data is big and data analysis is
intensive
Eg) Noise monitoring (using sound sensors)
IoT level-5
Multiple end nodes and one coordinator node. End nodes perform sensing and actuation.
Coordinator node collects data from end nodes and sends it to cloud.
Data is stored in cloud and application is cloud-based.
Suitable for systems based on wireless sensor networks, data is big and analysis is intensive.
Eg) Forest fire detection
IoT level-6
Multiple end nodes. End nodes perform sensing and actuation.
Centralized controller is aware of status of all end nodes and sends control commands to end
nodes.
Data is stored in cloud and application is cloud-based.
Eg) Weather monitoring system (wind speed, temperature, humidity, pressure sensors)
M2M area network – consists of machines which have embedded hardware for sensing,
actuation and communication
Communication protocols include ZigBee, Bluetooth, 6LoWPAN, IEEE 802.15.4
Provides connectivity between nodes within area network
Non-IP based communication
Cannot communicate with nodes of external network
For communication with external network, M2M gateway are used
M2M gateway
M2M area networks use non-IP based protocols, hence M2M gateway is required to send data
from one network to another
Acts as a proxy providing translations from/to native protocols to/from Internet protocol(IP)
Within M2M gateway, each node in M2M area network appears as virtual node
IoT v/s M2M
NOTE : Communication within M2M area networks is based on protocols below the network
layer whereas IoT is based on protocols above the network layer.
Microcontroller - A microcontroller is a compact computer on a single integrated circuit
(chip) that is designed to control specific functions in embedded systems.
RP2040 Microcontroller
Raspberry Pi Pico W
A low-cost Arm-based microcontroller based on RP2040 Microcontroller & CYW43439
WiFi+BLE Chip.
Raspberry Pi Pico W can be programed using C/C++ and MicroPython.
Raspberry Pi Pico W pairs RP2040 with 2MB of flash memory, and a power supply chip
supporting input voltages from 1.8–5.5V. It provides 26 GPIO pins, three of which can
function as analog inputs.
The CYW43439 wireless chip is connected via SPI to the RP2040, which supports both
802.11 wireless and Bluetooth.
Features of Raspberry Pi Pico W board :
21 mm × 51 mm form factor
RP2040 microcontroller chip and Dual-core Arm Cortex-M0+ processor
264 KB on-chip SRAM and 2MB on-board flash memory
2.4 GHz 802.11n wireless LAN and Bluetooth 5.2
26 multifunction GPIO pins, including 3 analog inputs
Micro USB B port for power and data
2 × programmable I/O (PIO) blocks, 8 state machines in total
2 × UART, 2 × SPI controllers, 2 × I2C controllers, 16 × PWM channels
Supported input power 1.8–5.5V DC
Operating temperature -20°C to +70°C
Low-power sleep and dormant modes and accurate on-chip clock
Temperature sensor
GND: This is a 0 volts ground. Several GND pins present to make wiring easier
Total 8 GND pins (including 1 AGND pind)
VBUS: 5 volts power. Used to power hardware which needs more than 3.3 V.
Scanning WiFi Access Points : The WiFi chip will scan all the available network and shows
the list of all the network in Shell window.