46
Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: [email protected] Northwestern University P 491: Selected Topics in Information Techno

Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: [email protected] Northwestern University MITP 491: Selected

  • View
    216

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Topic 3: Sensor Networks and RFIDs

Winter 2007

Instructor: Randall Berrye-mail: [email protected]

Northwestern UniversityMITP 491: Selected Topics in Information Technology

Page 3: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Sensor networks • Lots of hype,

– “one of the top 21 technologies for 21st centutry”–Business Week. – BP-Intel video

• Number of start-up companies– E.g. Crossbow, Dust networks, Ember, Sensoria

• Many established Tech companies:– Intel, IBM, TI (+Chipcon), Oracle, HP,

• Standards activities– IEEE 802.15.4 (ZigBee)

• Lots of research funding– DARPA, NSF, ..

• Lots of academic research– Conferences, journals, centers, etc.

Page 4: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Sensor Networks

• What exactly are they?

Page 5: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Sensor Networks

Key property: networks of autonomous devices that interact directly with the environment.

• Devices are “embedded” in environment – may operate with little human intervention.

• Interaction through various sensing modalities: temperature, pressure, light, accelerations, vibration, acoustic, humidity, etc.

• Networks of such devices communicate to accomplish a desired task

– focus is on case where wireless communication used.

• Vision of pervasive “ambient intelligence”

Page 6: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Sensor Networks

• The term sensor network is used to describe a lot of different technologies.– Large number of possible applications with different

design trade-offs/constraints.

– Not all nodes need be sensors - may contain relay nodes or actuator nodes

• For example to close a switch in response to sensor measurement.

• Some have suggested better name is “embedded network systems”

Page 7: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Small and Cheap

• Much of the excitement (and our focus) is on the case where the nodes are small and cheap .– Sometimes called “motes”– Note how “small and cheap” required depends on application.

2 mica2dot Motes made by Crossbow, Inc.

Page 8: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Sensor Networks

• Motes may form an ad hoc wireless network.– Self-organizing, multi-hop communication.

– But in some applications may not be required.

Page 9: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Potential Applications

• Disaster Relief.• Remote Environmental Sensing.• Structural monitoring.• Asset tracking.• Building automation.• Industrial monitoring.• Precision agriculture.• Telematics• Medical• ……

Page 10: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Prototype Sensor Nets

Purpose Sensors Nodes Organization

Observes weather and nesting behaviors of seabirds on Great Duck Island, ME

Temperature, humidity, infrared

150 Intel, Berkeley

Analyzes activity of residents in elder care facilities in Portland, OR and Las Vegas, NV

Motion, pressure, Infrared

130 Intel

Listens for gunshots and then triangulates shooter position

Sound, shock wave, location

45 DARPA, Vanderbilt

Monitors the performance of pump and scrubber motors in a microchip factory

Vibration and RPM

70 Intel, Berkeley

Maps growth conditions and susceptibility to fungal infections in a vineyard

Temperature 65 Intel

From Intel

Page 11: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Motivations

Two basic motivation for any application:

1. Can do something you already do cheaper/better.• Wiring costs

• indust. apps $300-400/sensor vs. < $100.

• More frequent/cheaper than human monitoring.

2. Can do something you could not do before.• Non-evasive habitat monitoring.

• Chemical/biohazard detection.

Page 12: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Wide Ranging Requirements• “Interaction pattern”

– Event detection, periodic measurements, function approximation, tracking

• “Lifetime” requirements – Hours to years.

• Deployment options – Planned vs. ad hoc.

– Mobile vs. stationary.

• Maintenance options/Fault tolerance– Programmability/replace-ability/redundancy

• Options for Energy supply– Wired,battery, renewable,passive.

Page 13: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Wide Ranging Requirements• All requirements will not likely be met by any

single type of sensor network.– Application dependent sensor nets.

• Role of standards?

Page 14: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Related technologies• RFID (radio frequency identification)

– Use active or passive tags for monitoring locations.

– Can be viewed as a relatively simple type of sensor network.

– Usually no multi-hop communication/limited sensing capability.

• Wireless mobile ad hoc networks (MANETS)– E.g. 802.11 in ad hoc mode.

– Support multi-hop communication.

– Designed to provide Internet-like connectivity to mobile users (not sensing).

Page 15: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Outline:

• Introduction– Applications

• Enabling technology trends.• History• Single Sensor Node Architecture.

– Hardware– Software

• Design considerations

Page 16: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Enabling trends

• Moore’s law.

• Convergence of communications and computation.

• MEMS technology.

Page 17: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Moore’s Law

