03 IoT Devices 1 HW
03 IoT Devices 1 HW
IoT Devices
Dr. Bibhas Ghoshal
IIIT Allahabad
IoT Devices
2
Things
3
Physical and Virtual World
4
IoT Device – ITU Definition
5
Fundamental characteristics
• Interconnectivity: With regard to the IoT, anything can be
interconnected with the global information and communication
Infrastructure.
• Heterogeneity: The devices in the IoT are heterogeneous as
based on different hardware platforms and networks. They can
interact with other devices or service platforms through
different networks.
6
IoT System Design Cycle
Connected Devices
Information Flux
Statistics
Sensor
Cloud
Companies
HUB / Gateway
7
IoT Architecture
8
IoT Architecture : Node
Sensor
9
IoT Architecture : Gateway
Ethernet
BT
SMS
10
IoT Architecture : Services
Graphing
Machine Learning
Alerting
11
Sensors
machines
12
Type of Sensors
13
Sensors in IoT
Sensors
14
Mobile Phone : A Sensor Hub
15
Sensing Technology : Role of VLSI Design
16
VLSI Technology applied for Sensing
Micro Electro Mechanical Systems (MEMS)
• Miniaturized mechanical and electro-mechanical elements
• Moving structures fabricated on a Silicon substrate
• Made using techniques of micro-fabrication
17
Sensors - Physical parameter Sensing
18
Calibration of Sensors
Randomness in mother nature gets manifested in the sensors during fabrication
and packaging which lead to random errors in sensors
Some errors may come after prolonged use. Further, there are some errors that occur based on
the environment/operating conditions.
These errors are corrected by calibrating the sensors.
Sensor parameters are compared with any standard reference to find the error.
Pcalibrated = Pmeasured * k + b ; k = Gain and b = Bias
The process of correcting sensors output with gain and bias known as calibration compensation.
19
Sensing Circuit
Circuit input receives output of sensor/transducer
Circuit output variation is according to the variation in
physical condition
The circuit receives energy in the form of variation in
currents, voltages, their phase angle or frequencies.
20
Type of Sensors : Analog and Digital
21
Analog Sensors
22
Analog Sensor Circuit –
Conditioning, Sampling, ADC
Uses Analog to Digital Circuit (ADC) - Internal in
microcontroller or in the circuit between sensor and
microcontroller
ADC converts input signal to a digital number
23
Digital Sensor
24
Digital Sensor Circuit
25
Smart Sensor
Sensors with integrated electronics that can perform Data conversion, Bidirectional
communication, take decisions and perform logical operations
A sensor with built-in integrated circuit ( microcontroller, and sensor) which provides the
physical parameter as output on connecting it to a supply voltage and programming it.
A smart sensor for temperature gives output as hex-digit - 10 UART serial bits according
to the degree celsius. For ex. 01100100 is obtained for 100 degree Celsius considering the
sensor has been calibrated
26
Smart Sensor Node
27
Smart Sensor Network
28
Wireless Sensor Network (WSN)
Network of sensor nodes which connect wirelessly
Nodes have capability of computation, data compaction, aggregation and analysis,
communication and networking. Each node has independent computing power and
capability to send and receive responses, data forward and routing capabilities
29
Actuator
A device that takes the actions as per the input command, pulse, state (1/0), set of 1s
and 0s or control signal. An attached motor, speaker, LED or an output device converts
electrical energy into physical action
Piezoelectric vibrator : Piezoelectric crystals when applied varying electric voltages at
input generate vibrations
Motor : can be dc/ac; I/O modules available to receive control digital inputs of 1/0
deliver high currents. A cam converts rotator motion into linear motion when motor
rotates.
Relay Switch : An electronic switch can be controlled by 1/0 from the port pin of
microcontroller. A relay switch makes mechanical contact when input magnetizes with a
control circuit and pulls a lever to make the contact
30
Control Unit
Single VLSI Chip ; A core in an application specific instruction set processor, called
microcontroller
Commonly used control unit in IoT - Microcontroller unit; A core in System-on-Chip (SoC)
with SD card for embedded software and OS software
Ex : ARM Cortex, ATmega328
Microcontroller components : Processor, Internal RAM, Internal Flash and
Firmware, Timers, Programmable I/O Ports, General purpose I/Os, Serial I/O Ports, PWM,
ADC, Communication Network Interfaces
31
System on Chip
A circuit on a single silicon chip, consisting of multiple processors, hardware units and the embedded
software
A VLSI chip that has multiple processors, software and all the needed digital as well as analog
circuits’ on-chip; A SD card stores external programs and OS and enables use of the chip distinctly for
a particular purpose
A SoC can be of different platforms : Raspberry Pi
32
Arduino
33
Raspberry Pi
Low cost mini computer, allows interfacing sensors
though GPIOs, runs Raspbian OS ( a Liux variant),
supports Python
34
Programming Raspberry Pi
#Switch Pin
GPIO.setup(25, GPIO.IN) #LED Pin
GPIO.setup(18, GPIO.OUT) state=false
def toggleLED(pin):
state = not state
GPIO.output(pin, state)
while True:
try:
if (GPIO.input(25) == True):
toggleLED(pin)
sleep(.01)
except KeyboardInterrupt:
exit()
35
Node MCU
NodeMCU is a low-cost open source IoT platform. It initially included firmware which runs on the
ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which was based on the ESP-12 module.
Later, support for the ESP32 32-bit MCU was added.
Memory: 128kBytes
Developer: ESP8266 Opensource Community
CPU: ESP8266(LX106)
Storage: 4MBytes
36
RFID ( Radio Frequency ID) Technology in IoT
37