LEC-1 Sensors+Actuators -1
LEC-1 Sensors+Actuators -1
1
Book
Levels
•IoT devices,
•IoT network,
•IoT services platform, and
•IoT applications.
• The two main requirements for “Things” in IoT are sensing and addressing.
Sensing is essential to identify and collect key parameters for analysis, and
addressing is necessary to uniquely identify things over the Internet.
While sensors are very crucial in collecting key information to monitor and
diagnose the “Things,” they typically lack the ability to control or repair such
“Things” when overhaul is needed
This raise the question: why spend money to sense “Things” if they cannot be
controlled?
Actuators have been introduced to address this important question in IoT.
With this in mind, the key requirements for “Things” in IoT now consist of
sensing, actuating, and unique identification
The massive growth of connected things and objects will be sensors and
actuators, so it is important to understand their relationship in the
architecture.
It is important to understand the principles of what is being measured, and
why.
One should ask, "What type of sensor or edge device should I consider for the
problem I'm trying to solve?“
• An architect should consider aspects of cost, features, size, usable life, and
precision when deploying an IoT solution.
• Additionally, the power and energy of edge devices are rarely addressed in
IoT literature, but are critical to building reliable and long lasting
technology.
Overview
6
IRIS Sensor Nodes are true IoT devices focused on sensor data collection and autonomous
network communication.
Apple iPhones can be part of IoT applications as smart controllers or user interface systems that
interact with and manage IoT devices and data, though they are not "IoT devices" in the classic
sense of solely collecting and transmitting data autonomously.
7
IRIS sensor node vs Apple iPhone 5
• Three-axis gyro
• Accelerometer
• Proximity sensor
• Ambient light sensor
• GPS
• Microphone, Camera
• Touchscreen
IRIS Sensor node iPhone 5
8
Hardware
components
9
Hardware components
Sensor(s)
RAM
Flash
ADC Memory
Controller Radio
IO
Power unit
1
0
Hardware components
Sensor(s) Actor(s)
RAM
Flash
ADC Memory
Controller Radio
IO
Power unit
11
Hardware components
Controller Radio
IO
Power unit
1
2
Hardware components
13
Hardware components
14
Controller
15
Controller
• The controller is the Central Processing Unit (CPU) of
the device
• Different architectures possible
• Microcontroller (MCU)
• Resource constrained compared to desktop processors
• Software controlled, general purpose
16
Controller [Adams]
17
Controller
• Tasks of the controller
• Running of (real time) data processing and communication
protocols
18
Controller
19
Controller: Overview of some popular MCUs
8 bit RISC 16 bit RISC 16 bit RISC 32 bit RISC 32 bit RISC
RAM 8 kB 10 kB 4 kB 98 kB 1 MB
Price ~12 € ~5 € ~5 €
20
Memory
• Properties Instruction
• Often different program and data memory Memory
-> Harvard architecture
• No memory management unit (MMU) available
• Size of memory varies Controller
• May depend on the application
21
Communication interface
22
Communication interface: Radio
23
Communication interface: Radio
24
Communication interface: Radio
Frequency 2.4 GHz 2.4 GHz 868 MHz 13.56 MHz 2.4 GHz
Data rate 250 kbps 732 kbps-2.1 Mbps 40-150 kbps 424 kbps 11 Mbps
Energy
consumption (send, 10-20 mA 30 mA 25 mA <15 mA 120-180 mA
receive)
Energy
consumption 20 µA
(sleep)
25
Sensors / Actors
• Interface between digital and real world
Communication with
sensor network and/or
user
Control
Actor
Sensor
Process /
Environment
26
Sensors / Actors
27
Sensors / Actors
Example: Smart Greenhouse
Blinds
Light sensor
Lamps
Window
Water pump
Humidity sensor
Watering logic
28
Sensors
Calibration?
29
Actors
• Purpose
• Translate signals to actions
• Counterpart to sensors
• Event generation by actors
• Actors are usually developed for one applications
• Example: Water pump in greenhouse
Pump
Adapter to
sensor node
Power supply
30
Power supply
31
Energy consumption of sensor nodes
• Energy characteristic of the components
• Radio interface consumes the most energy
• Ratio of energy requirements of CPU / radio interface
• Model
E(1 Instruction of CPU) : E(Sending of 1 bit) ≈ 1:1500 – 1:2900
• Send and receive operations are roughly equal expensive
• Best energy consumption reduction: switch-off radio
32
Example: Ratio of energy consumption
• Sensor node
• iBadges
• 8-Bit RISC
Microprocessor
(ATmega128L Atmel)
• Bluetooth
33
Provisioning of energy
• Batteries
• Cheap
• Easy to use 5 cm
34
Energy harvesting
• Current approaches
• Photovoltaic
• Solar modules for sensor nodes
• Thermoelectric generators
• Conversion of temperature differences to energy
• Kinetic energy conversion
• Piezo-electric principle already tested for shoes
• MEMS gas turbines
• Convert air- or fluid streams
35
Photovoltaic [Krüger]
Battery
Solar panel
Management unit
36
Photovoltaic
• Advantages of photovoltaic
• Energy comes for “free” and is “available unlimited”
• Disadvantages
• Solar panels are expensive (~100 €)
• Depends on season/weather
• Depends on location
• Shadow vs sun
• Angle of the sun rays important
• Solar panels are large in comparison to device
37
Thermoelectric generators [micropelt]
38
Thermoelectric generators
39
Thermoelectric generators
• Advantages
• Cheap
• Energy comes for “free” and is “available unlimited”
• Disadvantages
• Temperature difference has to be known and large
• 35°C ~3600 mAh (or 2-4 AA Batteries)
40
Kinetic energy conversion
41
Kinetic energy conversion
• Advantages
• Cheap
• Energy comes for “free” and is “available unlimited”
• Disadvantages
• Continuous movement required
42
Other approaches
• Piezo-Effect
• e.g. in shoes
• Radio waves
• Sensor prototypes exists
• Laser, acoustic, …
43
Platform
s
44
Platforms: Overview of popular platforms
Platform Microcontroller Radio chip
AVRraven ATMEGA1284p, ATMEGA3290p AT86RF230
45
Platforms: IRIS Motes
• Processor
• XM2110CA based on Atmel “IRIS” without batteries
ATmega1281
• 8 bit Microcontroller
• 8 MHz
• Compute power similar to 8088
CPU from the original IBM PC
(~1982), but reduced energy
• Radio chip consumption
• AT86RF230
• IEEE 802.15.4
• ZigBee compatible
• 2.4 GHz, 250 kbps,
up to 300 m (outdoor), up to 50 m
(indoor)
•Memory
• 4 kB EEPROM
• 8 kB RAM
• 128 kB program Flash Memory
• 512 kB measurement Flash Memory
46
Platforms: IRIS Motes
• Size and weight
• 5.8 x 3.2 x 0.7 cm
• Without batteries & sensor board: 18 g
• Energy supply
• 2 x AA batteries to provide required voltage
• Microcontroller: 8 µA (sleep), 8 mA (active)
• Radio chip: 15.5 mA (receive), 17.4 mA (send), 1.5 mA (idle), 0.02 µA (sleep)
• Periphery
• Sensor boards, UART, 10bit AD-converter, Digital IO, I2C, SPI Bus, JTAG ICE, 51 Pin
Connector
• Producer
• MEMSIC (formerly Crossbow)
• Costs
• 134$ / without sensor board
47
Platforms: IRIS Motes
• Sensors
• Onboard: 3 LEDs
• Additional sensor boards
• Light
• Temperature
• Humidity
• Barometric pressure
• Accelerometer “MTS400/420”
• GPS
• Analog and digital I/O interfaces
• Memory for data
48
Platforms: Particle
• Processor
• PIC 18F720
• 20 MHz
• 8 bit
• Radio chip
• TR1001
• 125 kbps
• 868.35 MHz
• Memory
• On-Chip
• 4 kB RAM
• 128 kB Flash
• 1 kB EEPROM
• Extern
• 500 kB Flash for data
• File system: ParticleFS
• Size
• 4.5x2.7 cm incl. batteries
49
Platforms: Particle
• Energy supply
• Flexible w.r.t. voltage: 0.9 V – 3.3 V
• AAA, 2xAAA, AA
• Periphery
• 21 pin interface with I2C, SPI, Serial (625 kbps), Parallel bus,
Analog interface, Interrupt interface, Digital I/O
• Programming
• C
• Producer
• TeCO, KIT (formerly spin-off: Particle Computer GmbH)
• Costs
• 120 € per node, with batteries 130 €
50
Platforms: Particle
51
Platforms: Arduino
52
TelosB
•Processor: TelosB uses a Texas Instruments MSP430
microcontroller, which is known for its low power consumption.
•Usage: Widely used for its compact size and integrated sensors,
making it suitable for environmental data collection and wireless
sensor network research.
Operating systems
54
Operating systems
• Properties of an OS
• Architecture
• Programming model
• Scheduling
• Memory management and protection
• Communication protocols
• Resource sharing
• Support for real-time applications
55
Operating systems: Properties
56
Operating systems: TinyOS
57
Operating systems: Contiki
58
Operating systems: MANTIS
59
Operating systems: Nano-RK
60
Operating systems: Summary
MANTIS Layered Threads Five priority classes and To some extent at process
further priorities in each scheduling level
priority class (implementation of priority
scheduling within different
processes types).
Contiki Dynamic memory management and linking. No uIP and RIME Serialized Access
process address space protection.
MANTIS Dynamic memory management supported but use At kernel level COMM layer. Through semaphores.
is discouraged, no memory protection. Networking Layer is at user
level. Application is free to
use custom routing
protocols.
Nano-RK Static memory management and no memory Socket like abstraction for Serialized access through
protection. networking. mutexes and semaphores.
Provide an implementation
of priority ceiling algorithm
for priority inversion.
LiteOS Dynamic memory management and it provides File based communication. Through synchronization
memory protection to processes. primitives.
µkleos Static and dynamic memory management, no 6LoWPAN w/ TCP/UDP Through mutexes.
memory protection.
Summary
63
Summary
64