PComp #5 – Garden Box Theremin

I made this sound and light theremin following the Arduino Theremin instructions in the booklet. I used recycled materials from my house including a small cardboard box that housed nut cheese and some magazine photos and tape. I had a bunch of leaves in a vase that were on their way out, and decided to use them to camouflage the inside of the box, the arduino and breadboard. It also creates a little bit of stability for them and making movement less inside the box, the piece is still pretty delicate. I placed it so it still looks wild, the only piece of the circuit that’s visible is the photoresistor. One of the leaves is acting like a lever to open and close the box, triggering the scale in Arduino. There’s a whole in the side of the box to connect USB from Arudino to computer. The photoresistor is triggering the Theremin in the Arduino.

Arduino Theremin Garden Box from Nire ITP on Vimeo.

This is the code I used:
int sensorValue;
int sensorLow = 1023;
int sensorHigh = 0;
const int ledPin = 13;

void setup() {
digitalWrite(ledPin, HIGH);
while (millis() sensorHigh){
sensorHigh = sensorValue;
if (sensorValue < sensorLow) {
sensorLow = sensorValue;

digitalWrite(ledPin, LOW);

void loop() {
sensorValue = analogRead(A0);
int pitch =
map(sensorValue,sensorLow,sensorHigh, 50, 4000);

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: