I decided to use muscle wire to heat up a piece of thermochromic fabric. Unfortunately i had to press down on the fabric to get anything to show because the muscle wire wasn’t getting as warm as I would have liked. I also could not get the while loop to serial print to the console and I’m not sure why.


int analogPin=A0;
int ledPin=9;
void setup() {
pinMode(analogPin, INPUT);
pinMode(ledPin, OUTPUT);

void loop() {
int value=analogRead(analogPin);
int ledValue=map(value,0,1023,0,255);
analogWrite(ledPin, ledValue);

Potato Circuit

For my switch I took the button example patch in Arduino and added one more LED on pin 12. I took a potato and pushed two copper pennies into it on opposite sides, taping the wires to the pennies and running them into the breadboard like normal.