Soft Circuit Carrot- Matt Stockmal

For my project, I decided to experiment with an RGB LED. the idea of the project was to create a switch using a conductive carrot. When the carrot is not completing the circuit, the red negative LED is turned on. When the carrot is plugged in and completing the circuit, the LED will display an orange color (combination of red and green LEDs).

The project uses an RGB led wiring in combination with the standard switch wiring provided in the example. I used a teensy instead of an Arduino. The logic goes as follows: If the carrot is plugged in, digital write the orange LED on, all other time, turn on the Red LED.


IMG_20180117_114946Screen Shot 2018-01-17 at 11.44.53 AM.png



//combonation of Button Example patch AND adafruit tutorial
int redPin = 8;
int greenPin = 30;
int bluePin = 29;
const int buttonPin = 35; // the number of the pushbutton pin
const int ledPin = A17;
int buttonState = 0;
void setup() {
// put your setup code here, to run once:
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);

void loop() {
// put your main code here, to run repeatedly:
buttonState = digitalRead(buttonPin);

// check if the pushbutton is pressed.
// if it is, the buttonState is HIGH:
if (buttonState == HIGH) {
// turn LED on:
digitalWrite(ledPin, LOW);
analogWrite(redPin, 0);
analogWrite(greenPin, 90);
analogWrite(bluePin, 255);
else {
// turn LED off:
analogWrite(redPin, 255);
analogWrite(greenPin, 255);
analogWrite(bluePin, 255);
digitalWrite(ledPin, HIGH);

void setColor(int red, int green, int blue)
red = 255 – red;
green = 255 – green;
blue = 255 – blue;
analogWrite(redPin, red);
analogWrite(greenPin, green);
analogWrite(bluePin, blue);


Introduction – Matt Stockmal

Hi Everybody!

My name is Matt Stockmal and I am currently a sophomore in DC.

Prior experience:

I have taken physical computing and digital physical systems so I do have experience with microcontrollers, 3d modeling, and fabrication. I also have taken David’s interactive environments so I have MAX experience.


I have worked with 3d printed plastics, laser cut woods, and the wiring and sensors used for basic Arduino projects.

Biodesign Intrest:

I think the Root Bridges of Meghalaya are incredible. To create a bridge which not only sustains itself but gets stronger with each day is a mind-bending concept to me in the field of built environments. It reminds me of the 100-year exposure camera in ASU’s art museum, it only gets better with age.