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

Post on 11-Jan-2016

225 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Getting started with interactive projects

using the Arduino, Max and Processing

What’s a micro-controller?

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?

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?

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

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

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

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

• 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

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

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

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Change

ledPin

to 9

http://www.processing.org

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Try example “fading” with the same circuit

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

init

setup

loop

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

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

1) Quit Max

2) In the arduino environment open: arduinoSerialreader_wiring.pde

4) start Max

3) Upload to Arduino

5) open Arduino2Max_MaxPatch

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

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

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

Call and ask for pricelistAnd Fsr guide

Force Sensing ResistorsFSRs

top related