82
How to Build a Digital- Physical System Assegid Kidané Fall 2011

How to Build a Digital-Physical System Assegid Kidané Fall 2011

Embed Size (px)

Citation preview

Page 1: How to Build a Digital-Physical System Assegid Kidané Fall 2011

How to Build a Digital-Physical System

Assegid KidanéFall 2011

Page 2: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Today's Demo

Pressure and Light Sensor Arduino and Laptop data processing Video and Sound output

Page 3: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Demo

Page 4: How to Build a Digital-Physical System Assegid Kidané Fall 2011

The Big Picture

Page 5: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Steps

Define problem and goals clearly Develop flowchart and algorithm Select main components Develop hardware and software Put it together and test Iterate until goals are met

Page 6: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Outline Electricity/Water analogy Electrical/Electronic circuit elements Basic formulae Reading and drawing schematics Using datasheets Microcontrollers, Sensors, Actuators, Media Software environments Experiential media integration

Page 7: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Goal

Basic electronics Use of microcontrollers Interactive environment design Design and build 3D objects Learn effective collaboration

Page 8: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Water Analogy

The following entities between a water circulation system and an electric circuit correspond fairly

wellPressure – VoltageWater flow – CurrentFaucet, Constriction – ResistanceValve – SwitchOne way valve – Diodeetc...

Page 9: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Comparisons

Page 10: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Circuit Elements

Power supply Resistors Capacitors Inductors Semiconductors

Page 11: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Circuit Elements

Power supply Energy source

Page 12: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Circuit Elements

Resistor, Capacitors and Inductors Passive components

Page 13: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Circuit Elements

Semiconductors Active devices Transistors, ICs, LEDs, gates, diodes

Page 14: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Circuit Elements

Subgroup of ICs Microcontrollers (pic, Atmega etc.)

Microcontroller development boards Arduino

Page 15: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Types of Circuits

Analog Continuous values of voltage between

Ground and Power

Digital Only On or Off, High or Low, or Ground or

Power Hybrid

Page 16: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Examples

Analog Most sensors, the physical world

Digital Your computer, most modern devices, your

iPod for the most part

Page 17: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Schematics

Symbolic representation of a circuit

Page 18: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Schematic

More complex circuit

Page 19: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Breadboarding

Provides connectivity Allows reconfiguration

Page 20: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Connectivity Under the Hood

Page 21: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Soldering

Make permanent connections on the PCB

Page 22: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Test Equipment

Multimeter Oscilloscope Signal Generator Power Supply Logic Analyzer Hand tools

Page 23: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Multimeter

Use to measure Voltage, Current and Resistance

Some measure frequency, capacitance, temperature and more

*** Caution*** Take extra care when measuring current Start with a selection higher than the highest

expected value

Page 24: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Oscilloscope

Provides detailed graphic representation of signals

Essential for signals with ac components Usefull for monitoring noise

Page 25: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Some Common Formulae

Ohm's law E = V = IR

Formula wheel E - (emf) same as Voltage R – resistance I – current P - power

Page 26: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Series and Parallel Circuits

RT=R1R 2... 1RT

= 1R1

1R2

....

Page 27: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Using Ohm's Law

Equivalent resistance = 1470ohms

RT=R1R2

RT=4701000=1470ohmsI=V /R=9 /1470=6.1mA

Voltage accross R1=I∗R=0.0061∗470=2.8VVoltage accross R2=0.0061∗1000=6.1V

Page 28: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Datasheets

Your crucial companion Consult the manufacturer's datasheet if unsure

of a device's specific behaviour Of special interest

Pinouts Absolute maximum ratings Typical application circuit

Page 29: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Important sections

Page 30: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Typical Circuit

Page 31: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Pinouts

Page 32: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Features

Page 33: How to Build a Digital-Physical System Assegid Kidané Fall 2011

PCB Design

Eagle software

Page 34: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Eagle 5.11 Details

Easy to use Output files compatible with and accepted

by most PCB fabs IDE available for Windows, Mac and Linux Frequently updated library Freeware version available limited to 100 x

80 mm boards, 2 signal layers and 1 sheet

Page 35: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Eagle Features

Schematic capture

Page 36: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Eagle Light

Layout

Page 37: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Router

Interactive router and Autorouter

Page 38: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Introduction Tutorial

Manufacturer guided tour at

http://www.cadsoft.de/Tour/tour00.htm

Page 39: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Fabrication!

Page 40: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Capabilities

Multilayer PCB fabrication Through hole plating Intricate PCB shapes routing Automatic tool change and milling width

adjustment

Page 41: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Partial Specifications

Page 42: How to Build a Digital-Physical System Assegid Kidané Fall 2011

CAM Software

CircuitPro 1.4.XXX Import Gerber files from Eagle, Altium etc Configure machine for stock material and PCB

process layers Generate milling, drilling and routing tool path Enjoy automated fabrication

Page 43: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Sample Interface

Page 44: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Support Material

Manufacturer manual and AME prepared quick start manual

Preparation and finishing tools PCB stock and backing material Additional and spare tool bits and process

accessories All nearby

Page 45: How to Build a Digital-Physical System Assegid Kidané Fall 2011

General Architecture

Participatory Environment ( Installation, Performance)

Sensing Data Processing Actuation and Feedback

Page 46: How to Build a Digital-Physical System Assegid Kidané Fall 2011

environment

sensing Computing

Feedback & Actuators

Page 47: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Sensors

Motion Position, Acceleration, Rotation

