« Bryce Davidson **E-light "Sketch" | Main | Art Dept FAQ »

9/15 eLight: jane powers: Fluffy

I began thinking about making an e-kaleidoscope. At a fabric store I discovered some colorful soft socks and putting my hand inside to check out how stretchy they were, saw the possibility for a puppet and that lead me to think about a soft snuggly toy. Below is documentation of phase one prototype. The form is basically complete and the software cycles through 6 light colors: red, yellow, green, turquioise, blue and violet. I'm now modifying the code to use the light to give the toy, named Fluffy (by my young friend in the photo below), a "personality" or at least set a mood.

Sol examining Fluffy.jpg

Sol feet hold.jpg


/*
Blink

int redPin = 12; // red LED connected to digital pin 12
int greenPin = 11; // green LED connected to digital pin 11
int bluePin = 10; // blue LED connected to digital pin 10

// The setup() method runs once, when the sketch starts

void setup() {
// initialize the digital pin as an output:
pinMode(redPin, OUTPUT); //sets the digital pin as output
pinMode(greenPin, OUTPUT); //sets the digital pin as output

pinMode(bluePin, OUTPUT); //sets the digital pin as output
}

// the loop() method runs over and over again,
// as long as the Arduino has power

void loop()
{
// red on & off
digitalWrite(redPin, HIGH); // sets the red LED on
delay(500); // waits for a half second
digitalWrite(redPin, LOW); // sets the red LED off
delay(500);
// yellow on & off
digitalWrite(redPin, HIGH); // sets the red LED on
digitalWrite(greenPin, HIGH); //sets the green LED on
delay(500);
digitalWrite(redPin, LOW); // sets the red LED off
digitalWrite(greenPin, LOW); //sets the green LED off
// green on & off
digitalWrite(greenPin, HIGH); //sets the green LED on
delay(500);
digitalWrite(greenPin, LOW); //sets the green LED off
delay(500);
// turquioise on & off
digitalWrite(greenPin, HIGH); //sets the green LED on
digitalWrite(bluePin, HIGH); //sets the blue LED on
delay(500); // waits for a half second
digitalWrite(greenPin, LOW); //sets the green LED off
digitalWrite(bluePin, LOW); //sets the blue LED off
delay(500); // waits for a half second
// blue on & off
digitalWrite(bluePin, HIGH); //sets the blue LED on
delay(500);
digitalWrite(bluePin, LOW); //sets the blue LED off
delay(500);
// violet on & off
digitalWrite(bluePin, HIGH); //sets the blue LED on
digitalWrite(redPin, HIGH); // sets the red LED on
delay(500);
digitalWrite(bluePin, LOW); //sets the blue LED off
digitalWrite(redPin, LOW); // sets the red LED off
delay(500);