• Transistor density doubles ¼ every 18-24 months. – stated in 1965 by Gordon Moore.

• Results:– Cheaper cost/transistor

• (today ¼ same as one printed newspaper character).

– Given chip size ) more functionality.– Given functionality ) smaller chip size.– Empirical observation – not scientific fact

• “self-fulfilling” prophesy• “Expected” to continue for at least next 5-10 years

Page 18: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Moore’s Law

• Key insight is computation is “cheap” and can be expected to get cheaper.

• For sensor nodes – energy needed per computation is also important.

• Moore’s law also drives this down:– Power consumption for a given operation drops roughly

as the fourth power of the feature size.– but power consumption increases (linearly) with clock

speed.

Page 19: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Moore’s Law

• Moore’s law type of improvements occur in other areas too – E.g. hard disk capacity.

• But can not be expected in all relevant technologies: – performance of many sensors and energy

technology are limited by laws of physics.– Communication rates are limited by Shannon.

Page 20: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

“Convergence” of Communication and Computing

• Convergence occurs when two previously independent areas become competitive.– Firms enter each others markets.– Devices merge – e.g. smart phones.

• Recent history:– Stand alone computers (PC’s) and communications have

converged ) the Internet.– Today networked computers are as much communication

devices as computational.

• Key driver – digital revolution:– Both communications and computation deal with bits.

Page 21: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

“Convergence” of Communication and Computing

• Next wave?– Rapid growth in wireless networking.

– Rapid growth in embedded processors.• 98% of all processors sold are embedded.

– Sensor networks represent convergence of these two areas.

Page 22: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

MEMS technology

• MEMS = Micro-Electro-Mechanical Systems • Integration of mechanical elements, sensors,

actuators, and electronics on one chip through microfabrication technology. – Allows sensors to also “ride Moore’s law”

• Currently used to develop some small sensing devices (e.g. accelerometers).

• In the future seen as promising way to build even smaller sensors. – “system on a chip” design.

Page 23: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

MEMS technology

Example MEMS accelerometer:Proof-mass is a moving structure suspended by silicon

springs.As it moves it changes the differential capacitance

between the upper and lower fixed plates.Entire structure can be made as part of an ASIC that

is smaller than a postage stamp.

Page 24: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Brief Sensor Net History

• Long history of Military research dating back to 1980’s.• Recent excitement traced back to DARPA “Smart Dust”

project at UC Berkeley (1998-2001). – Lead investigator: Kris Pister.– Goal to build sensor nodes using COTS technology.– Resulted in Berkeley Motes, TinyOS

• Contracted with Crossbow to build Motes, with backing from Intel.• Hardware design made public.

• 2001 Pister founded Dust Networks.– In 2004 received $7 million from In-Q-tel (CIA venture arm).– Around same time several other start-ups founded (Ember,

Millennial Net) – Together in 2004 about $53 million in venture funding.

Page 25: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Outline:

• Introduction– Applications

• Enabling technology trends.• History• Single Sensor Node Architecture.

– Hardware– Software

• Design considerations

Page 26: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Basic Sensor Node Architecture

• All may not be present in all designs.• Several options for each module.

– Design driven by application constraints.

Memory

ProcessorCommunicationdevice

Sensor(s)/actuators

Power Supply

Packaging

Page 27: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Processor (controller)• Brains of the node - used to process data/execute code.

– Communication protocols, signal processing, etc.

• Most common option is to use a microcontroller– Special processors geared towards embedded applications.– Less processing power than general-purpose processors but much

lower energy consumption.– Usually some on chip RAM– high flexibility in connecting other devises

• Other options (less flexibility/better energy efficiency)– Field-programmable gate arrays (FPGAs) – Application specific integrated circuits (ASICs)

• More expensive unless large volumes.

Page 28: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Memory

• Usually need some memory for storing sensor data & packets from other nodes.

• Options:– RAM (random access memory) fast but volatile – rarely used

except for on-chip.

– Flash memory - non-volatile but slower to read/write and higher required energy required.

Page 29: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Communication device

• Typically RF between 433 Mhz and 2.4 Ghz– Most operate in public ISM bands

– Optical/Infrared & ultrasound also considered for some applications.

• Choice of radio system depends in part on deployment– E.g. large sparse deployment may need longer-rang comm.

– Most apps. require comparably low data rates O(100Kbps)

• Also must balance complexity/power consumption– m-arry modulation schemes require more processing than binary.

– Decoding complex channel codes requires significant processing.

Page 30: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Communication device