Pressure Light Sound Temperature Biometric sensors

Page 48: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Some Sensors

Page 49: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Data Processing

Desktop, Laptop Single Board Computer (SBC) Physical Computing Platform (Arduino,

Parallax) Develop using a microcontroller (Pic, Atmega,

8051)

Page 50: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Some Processors

Page 51: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Introduction to the Arduino Environment

Arduino Uno, Duemilanove Arduino mini (Stamp) Arduino mini pro (5V, 3.3V, 8Mhz, 16Mhz) Arduino Mega Arduino Nano Arduino Lilypad

Page 52: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Introduction to the Arduino Environment

Arduino Uno, Duemilanove Arduino mini (Stamp) Arduino mini pro (5V, 3.3V, 8Mhz, 16Mhz) Arduino Mega Arduino Nano Arduino Lilypad ATmega Micro controllers

Page 53: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Introduction to the Arduino Environment

Arduino Uno, Duemilanove Arduino mini (Stamp) Arduino mini pro (5V, 3.3V, 8Mhz, 16Mhz) Arduino Mega Arduino Nano Arduino Lilypad ATmega Micro controllers Bootloader Installed

Page 54: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Introduction to the Arduino Environment

Arduino Uno, Duemilanove Arduino mini (Stamp) Arduino mini pro (5V, 3.3V, 8Mhz, 16Mhz) Arduino Mega Arduino Nano Arduino Lilypad ATmega Micro controllers Bootloader Installed Open Source IDE for Windows, OSx and Linux

Page 55: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Arduino Uno/Duemilanove

14 Digital I/Os 6 Analog Inputs 6 PWM Outputs USB Connectivity and Programming USB bus or External Power 16MHz Clock and 32KB Flash Memory

Page 56: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Arduino Uno Cont’d

USB Port

Page 57: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Arduino Uno Cont’d

USB Port

External Power

Power Selection

Page 58: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Arduino Uno Cont’d

USB Port

External Power

Power Selection

Digital I/Os, PWM, Serial Port

Page 59: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Arduino Uno Cont’d

USB Port

External Power

Digital I/Os, PWM, Serial Port

Analog InputsPower and Reset

Page 60: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Arduino Mini Pro

Small footprint 16k Flash Program ROM 14 Digital and 6 Analog I/Os All UNO features except it needs external

hardware for programming

Page 61: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Programming Arduino Mini

Use the standard USB board with the micro controller removed

Or use the Arduino serial USB board, Item # DEV-08165 from Sparkfun Electronics

It is also possible to program it wireless using Blue SMiRF bluetooth modem

Page 62: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Arduino Mini Cont’d

Used in many AME devices including SOball1: Light ball with 5DOF IMU SOball2: Light ball with IMU and RFID RFID Mousepad

Page 63: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Arduino Nano

Most Versatile Arduino Arduino Mini(stamp) with built-in USB interface

and ICSP header All desirable features of Atmega 328 controller All analog inputs available in standard DIP

layout

Page 64: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Other Hardware

Include ArduinoBT ArduinoXBee Wee

Various Sheilds

Page 65: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Arduino Programming

Simple Fast No programming hardware needed*

Page 66: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Sample Code

Read a sensor Data = analogRead(pin)

Control analog devices(motor, light, etc) analogWrite(pin, strength)

Read a digital signal digitalRead(pin)

Output a digital signal digitalWrite(pin, HIGH)

Page 67: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Output & Actuation

Video displays, Projectors Speakers Lights Motors Haptic feedback devices

Page 68: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Actuators & Output Devices

Page 69: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Max/MSP

Allows sophisticated audio and video manipulation and feedback

Puredata for an OpenSource alternative with little graphics

Many objects exist to interface with almost anything. Either direct or from 3rd party developers.

Page 70: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Experiential Media System

Page 71: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Sensing

Light: Using a CDS sensor with a 10K resistor to generate a voltage proportional to brightness

Pressure: Using an FSR with 100k and 10k resistors to generate a voltage proportional to applied pressure

Page 72: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Data Processing

Arduino: Samples the light and pressure analog signals using ADC. Digitize it and sends digital values to laptop on USB bus.

Laptop(Max/msp): Process data, scales it as needed, and applies conditions and manipulate audio and video output.

Page 73: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Output or Feedback

Processed/Manipulated Video output Processed Audio output

Page 74: How to Build a Digital-Physical System Assegid Kidané Fall 2011

AME Digital Culture Kit

Page 75: How to Build a Digital-Physical System Assegid Kidané Fall 2011
Page 76: How to Build a Digital-Physical System Assegid Kidané Fall 2011

In Conclusion

Sensing can include.... motion(location, acceleration, rotation),

pressure, temperature, humidity, lighting, sound, magnetic(hall), biometric(eeg, emg, pulse, GSR) and more

Page 77: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Processing can include probabilistic computational model in addition to linear mapping

Page 78: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Output control can include.... Lighting, sound, video projection,

temperature, humidity, mechanical(linear and rotational motion), fluid and gas flow and more

Page 79: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Collect Checkout Forms and Regulation Sheet

Tool checkout form Electronic Kit checkout form Lab and equipment maintenance regulations

Page 80: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Please complete the collaboration optimization questionaire.

Page 81: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Web and Contact Info

http://dc-bdps.wikispaces.asu.edu/ [email protected] 480 309 2686 (cell)

Page 82: How to Build a Digital-Physical System Assegid Kidané Fall 2011

Questions??

Thank you