Top Banner
How to Build a Digital- Physical System-Lab Assegid Kidané Fall 2012
46

How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Jan 15, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

How to Build a Digital-Physical System-Lab

Assegid KidanéFall 2012

Page 2: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Outline

Week 1- Introduction, overview, breadboard, safety, rules, Fritzing, LED demo

Week 2 - Basic electronics, components, ohms law, conventions, test equipment, Wire stripping and soldering

Week 3 - Arduino hardware and software Week 4 and on - Various functions and

combination setups

Page 3: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

The Big Picture

Page 4: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

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 5: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Outline Electricity/Water analogy Electrical/Electronic circuit elements Basic formulae Reading and drawing schematics Using datasheets Microcontrollers, Arduino, Sensors, Actuators,

Media Software environments Experiential media integration

Page 6: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Goal

Basic electronics Use of Arduino environment Interactive environment design

Page 7: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Circuit Elements

Resisitors, Capacitors, Diodes, Transistors Integrated Circuits

Subgroup of ICs Microcontrollers (pic, Atmega etc.)

Microcontroller development boards Arduino

Page 8: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Breadboarding

Provides connectivity Allows reconfiguration

Page 9: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Connectivity Under the Hood

Page 10: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Breadboard in Kit

Page 11: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Wiring Pattern

Page 12: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Soldering

Make permanent connections on the PCB

Page 13: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Test Equipment

Multimeter Oscilloscope Signal Generator Power Supply Logic Analyzer Hand tools

Page 14: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

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 15: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Oscilloscope

Provides detailed graphic representation of signals

Essential for signals with ac components Usefull for monitoring noise

Page 16: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

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 17: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

PCB Design

Eagle software

Page 18: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Eagle 6.02 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 19: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Fabrication!

Page 20: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

General Architecture

Participatory Environment ( Installation, Performance)

Sensing Data Processing Actuation and Feedback

Page 21: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

environment

sensing Computing

Feedback & Actuators

Page 22: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Sensors

Motion Position, Acceleration, Rotation

Pressure Light Sound Temperature Biometric sensors

Page 23: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Some Sensors

Page 24: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Data Processing

Desktop, Laptop Single Board Computer (SBC, Raspberry pi,

Beagleboard) Physical Computing Platform (Arduino,

Parallax, mbed) Develop using a microcontroller (Pic, Atmega,

8051)

Page 25: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Some Processors

Page 26: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Introduction to the Arduino Environment

Arduino Uno 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 27: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Arduino Uno

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 28: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Arduino Uno Cont’d

USB Port

External Power

Digital I/Os, PWM, Serial Port

Analog InputsPower and Reset

Page 29: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

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 30: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

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 31: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Other Hardware

Include ArduinoBT ArduinoXBee Wee

Various Sheilds

Page 32: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Arduino Programming

Simple Fast No programming hardware needed*

Page 33: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

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 34: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Output & Actuation

Video displays, Projectors Speakers Lights Motors Haptic feedback devices

Page 35: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Actuators & Output Devices

Page 36: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

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 37: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Experiential Media System

Page 38: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Lab Class Kit

Arduino Uno LEDs (4) RGB LEDs (3) Stepper motor Stepper driver FSR Piezzo

CDS light sensor Mini breadboard USB cable Push button switch IR ranger IR ranger connector 10K potentiometer

Page 39: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

AME Digital Culture Kit

Page 40: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.
Page 41: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Collect Checkout Forms and Regulation Sheet

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

Page 42: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Safety Considerations

Avoid cobweb wiring Monitor current consumptionwhen using power

supplies Use solid wires on breadboards

Page 43: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

LED Demo

Power from Arduino

Use push button switch to turn LED on

Page 44: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Resources

http://www.arduino.cc/ http://www.sparkfun.com/ http://www.digikey.com/ Books

Physical Computing, O'Sullivan and Igoe The Art of Electronics, Horowitz and Hill

Page 45: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Web and Contact Info

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

Page 46: How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2012.

Questions??

Thank you