getting started with interactive projects using the arduino, max and processing

41
Getting started with interactive projects using the Arduino, Max and Processing

Upload: garey-potter

Post on 11-Jan-2016

231 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Getting started with interactive projects using the Arduino, Max and Processing

Getting started with interactive projects

using the Arduino, Max and Processing

Page 2: Getting started with interactive projects using the Arduino, Max and Processing

What’s a micro-controller?

Page 3: Getting started with interactive projects using the Arduino, Max and Processing

A Micro-controller is an integrated circuit that contains many of the same items that a desktop computer has, such as CPU, memory, etc., but does not include any “human interface” devices like a monitor, keyboard, or mouse. Micro-controllers are mostly designed for machine control applications, rather than human interaction.

What’s a micro-controller?

Page 4: Getting started with interactive projects using the Arduino, Max and Processing

A Micro-controller is an integrated circuit that contains many of the same items that a desktop computer has, such as CPU, memory, etc., but does not include any “human interface” devices like a monitor, keyboard, or mouse. Micro-controllers are mostly designed for machine control applications, rather than human interaction.

Micro-controllers paired with all the peripherals they need to be self-sufficient, such as the Arduino Board, are sometimes called “single-board computers.”

What’s a micro-controller?

Page 5: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 6: Getting started with interactive projects using the Arduino, Max and Processing
Page 7: Getting started with interactive projects using the Arduino, Max and Processing
Page 8: Getting started with interactive projects using the Arduino, Max and Processing

What is Arduino?

• Open Source Physical Computing Platform• Open source: free to inspect & modify• physical computing platform for all sorts of projects• A physical board, a programming environment, a development philosophy• Tiny computer you can program to do all sorts of tasks• Completely stand-alone, or used to communicate with other devices

Page 9: Getting started with interactive projects using the Arduino, Max and Processing

What is Arduino?

Arduino is also a standardized “bootloader”• A tiny program that loads other programs• It’s alive during first 5 seconds

After 5 seconds, your program runsDon’t need special programmer board with a bootloader

Page 10: Getting started with interactive projects using the Arduino, Max and Processing

What is Arduino?

Capabilities• 8 kBytes of Flash program memory• 1 kByte of RAM• 12 MHz (Apple II: 1 MHz)• Inputs and Outputs• 13 digital input/output pins• 5 analog input pins

Digital I/O can read switches and buttons, control LEDs and motorsAnalog input can read knobs or other varying sensorsAnalog output can be done with PWM

Page 11: Getting started with interactive projects using the Arduino, Max and Processing

• Arduino is very similar to Basic Stamp (if you know it)• but cheaper, faster, & open source• Uses AVR ATmega8 or Atmega168 microcontroller chip Basic Stamp uses PIC microcontroller chip.

PICs and AVRs are very comparable, one’s not necessarily better than the otherAVRs are a little easier if you’re using a language like C (stack-based)Don’t need to worry about the chip particulars for now

Page 12: Getting started with interactive projects using the Arduino, Max and Processing
Page 13: Getting started with interactive projects using the Arduino, Max and Processing
Page 14: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 15: Getting started with interactive projects using the Arduino, Max and Processing
Page 16: Getting started with interactive projects using the Arduino, Max and Processing
Page 17: Getting started with interactive projects using the Arduino, Max and Processing
Page 18: Getting started with interactive projects using the Arduino, Max and Processing
Page 19: Getting started with interactive projects using the Arduino, Max and Processing
Page 20: Getting started with interactive projects using the Arduino, Max and Processing
Page 21: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Edges are used as power “buses” supplyingcommon + and - charges across the board.

Page 22: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 23: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 24: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 25: Getting started with interactive projects using the Arduino, Max and Processing
Page 26: Getting started with interactive projects using the Arduino, Max and Processing

Change

ledPin

to 9

Page 27: Getting started with interactive projects using the Arduino, Max and Processing
Page 28: Getting started with interactive projects using the Arduino, Max and Processing

http://www.processing.org

Page 29: Getting started with interactive projects using the Arduino, Max and Processing
Page 30: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Try example “fading” with the same circuit

Page 31: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

init

setup

loop

Page 32: Getting started with interactive projects using the Arduino, Max and Processing
Page 33: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 34: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

“ArduinoDimmer” Simple MAX patch to send data to the arduino

Page 35: Getting started with interactive projects using the Arduino, Max and Processing
Page 36: Getting started with interactive projects using the Arduino, Max and Processing

1) Quit Max

2) In the arduino environment open: arduinoSerialreader_wiring.pde

4) start Max

3) Upload to Arduino

5) open Arduino2Max_MaxPatch

Page 37: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 38: Getting started with interactive projects using the Arduino, Max and Processing

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 39: Getting started with interactive projects using the Arduino, Max and Processing

Solar Cell

Digital Infrared Ranging

Compass

Touch Switch

Pressure Switch

Limit Switch

Magnetic Reed Switch

Magnetic Sensor

Miniature Polaroid Sensor

Polaroid Sensor Board

Piezo Ultrasonic Transducers

Pyroelectric Detector

Thyristor

Gas Sensor

Gieger-MullerRadiation Sensor

Piezo Bend Sensor

Resistive Bend Sensors

Mechanical Tilt Sensors

Pendulum Resistive Tilt Sensors

CDS Cell Resistive Light Sensor

Hall EffectMagnetic Field

Sensors

Compass

IRDA Transceiver

IR Amplifier Sensor

IR ModulatorReceiverLite-On IR

Remote Receiver

Radio ShackRemote Receiver

IR Sensor w/lens

GyroAccelerometer

IR Reflection Sensor

IR Pin Diode

UV Detector

Metal Detector

Page 40: Getting started with interactive projects using the Arduino, Max and Processing

Bend Sensors• Resistance = 10k to 35k Ohms (usually)• Force to produce 90deg = 5 grams• www.jameco.com = 12$

Potentiometers• Fixed Rotation Sensors• Easy to find, easy to mount

Light Sensor• Good for detecting direction/presence of light • Non-linear resistance

Resistive Sensors

Resistive Bend Sensor

Cadmium Sulfide Cell

Potentiometer

Page 41: Getting started with interactive projects using the Arduino, Max and Processing

Call and ask for pricelistAnd Fsr guide

Force Sensing ResistorsFSRs