Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Page 2
Trends: Computing
Moores Law, 1965
logarithmic
scale!
Exponential growth
[http://en.wikipedia.org]
See [C. Decker: Ubiquitous Computing, University of Karlsruhe, 2008] for technology trends
Page 4
Trends: Computing
But: Battery development is only linear
Just 20% in 10 years!
Therefore, the power supply of mobile devices is a crucial problem today
especially in always-on scenarios
Page 5
Trends: Miniaturization
Embedded Systems
Embedded processors with integrated functions:
RAM, program memory / hard drive, I/O, power
regulation, clock generation
smallest processor: Microchip PIC10F
[http://www.microchip.com]
A chip is not a system! A system contains additional
components which can not or hardly be integrated
wireless platform for smart sensors: MICA2DOT Mote
[http://www.xbow.com]
25mm quarter-sized, multi-channel transceiver, TinyOS,
analog and digital I/O, on-board temperature sensor
sensor and data acquisition boards available
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 6
Trends: Miniaturization
Embedded processors where are they?
98% of all processors are embedded, only 2% are used for Computers
Allow for smart everyday objects
mobile phones, microwave ovens, cameras, MP3/CD/DVD player etc.
but also cups, clothes, furniture, etc.
they are small, cheap, lightweight
problem of waste
Allow for new integrated functions
TV, cameras and MP3 in mobile phones
position and orientation awareness of digital cameras
energy saving functions based on motion sensing
Page 7
Trends: Sensors
Sensors are becoming ubiquitous
small, energy efficient, often low-precision, inexpensive
MEMS (Micro-Electromechanical-Systems)
[http://mina.ubc.ca]
[http://systemid.com]
Page 8
Trends: Communication
Mobile Communication
GSM, UMTS (up to 2 Mb/s), LTE (up to 300 Mb/s, launched in 2010)
Wireless LAN (IEEE 802.11b/g/n, bis 11/54/600 Mb/s)
Bluetooth: 720 kb/s, 25 $, 10x10mm; 10 m range
802.15.4/ZigBee: 250 kb/s, 8$, 8x8mm
Powerline Communication
Nearly all consumer devices can be reached via PLC
Up to 10 Mb/s, de-facto industry standard
Page 9
Trends: Communication
Quantitative Growth of the Internet
[http://www.internetworldstats.com]
Page 10
Trends: Communication
The internet of the future will be used for machine-to-machine communication
expected expansion of the internet to everyday objects (Internet of Things)
one of the most important application areas will be energy saving
[F. Mattern: Ubiquitous Computing: Scenarios for an informatized world, Springer-Verlag, 2004]
Page 11
Potential
Continuous audio recording (mono) for 1 year = 0,36 TB
Continuous video recording for 1 month = 0,3 TB
Nearly unlimited (offline) storage of sensor data
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 12
[http://research.microsoft.com/en-us/projects/mylifebits]
Page 13
Trends: Materials
Printable Electronics
Common printing techniques are used in conjunction with
conductive electronic inks to print electronic circuits
Goal: thin, flexible and cheap electronic circuits
Usable for displays, RFID tags, sensors, photovoltaic cells,
item-level tagging by printing RFID tags instead of barcodes
[http://gizmag.com]
Electronic Textiles
Fabrics with electronics and interconnections woven into them
can be worn in everyday situations where currently
available wearable computers would hinder the user
Possible integration of textile sensors
measure touch, pressure, ECG, heart rate, respiration,
May become important for Human-Computer Interaction
Sensor Fundamentals, Technologies and Platforms at a Glance
[http:// textileweb.com]
Page 14
Ubiquitous Computing
Page 15
Sensor Fundamentals
Functional Principle of Sensors, Sensor Performance Characteristics,
Resistive and Capacitive Sensors
Page 17
Page 18
Analog to Digital
Page 19
Definition:
A sensor is a device that converts a physical phenomenon into an electrical
signal. As such, sensors represent part of the interface between the physical
world and the world of electronic devices. The other part of this interface is
represented by actuators, which convert electrical signals into physical
phenomena. [J. S. Wilson]
Page 20
Page 21
Analog-To-Digital Conversion
The analog signal is changed to a digital code which can be recognized by a
digital system
Consists of two sub-functions:
Sample and Hold: needed because the analog signal is changing
continuously and the conversion takes some time
timing circuits set the sample interval (dependent on ADC conversion speed)
allows to holdthe
voltage for along time
Page 22
Analog-To-Digital Conversion
Example: Successive approximation ADC
fast as it works similar to the concept of binary search
Page 23
Sensor Performance
Characteristics Definitions
Sensitivity
Defined in terms of the relationship between input physical signal and
output electrical signal
it is generally the ratio between a small change in electrical signal to a small
change in physical signal (defines the slope of the curve)
typical units are V/C, mV/kP etc.
A thermometer would have high sensitivity if a small temperature change
resulted in a large voltage change
Example: LIS3L02AQ 3-axis accelerometer, supplied with Vdd=3V, acceleration
range set to 2g: sensitivity is typically 600 mV/g
Sensitivity Error
It is a departure from the ideal slope of the characteristic curve
Example: LIS3L02AQ 3-axis accelerometer: sensitivity error of 10%
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 24
Sensor Performance
Characteristics Definitions
Sensitivity and Sensitivity Error
+F(x)
y
x
Sensitivity = y / x
-x
0, 0
+x
-F(x)
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 25
Sensor Performance
Characteristics Definitions
Offset
Output that will exist when it should be zero (i.e. at zero input) or,
alternatively, the difference between the actual output value and the specified
output value under some particular set of conditions
Example: LIS3L02AQ 3-axis accelerometer, supplied with 3V: offset 1.5 V
no acceleration will output 1.5 V
Page 26
Sensor Performance
Characteristics Definitions
Offset
+F(x)
-x
Offset
0, 0
+x
-F(x)
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 27
Sensor Performance
Characteristics Definitions
Transfer Function
Shows the functional relationship between physical input signal and electrical
output signal
Usually represented as a graph: F(x) = offset + x * sensitivity
May be used to predict the behavior of the sensor and contains information
about the sensitivity and the offset at the output of the sensor.
Example: LIS3L02AQ 3-axis accelerometer, supplied with 3V, acceleration
range set to 2g (proportional to Vdd):
mV
V ( Acc) 1.5V Acc 600
g
offset
sensitivity
Page 28
Sensor Performance
Characteristics Definitions
Transfer Function
the sensitivity can be expressed as the derivate of the transfer function
with respect to the physical signal
+F(x)
y
x
Sensitivity = y / x
-x
Offset
0, 0
+x
-F(x)
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 29
Sensor Performance
Characteristics Definitions
Dynamic Range (Span)
The range of input physical signals that may be converted to electrical signals
by the sensor is the dynamic range or span
signals outside of this range are expected to cause unacceptably large
inaccuracy (specified sensitivity is not guaranteed)
This span or dynamic range is usually specified by the sensor supplier as the
range over which other performance characteristics described in the data
sheets are expected to apply
Typical units are Kelvin, Pascal, Newton etc.
Example: LIS3L02AQ 3-axis accelerometer: 2g guaranteed minimum 1.8g
with specified sensitivity, the device can withstand up to 3000g for 0.5ms, or
10000g for 0.1ms
Page 30
Sensor Performance
Characteristics Definitions
Dynamic Range (Span)
+F(x)
ymax
Dynamic Range
-x
0, 0
+x
ymin
-F(x)
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 31
Sensor Performance
Characteristics Definitions
Linearity and Nonlinearity
The maximum deviation of the measured curve from a linear transfer
function over the specified dynamic range
usually, the output of a transducer is not perfectly linear
There are several measures of this error. The most common compares the
actual transfer function with the best straight line, which lies midway
between the two parallel lines that encompass the entire transfer function
over the specified dynamic range of the device.
other reference lines may be used, so the user should be careful to
compare using the same reference
Example LIS3L02AQ:
best fit straight line, full-scale = 2g, X and Y axis 0.3% FS (Full Scale)
best fit straight line, full-scale = 2g, Z axis: 0.6% FS
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 32
Sensor Performance
Characteristics Definitions
Linearity and Nonlinearity
max. input deviation
Nonlin.(%)
100
max. full scale input
+F(x)
Maximum Error
-x
0, 0
+x
-F(x)
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 33
Sensor Performance
Characteristics Definitions
Resolution
Smallest detectable incremental change of input parameter that can be
detected in the output signal
Resolution can be expressed either as a proportion of the reading (or the fullscale reading) or in absolute terms
Many sensors are limited by noise with a white spectral distribution
Example LIS3L02AQ: the resolution is 100 g/Hz
Sensors sometimes have an ADC integrated, in which case the resolution
is determined by that of the ADC
Example ADXL345: 3-axis accelerometer with
in built ADC provides resolution of up to 13-bit
at 16 g (maintaining 4 mg/LSB)
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 34
A Basic Example
Automobile fuel gauge
Page 35
Resistive Sensors
Resistive sensors change their resistance in response to external stimuli
Examples:
Light intensity: Light Dependent Resistor (LDR)
Temperature: NTC, PTC (Pt100, Pt1000)
resistance decreases
with increasing light
intensity
notlinear;must
be compensated
LDR
Page 36
Resistive Sensors
Resistance can be measured with a simple voltage divider by
forcing a current to flow and
measuring the voltage drop.
A simple current source consists of
a voltage source and
a reference resistor whose resistance is much larger than the one
to be measured in order to offer good linearity.
Improvement:
Wheatstonebridge
Page 37
Resistive Sensors
Wheatstone bridge
Improvement on the simple voltage divider
the voltage divider is combined with a second voltage divider composed of
fixed resistors only
a second voltage divider provides a reference voltage that is the same as
the output of the sense voltage divider at some nominal value of the sense
resistance
senseresistor
A differential amplifier (such as an
instrumentation amplifier) is used
to produce the difference between
these two voltages
Page 38
Capacitive Sensors
Many sensors respond to physical signals with a change in capacitance C:
A
C
Page 39
Capacitive Sensors
Example: Accelerometer (see later)
capacitive sensing cell formed from semiconductor material
beams attached to a movable central mass that move between fixed beams
movable beams can be deflected from their rest position by subjecting the
system to an acceleration
change in distance is a measure of acceleration
Page 40
Smart Sensors
Resistance
NTC
Voltage
Transformer
Voltage
Amplifier
ADC
digital value
Software:
linearization, filtering,
correction,
C
temperature
Transceiver
Sensor Network
Page 41
Sensor Technologies
Example: Inertial Sensors (Accelerometers and Gyroscopes)
Accelerometer
What is acceleration?
the time rate of change of velocity
the time rate of change of the time rate of change of distance
acceleration is measured in m/s
Acceleration is often given in terms of g-force
a g is a unit of acceleration equal to Earths gravity at sea level
1 g = 9.81 m/s
Accelerometers measure acceleration experienced relative to free fall
first MEMS accelerometer in 1979 (IEEE Trans. Electron. Devices)
many different technologies; the most commonly used are capacitive,
piezoelectric and piezoresistive accelerometers
there are many current and future fields of application
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 43
Accelerometer
Many accelerometers are based on a mass spring system
springs are governed by a physical principle known as Hooke's law
F=kx, where k is the spring constant in [N/m] and x the displacement in [m]
the displacement has to be measured and converted into an electrical signal
Newton's second law of motion states that a force operating on a mass
which is accelerated will exhibit a force with a magnitude F=ma
a=(kx)/m
[http://ccrma.stanford.edu]
Page 44
Accelerometer
Example: Analog Devices ADXL50
micro-machined accelerometer which consists of a mass spring system
as well as a system to measure displacement
the mass responds to accelerations that occur in line with its length
the amount of acceleration is proportional to the displacement of the mass
sensing fingers
4tethers attached
to each corner
barof silicon
[http://ccrma.stanford.edu] [http://www.analog.com]
Page 45
Accelerometer
Capacitive sensing of mass displacement:
displacement measurement is based on the electrical property of capacitance
often differential capacitive sensing, where a part of the mass makes up the
middle of three plates and thus creates two different capacitors, are used
Page 46
Accelerometer
ADXL50 differential capacitive sensing in detail:
0.1g proof mass, 0.1pF capacitance per side for the differential capacitor,
1.3m gaps between capacitor plates, 20aF (10-18 F) smallest detectable
capacitance change, 42 sensing fingers (21 on each side)
[http://www.analog.com]
Page 47
Accelerometer
ADXL50 sensing fingers
the interdigitated fingers can be used for capacitive sensing
anchor
suspension beam
proof mass
interdigitated capacitive
sensing fingers
C1
C2
[http://www.analog.com]
Page 48
Accelerometer
In order to get the acceleration and magnitude in two or three dimensions,
two or three orthogonally placed accelerometers are required
cross-axis sensitivity is a major issue with multiaxis accelerometers
e.g. dual-axis accelerometer ADXL202 2g
[http://www.analog.com]
Page 49
Accelerometer
Piezoresistive sensing of mass displacement:
use of silicon resistors in a Wheatstone bridge configuration
a resistors value decreases when it is subjected to a compressive force,
and it increases when a tensile force is applied
the resistors are bonded to a cantilever beam that bends in response to
acceleration forces and thus changes resistance
available for dynamic ranges of up to 2000g, but high temperature sensitivity
piezo resistor
Page 50
Accelerometer
Tilt sensing using linear accelerometers
Important e.g. for automatic screen alignment on handhelds
The effect of gravity (1g) on the seismic mass is used as input acceleration to
determine the tilt (note: accelerometers cannot distinguish gravity and motion!)
requires typically 2g accelerometers with a low bandwidth
the accelerometer will experience acceleration in the range from
-1g to +1g through 180 of tilt
Measuring tilt using one axis:
tilt along the x-axis, the
y-axis remains at 0g
sensitivity
Page 51
Accelerometer
The angle of tilt can be solved as follows:
sin 1
Vout Voff
1 g S
inaccurate near
the 1grange!
working zone
Page 52
Accelerometer
Problems using just one axis for tilt measurement:
inaccurate near the 1g range
no possibility to distinguish between 30 and 150 by looking at the
accelerometer output (the output is a sine function!)
Page 53
Limitation of Accelerometers
An accelerometer sitting stationary on the Earth with its sensitive axis pointing
vertically downwards will give an output signal equivalent to 1g
if it is rotated 90 and left stationary with its sensitive axis pointing parallel to
the Earths surface, it will produce an output signal equivalent to 0g
in each case, the accelerometer has not been moving
Problem: Both gravity and motion produce accelerations!
a tilt will look like an acceleration and
thus like a change in position
0.3g acceleration
due to motion
1g acceleration
due to gravity
apparent tilt
Page 54
Gyroscope
Gyroscopes are used to measure angular rate (i.e. how quickly an object turns)
first MEMS gyroscope in 1991 (Draper Laboratory, Cambridge)
angular rate is measured in /s
rotation is measured in reference to one of three axes: yaw, pitch or roll
a gyroscope with one axis of sensitivity can also be used to measure other
axes by mounting the gyro differently (see right-hand diagram)
differentmounting yaw
axis becomes the rollaxis
[http://www.analog.com/library/analogdialogue/archives/37-03/gyro.pdf]
Page 55
Gyroscope
Example use of a gyroscope:
a yaw-axis gyro that is mounted on a turntable rotating at 33 1/3 rpm
(revolutions per minute) would measure a constant rotation of 360 times
33 1/3 rpm divided by 60 seconds, or 200/s
the gyro would output a voltage proportional to the angular rate, as
determined by its sensitivity, measured in mV//s
the full-scale voltage determines how much angular rate can be measured,
so in the example of the turntable, a gyro would need to have a full-scale
voltage corresponding to at least 200/s
e.g., the Analog Devices ADXRS150 handles a full scale range of 300/s
There are many practical applications, like e.g. inertial navigation or
electronic stability programs (ESP) and rollover detection in vehicles
Page 56
Gyroscope
Coriolis effect
MEMS gyroscopes usually measure angular rate by means of Coriolis acceleration
they rely on a mechanical structure that is driven into resonance and
excites a secondary oscillation due to the Coriolis force
the amplitude of this secondary oscillation is directly proportional to the
angular rate signal to be measured
The Coriolis force is a virtual force that depends on the inertial frame of the
observer, which can be explained as follows:
Consider yourself standing on a rotating platform, near the center. If you were to
move to a point near the outer edge of the platform, your speed would increase
relative to the ground. The rate of increase of your tangential speed, caused by
your radial velocity, is the Coriolis acceleration.
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 57
Gyroscope
Example: Analog Devices ADXRS gyros
the ADXRS150/ADXRS300 gyros have a full-scale range of 150/s and 300/s
the ADXRS gyros take advantage of the Coriolis effect by using a resonating
mass analogous to the person moving out and in on a rotating platform
reactionforceonthe
frametotheleft
massmovesoutwards
accelerationtotheright
[http://www.analog.com]
Page 58
Gyroscope
To measure the Coriolis acceleration, the frame containing the resonating mass is
tethered to the substrate by springs at 90 relative to the resonating motion
this figure also shows the Coriolis sense fingers that are used to capacitively
sense displacement of the frame in response to the force exerted by the mass
Schematic of a gyros mechanical structure:
[http://www.analog.com]
Page 59
Gyroscope
As the resonating mass moves, and as the surface to which the gyro is
mounted rotates, the mass and its frame experience the Coriolis acceleration
and are translated 90 from the vibratory movement.
As the rate of rotation increases, so does the displacement of the mass, and
the signal derived from the corresponding capacitance change between the
Coriolis sense fingers.
[http://www.analog.com]
Page 60
Gyroscope
Differential sensing is realized with two mechanically independent resonators that
operate anti-phase, which cancels non-rotational signals affecting both sensors
measure the same magnitude of rotation, but give outputs in opposite directions
the difference between the two sensor signals is used to measure angular rate
[http://www.analog.com]
Page 61
Orientation Sensor
Example: InterSense InertiaCube3
provides full 360 orientation in yaw, pitch and roll by combining angular
rates, linear accelerations and magnetic field components along all 3 axes
the angular rates are integrated to obtain the orientation of the sensor
accelerations and compass measurements are used to stabilize the
orientation to the Earths gravitational and magnetic fields
alsoavailableas
wirelesssensor
Page 62
Orientation Sensor
Example: Xsens MVN
motion capture solution which consists (only)
of inertial sensors attached to the body
by a lycra suit with embedded cabling
17 MTx inertial trackers (similar to the Inertiacube3)
[http://www.xsens.com/en/general/mvn]
[D. Roetenberg et al.: Xsens MVN: Full 6DOF Human Motion Tracking Using Miniature Inertial
Sensors, XsensTechnologies, 2009.]
Page 63
InterSense IS-900
(RF&Ultrasonic)
Introduced in 1999, mainly used in the military sector and at research labs
Full 6-DOF (x, y, z; yaw, pitch, roll) for up to four tracked stations
180 Hz update rate, 2.00-3.00 mm (x,y,z) and 0.5 (yaw) / 0.25 (pitch, roll)
static accuracy, 0.75 mm and 0.05 RMS resolution
transmit40kHz
ultrasonicsignals
inertial/acoustic
sensor
[http://www.intersense.com/IS-900_Systems.aspx]
Page 64
InterSense IS-900
(RF&Ultrasonic)
Position and orientation are calculated from gyroscopes and accelerometers,
drift compensation is achieved with acoustic time-of-flight sensing
virtualbinocular
[http://www.intersense.com/IS-900_Systems.aspx]
Page 65
Sensor Platforms
Examples: Arduino, Waspmote, Sun SPOT and BTNode3
Arduino Overview
Arduino is an open-source electronics prototyping
platform based on flexible, easy-to-use hardware
and software. It's intended for artists, designers,
hobbyists, and anyone interested in creating
interactive objects or environments.
Arduino can sense the environment by receiving input
from a variety of sensors and can affect its
surroundings by controlling lights, motors, and other
actuators.
The microcontroller on the board is programmed
using the Arduino programming language (based on
Wiring) and the Arduino development environment
(based on Processing).
[http://arduino.cc/en/] [http://wiring.org.co/] [http://www.processing.org/]
Page 67
Arduino Overview
The Arduino project began at the Interaction Design Institute Ivrea, Italy in 2005.
its aim was to make a device for controlling interaction design projects less
expensively than other prototyping systems available at the time
the whole project is open source, both in terms of hardware and software
as of February 2010, more than 120,000 Arduino boards had been shipped
An Arduino board consists of an 8-bit Atmel AVR microcontroller with
complementary components to facilitate programming and incorporation into
other circuits.
usually operated with 5V power supply and a 16 MHz crystal oscillator
official Arduino boards have 16-256 kB Flash and 1-8 kB SRAM, 14-54 digital
I/O pins (6-14 with PWM), 6-16 analog inputs, 0.73"x1"-4"x2.1"
communicates with the PC via serial connection over USB or Bluetooth
can be powered from USB or standalone DC power
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 68
Page 69
Page 70
[http://arduino.cc/en/Main/Hardware]
Page 71
rotary encoder
photo cell
piezo vibra
tion sensor
motion sensor
3axisacce
lerometer
potentiometer
reed switch
force sensi
tive resistor
NTCthermistor
[http://www.physicalcomputing.at/shop/article_A-1107500/Sensor-Kit-Basic.html]
Page 72
2axiscompass
ultrasonic
range finder
humidity and
temperature sensor
flex sensor
1axisgyroscope
[http://www.physicalcomputing.at/shop/article_A-1107600/Sensor-Kit-Advanced.html]
Page 73
[http://www.sparkfun.com/products/8471] [http://www.arduino.cc/en/Main/ArduinoXbeeShield]
Page 74
digital P0
(HIGH or LOW)
voidsetup(){
//initializethedigitalpinasanoutput:
pinMode(0,OUTPUT);
}
470
voidloop(){
digitalWrite(0,HIGH);//settheLEDon
delay(1000);//waitforasecond
digitalWrite(0,LOW);//settheLEDoff
delay(500);//waitfor500ms
}
digitalpin 0
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 75
5V
//middleterminalofvoltagedividercircuit
int analogPin=3;
int val=0;//variabletostoreread
photoresistor
analog
pin 3
10k
voidsetup(){
Serial.begin(9600);//setupserialdisplay
}
voidloop(){
val=analogRead(analogPin);//analogread
Serial.println(val);//printvaluetoserial
monitor
}
Page 76
Waspmote Overview
Commercial sensor node of Libelium Comunicaciones
Microcontroller: ATmega1281 (8 MHz)
7 analog and 8 digital I/O, 1 PWM, 2 UARTs, 1 I2C, 1 USB
Hibernate mode: 0,7 A, deep sleep mode: 62 A
Up to 40 km range with 868 MHz radio
ZigBee, Bluetooth and GSM/GPRS modules available
Open source API, compiler and code samples
builds on top of the Arduino compiler
Different sensor boards available (gases, pressure, tilt, ...)
[http://www.libelium.com/products/waspmote]
Page 77
Page 78
Page 79
opensource software
andhardware
Page 80
sensor board
processor board
battery
Sensor Board
2g/6g three-axis accelerometer, temperature (0.25 C) and light sensor (600 nm)
2 momentary switches, 8 tri-color LEDs (255 s update rate)
6 analog inputs, 5 GPIO pins and 4 high-current output pins
10-Bit Analog Devices ADC
Battery
3.7 V rechargeable 720 mAh lithium-ion battery, 32 A deep-sleep mode
Sensor Fundamentals, Technologies and Platforms at a Glance
Page 81
Page 82
[R. Goldman: Using the LIS3L02AQ Accelerometer, Sun Spot Application Note, 2007]
[Sun SPOT Theory of Operation, version 5.0, 2009, http://www.sunspotworld.com/docs/]
Page 83
Page 84