4. Mouses Suck.

frankMaguire-LOGO-ICON

Well yes, we use the mouse all the time and it really has transformed the way computer interaction takes place, but as a form of expression, mouses really suck.

So let’s introduce some other forms of interaction.

You’ll notice that in the code in the previous sketch we set up three sensor variables.

Now we can use those to read various other sensors, a Bend Sensor and Potentiometer in our case, to change the behaviour of processing.

A. Paste this code into a new sketch.

Well yes, we use the mouse all the time and it really has transformed the way computer interaction takes place, but as a form of …

3. Adding control with Sensors

pachube-arduino-input

3. Control with Sensors – Light sensor

It’s real name is LDR (light dependant resistor)

A. Digital and analog -> what’s the difference?

B. Electricity – a quick detour
5V, +, +ve, VCC, etc
0V, -, -ve, GND, Ground, etc

C. Reading the sensor to use as the delay time.

Paste this code into a new sketch.

import processing.serial.*;
import cc.arduino.*;

Arduino arduino;
int ledPin = 13;
int sensor0 = 0;
int sensor1 = 0;
int sensor2 = 0;

void setup()
{
//println(Arduino.list());
arduino = new Arduino(this, Arduino.list()[0], 57600);
arduino.pinMode(ledPin, Arduino.OUTPUT);
}

3. Control with Sensors – Light sensor It’s real name is LDR (light dependant resistor) A. Digital and analog -> what’s the difference? B. Electricity …

2. Processing, meet my friend Arduino.

arduino-firmata

2. Firmata

Get this connected to processing

a. Use the firmata library at http://www.arduino.cc/playground/Interfacing/Processing.

b. download the zip file [http://www.arduino.cc/playground/uploads/Interfacing/processing-arduino.zip] and extract it into processing/libaries

c. If the folder doesn’t exist just create it.

Now Processing knows how to talk to arduino, now it’s time to let the arduino know how to talk back to processing.

Arduino, meet my friend Processing

a. Open Arduino and load File->Examples -> Firmata -> StandardFirmata

This slightly more complex program teaches Arduino to listen out for the things that Processing will say to it.

2. Firmata Get this connected to processing a. Use the firmata library at http://www.arduino.cc/playground/Interfacing/Processing. b. download the zip file [http://www.arduino.cc/playground/uploads/Interfacing/processing-arduino.zip] and extract it into processing/libaries …

1. Arduino and Blink

Screen shot 2010-09-11 at 10.07.55 AM

1. Blink.

Introduce the arduino, check http://arduino.cc
a. refs and resources:

Camera

-        AR Scratching, Todd Vanderlin, http://toddvanderlin.com/ar-scratching

-        Eye writer, Zach Lieberman http://www.eyewriter.org/

-        Shadow Monsters, Phillip Worthington, http://www.worthersoriginal.com/viki/#page=shadowmonsters

-        IO Brush, Kimiko Ryokai, http://web.media.mit.edu/~kimiko/iobrush

Touch

-        Felt Resistor http://thomas-gerhardt.com/itp/FeltResistor/

-        Tuned Stairs, La Centre Pompidou (2006) http://www.plankman.com/projects/tuned_stairs/

-        Set in stone, Ithai Benjamin and Vikram Tank, http://setinstone.wordpress.com/

Wearable

-        Turn Signal Biking Jacket, Leah Buechley, http://web.media.mit.edu/~leah/LilyPad/build/turn_signal_jacket.html

-        Skinput, Chris Harrison, http://www.chrisharrison.net/projects/skinput/

Motors

1. Blink. Introduce the arduino, check http://arduino.cc a. refs and resources: Camera -        AR Scratching, Todd Vanderlin, http://toddvanderlin.com/ar-scratching -        Eye writer, Zach Lieberman http://www.eyewriter.org/ -        …

Tangible Interaction Design

Tangible Interaction Design - Easy with Arduino

Tangible Interaction Design - Easy with Arduino

Getting on with Tangible interaction design sketching is easy with Arduino and Processing.

Getting on with Tangible interaction design sketching is easy with Arduino and Processing. Permanent link to this post (15 words, 1 image, estimated 4 secs …