Professional Documents
Culture Documents
EEEM048 Lecture3 HardwarePlatform
EEEM048 Lecture3 HardwarePlatform
EEEM048 Lecture3 HardwarePlatform
− Node Architecture
− Communication Architecture
2
Sensors & Actuators
3
Sensors Characteristics
− Sensors:
− They are mainly input components in IoT
− They are devices that receive a stimulus and responds
with an electrical signal
− Basically three types:
− Passive, omnidirectional (e.g. mic)
− Passive, narrow-beam sensor (e.g. PIR)
− Active sensors (e.g. sonar, radar, etc.)
− Unit of measurements:
− SI: modernized metric system.
Quantity Name Symbol
Length Meter m
Time Second s
… 4
Transfer Function
− A transfer function for a sensor: a mathematical
function representing the input-output relation.
− Input: a physical measured parameter
− Output: usually an electrical output signal.
− It describes the system response of a sensor.
5
Transfer Function
− An example:
Output
f(x)
v1
x1
Input, x
− Nonlinear:
− Any response that is not linear
− Appropriate functions should be utilized to describe the
response (e.g. polynomial function, exponential
function, etc)
7
Transfer Function
− Multiple Inputs
− Some sensors may depend on multiple inputs
− e.g. humidity sensor (two inputs: relative humidity and
temperature)
− Saturation
− The output becomes flat at some levels of input
Output
saturation
linear
Input, x 8
Transfer Function
− Resolution
− It describe the smallest increment of stimulus
− Outputs change in small steps
− Accuracy
− It describes how close the measurement is to the true
value
− Precision or Repeatability
− It describes the difference in results when
measurements are taken repeatedly under the same
conditions
9
Sensors Technology
A Quick Overview
− Capacitive
− A change in capacitance with a change in environment
− Can detect liquids and objects based on their dielectric
constant
− Can take human body capacitance as input
− For detection of displacement, humidity, acceleration,
human contact, etc.
− Resistive
− A change in resistance with a change in environment
− Physical changes include light, force, heat, magnetic field,
etc.
− For detection of light, force, heat, etc.
− Applications include camera, street lights, music
instruments, weight sensing, touch screen, etc.
10
Sensors Technology
A Quick Overview
− Magnetic
− There are several approaches for magnetic sensing, eg.
Hall effect sensor, magneto-diode, magneto-transistor,
etc.
− Generally, they detect magnetic fields or their alteration
by ferromagnetic objects.
− For measuring of rotary movement, Earth's magnetic
field, etc.
− Inductive
− A change in the amplitude of an emitted high frequency
electromagnetic field the oscillations.
− For detection of metallic object and different metals
− Common in vehicle detection
11
Sensors Technology
A Quick Overview
− Thermoelectric
− A creation of voltage when there is a different
temperature on each side of an object
− For measurement of temperature
− Pyroelectric
− A temporary voltage generated from a certain material
when it is heated or cooled
− For human/animal motion detection, flame detection,
NDIR (Non Dispersive IR) gas analysis, etc.
− Common in PIR (Passive InfraRed) sensors
12
Sensors Technology
A Quick Overview
− Sound level
− A generation of electrical voltage signals with vibration
of air
− Two popular approaches: inductive (dynamic
microphone) and capacitive (condenser microphone)
− Common sensing application: Sound meter
13
Sensors Technology
A Quick Overview
− Electromechanical sensors
− Involving of mechanical devices.
− Some examples:
− Fluid flow measurement (e.g. mechanical flow meters),
Microelectromechanical systems (e.g. MEMS gyroscopes), etc.
− Electrochemical sensors
− Involving interaction between electricity and chemistry.
− Some examples:
− CO detector, pH meter, etc.
14
Sensors in Modern Smart Phones
Heart-rate
Proximity sensor
sensor
Ambient RGB
Light Light/Proximity/
sensor Gesture sensor
Magnetometer Gyroscope
Gyroscope Accelerometer
Barometer Barometer
Fingerprint ID
Fingerprint ID
sensor
sensor
15
Actuators
16
Signals
17
Exponential Smoothing
Previous
Output Input
Output
18
Simple Moving Average
Input
− Formulation:
Output
Number of points
− Example, say M=7:
− Recursive implementation
where
19
Node Architecture
20
A Thing
− We can turn almost every object into a “thing”.
− A “thing” still looks much like an embedded
system currently.
− A “thing” generally consists of four main parts:
− Sensors & actuators
− Microcontroller
− Communication unit
− Power supply
− A “thing” has the following properties:
− It’s usually powered by battery. This implies limited
source of energy.
− It’s generally small in size and low in cost. This limits
their computing capability.
− It doesn’t usually perform complicated tasks.
− Power consumption is the main design issue. 21
Hardware Components
Network functions Your codes are Runtime variables
are part of OS stored in the flash are stored in the
implementation memory RAM
For simple
processing
Memory
(program & data)
To communicate
with other nodes or
the gateway. Its
power consumption Sensors &
Communications Microcontroller
is relatively high. Actuators
Usually battery
powered with
very limited Power Supply
supply
22
XM1000: Processor and Memory
Very limited
resources
23
XM1000: Sensors
Sensors
Hamamatsu® Visible Range (560 nm peak sensitivity
Light 1
S1087 wavelength)
Hamamatsu® Visible & Infrared Range (960 nm peak
Light 2
S1087-01 sensitivity wavelength)
Temperature Range: -40 ~ 123.8 ºC
Temperature Resolution: : ± 0.01(typical)
Temperature & Temperature Accuracy: ± 0.4 ºC (typical)
Sensirion® SHT11
Humidity Humidity Range: 0 ~ 100% RH
Humidity Resolution: 0.05 (typical)
Humidity Accuracy: ± 3 %RH (typical)
Light, Humidity,
Temperature
24
XM1000: Sensors
25
XM1000: Communication Unit
Power
consumption
26
Power Source for XM1000
− Primary AA battery
− Zinc–carbon (dry cell): 400–900mAh
− Zinc-chloride (heavy duty): 1000-1500mAh
− Alkaline: 1700-3000mAh
− Rechargeable AA battery
− Nickel–cadmium (NiCd): 500–1100mAh
− Nickel–metal hydride (NiMH): 1300–2700mAh
27
Power consumption map
17.4mA
CPU operation for 1hr
(last for almost 6 months!)
365µA
1500mA
1 hour
28
Communication Architecture
29
IoT Networking
Network is a
distributed system.
Things Things work together
to ensure the proper
IoT applications functioning of the
may use TCP/IP network.
protocol Network
technology for
networking. Gateway is the device
Gateway connecting the
network and the
Internet.
The Internet
IoT applications make
use of existing
Servers Internet technology
for interconnection.
31
IEEE 802.15.4 at 2.4GHz
2MHz
WiFi 1 7 13
2405 2410 2415 2420 2425 2430 2435 2440 2445 2450 2455 2460 2465 2470 2475 2480 f (MHz)
− PHY
− 250 kbps (4 bits/symbol @ 62.5kBaud)
MSK
4 bits 32-chip
Coding PN codes RF
symbol @ 2Mchips/s
or 62.5ksymbols/s
32
IEEE 802.15.4 MAC: Configuration
− Network topologies:
− Star: Mesh: PAN
Coordinator
− Device classes:
− Full Function Device (FFD): can act as a coordinator for
a PAN ( ), communicate with any other device
− Reduced Function Device (RFD): only communicate with
coordinator
33
IEEE 802.15.4 MAC: Mode
− Beacon-mode
− Make use of coordinator to coordinate transmission
− Coordinator transmits a beacon to synchronize data
transmission
− All other nodes scan for the beacon and then use CSMA-
CA to access the superframe on the channel
− Transmission may be contention free using guaranteed
time slots (GTS) assigned by coordinator
− Non-beacon mode
− For point-to-point network
− Nodes use unslotted CSMA-CA to access the channel
− Less configuration, but receivers need to listen to the
channel continuously
34
IEEE 802.15.4 MAC: Superframe
35
IEEE 802.15.4 MAC: Superframe
Inactive Period
15ms * 2SO
where 0 ≥ SO ≥ 14
15ms * 2BO
where SO ≥ BO ≥ 14
SO = Superframe order
BO = Beacon order
36
IEEE 802.15.4 MAC: Frame Format
37
IEEE 802.15.4 MAC: Data Transfer
38
IEEE 802.15.4 MAC: Data Transfer
Network Network
Coordinator Coordinator
Device Device
Beacon
Data
Data
Acknowledgement Acknowledgement
(if requested) (if requested)
39
IEEE 802.15.4 MAC:
Indirect Data Transfer
Network Network
Coordinator Coordinator
Device Device
Beacon
Data Request
(polling)
Data Request Acknowledgement
Acknowledgement
Data
Data
Acknowledgement
Acknowledgement
40
IEEE 802.15.4 MAC: Channel Access
41
IEEE 802.15.4 MAC:
Guaranteed Time Slot (GTS)
42
Network Solution
43
Summary
− Node Architecture
− case study: XM1000 mote
− Communication Architecture
− focused on IEEE 802.15.4
− discussed MAC operation
44
Questions?
45