LED and Midterm Direction : Week 5

LED Behavior Code

int tempPin = A0;
int led1Pin = 11;
int led2Pin = 9;
int led3Pin = 10;
int currentState = 0;

// LED values:
int ledDim = 50;
int ledMid = 100;
int ledFull = 255;

int tempMin = 100;
int tempMax = 500;

void setup() {
pinMode(led1Pin, OUTPUT);
pinMode(led2Pin, OUTPUT);
pinMode(led3Pin, OUTPUT);
pinMode(tempPin, INPUT);

Serial.begin(9600);
}

void loop() {
int tempReading = analogRead(tempPin);

if (tempReading < tempMin) {
currentState = 0; // dim
} else if ( (tempReading >= tempMin) && (tempReading < tempMax) ) {
currentState = 1; // mid
} else {
currentState = 2; // full on
}

Serial.print(tempReading);
Serial.print(“\t”);
Serial.println(currentState);
switch (currentState) {
case 0: // dim
analogWrite(led1Pin, ledDim);
analogWrite(led2Pin, ledDim);
analogWrite(led3Pin, ledDim);
break;

case 1: // mid
analogWrite(led1Pin, ledMid);
analogWrite(led2Pin, ledMid);
analogWrite(led3Pin, ledMid);
break;

case 2: // full on
analogWrite(led1Pin, ledFull);
analogWrite(led2Pin, ledFull);
analogWrite(led3Pin, ledFull);
break;
}

}

Midterm Prototypes

Paper prototypes:

fullsizerender-3

Here I tried to make open close switches with macrame knots and conductive thread. This ties into the idea of pulling the hanging planter down in order to light or turn off the LEDs (think lamp cord).

Concept:

I’m designing a lamp that feels kind of magical. I drew out some sketches and the macrame one stood out for me. That’s what I made my (somewhat unsuccessful) macrame switch prototypes. Mainly this falls into a funny subsection of aesthetics I fondly call witchster, one part witchy one part hipster. It’s huge in Bushwick ;).

img_2080

Materials list:

  • Arduino
  • Conductive thread
  • Rope
  • Battery
  • Solder
  • Container or bowl
  • cool stuff to put in it (plants? candles?)

Precedents / Style:

Processed with VSCOcam with f2 preset

a2be588496419131eb4edbb20ba5c8a6

Leave a Reply

Your email address will not be published. Required fields are marked *