• Number of off-the-shelf single chip radio transceivers are available– Some based on 802.15.4 (Zigbee) Phy-layer

– Others based on non-standardized platforms.

– Sometimes include on-chip support for MAC/link layer protocols.

Page 31: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Sensors• Wide range of different sensing options are available

including:– Pressure sensors– thermometers– Humidity sensors– Accelerometers– Gyroscopes (angular rotation)– Gas phase composition sensors (e.g. automotive EGO sesnors)– Microphones– Strain/force sensors– Magnetometers– Light intensity sensors– Digital cameras

Page 32: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Sensors• Generally focus is on passive sensing

– Do not actively probe environment (e.g. radar)

• Also most technologies are omnidirectional within some “area of coverage”

• Most technologies measure analog quantities – must be converted to digital (A/D conversion).

• All sensors are imperfect:– Noise in environment/electronics.– Quantization noise in A/D conversion.– “Cross talk” from other physical quantities.– Drift (calibration)

Page 33: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Sensors

• Standard figures of merit:

tyresponsivi

input of absencein signaloutput ySensitivit

amplitude signal physicalinput

(volts) signaloutput ty Responsivi

Sensitivity indicates how well sensor is at separating known signal from noise.

These are usually frequency dependent.

Page 34: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Sensors• Needed performance highly depends on

applications.

– E.g. airbag deployment vs. inertial navigation.

• Performance per sensor can often traded off with number of sensors.

Page 35: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Power supplies

• Batteries are primary means of energy storage.– Non-rechargeable or chargeable.

• Energy scavenging techniques are also receiving a lot of interest:– Solar cells

– Also techniques to harvest energy from vibrations, temp. gradients, etc.

• In some cases, external power can be used.

Page 36: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Power supplies

• Key parameters:– (volume) Energy density (Joules/cm3)

– Mass energy density (Joules/kg)

– Maximum discharge current

– Self-discharge

– Relaxation • Self recharging when no current drawn

– For energy scavenging, power density (W/cm2) is also important.

Page 37: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Power supplies

Example:

Li-ion batteries have an energy density of 2880 Joules/cm3.

Given a 1cm3 battery if a sensor network requires a peak power of 0.1 W, how long can it operate at peak power?

Page 38: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Example Mote Design• Crossbow MICAz Mote.

• 2.25”x1.25”x0.25”

• “sensor platform” – actual sensors added, depending on application.

Page 39: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Example (Crossbow MICAz)

• Processor: 7.37 MHz/8 bit– Program memory 128kB– SRAM 4kB

• I/O: 10 bit ADC• RF: 2400MHz, Max data rate 250 kbit/sec• Flash memory: 512 kB• Power source: 2 AA batteries.

Model MPR 2040 – Apr. 2005

Page 40: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Example Sensor Module

• Crossbow MICA2 Multi-Sensor Module – Light, Temperature, Microphone, Sounder,Tone Detection Circuit, 2-Axis

Accelerometer, 2-Axis Magnetometer– Complete sensor with housing

Page 41: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Smaller Example

• “Spec” Mote– Developed in 2003 @ Berkeley.

– Contains Processor, 3K memory,

8 bit ADC & FSK transmitter

on single chip.

– Requires external antenna,

power supply, & sensors.

– Communicated 40ft indoors at 19.2Kbps.

Page 42: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

Software

• Operating system – e.g. TinyOS, Linux

• Database and/or application specific software – e.g. TinyDB

• Networking Firmware – e.g. ZigBee specified protocols

(more on this next time.)

(other proprietary software also used).

Page 43: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

TinyOS

• Most standard OS’s (e.g. MS windows, Unix) are too large and processor intensive.

• TinyOS is open source OS for sensor networks– Originally developed at UC-Berkeley.– Highly modular – if only certain features needed, rest

can be removed to free up memory for data.– Core requires 400 bytes memory (typically uses 4KB).– Energy aware - forces programs to shut down except

when certain events occur that warrant action. – Event-based

Page 44: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

TinyDB

• Developed by Berkeley/Intel.– Runs on top of TinyOS

• Allows sensor net to function as a data-base.– Provides GUI/SQL-like queries/responses to

application designer.

– Hides complexity of network from end-user

• Queries entered at base-station (e.g. wired PC).– Some optimization performed before disseminating

queries to save power.

Page 45: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

TinyDB

• Specifies a new light reading delivered every 1024 msec.

Page 46: Topic 3: Sensor Networks and RFIDs Winter 2007 Instructor: Randall Berry e-mail: rberry@ece.northwestern.edu Northwestern University MITP 491: Selected

TinyDB

• Result of previous query.