Chris’ Transistor

I used a heating pad and a switch to turn it off and on. I played with a few ways of applying the thermodynamic dust to the heating pad and I found that if mixed with water, the paste can be applied to paper products which can then be pressed against the heating pad. The video below shows a piece of thin paper with the dust paste on it. I should have picked a different color than yellow so the change would be more obvious but the video shows a pretty distinct difference.

Screen Shot 2017-02-12 at 10.33.54 PM.png

Chris’s analog sensing/rgb led projec

I used the conductive string to build a potentiometer that is suspended in a box. The amount of signal received by the analog input is scaled to a range of 0-255 in order to control parameters of an rgb led. If the potentiometer is high, the rgb led will produce a more green/red color. If the potentiometer is high, the rgb led will produce a more blue color.

Screen Shot 2017-01-29 at 7.43.49 PM.png

Chris’s Soft Switch

Description:

I use conductive fabric to create circuits connecting the three LED’S to arduino. I then use a switch to automate change from the green to red LED and vice versa. The transition from the green to red LED is accompanied by a short pause from the yellow LED in between. The transition from red to green LED is instant.

Video documenting how my project functions:

Source Code:

const int buttonPin = 3; // the number of the pushbutton pin
const int ledPin = 13; // the number of the LED pin
const int yellowPin = 10;
int buttonState = 0; // variable for reading the pushbutton status
int state = 0;

void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);//green led
pinMode(11, OUTPUT);//red led
pinMode(yellowPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);
}

void loop() {
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);

// check if the pushbutton is pressed.
// if it is, the buttonState is LOW, start red light cycle:
if (buttonState == LOW ) {
if(state == 0){
// turn RED on:
digitalWrite(11, LOW);
digitalWrite(yellowPin, HIGH);
delay(3000);
digitalWrite(yellowPin, LOW);
digitalWrite(ledPin, HIGH);

state = 1;
}

} else {
// start green light cycle:
digitalWrite(ledPin, LOW);
digitalWrite(11, HIGH);
state = 0;
}
}