loading...

Theremin Glove

terceranexus6 profile image Paula Updated on ・2 min read


Not long ago I saw in gearbest an Arduino Nano. I already used arduino uno and I love open hardware and gadgets, so I bought one to have some fun. Yesterday it arrived in home and I decided to make hand theremin I can dance and play with. Instead of using the breadboard like in most of my projects, if I wanted to use it in the street comfortably, I would need to weld some parts. First of all, I used:

  • Piezo
  • Light sensor + 20 KOhm
  • Arduino nano

The Piezo needs to connect both to GND and to a digital pin, the light sensor to an analog pin, 5V and Ground. My light sensor is a bq module prepared for wiring, but in my schematics I provide the welding instructions for a normal sensor.

Now, the code has to be uploaded with the arduino IDE, using C. Mine is:

//sensor value and its limits
int sensorValue;
int sensorLow = 1023;
int sensorHigh = 0;

//for connection checking, no need to put the led in the actual circuit
const int ledPin= 13;

void setup() {
  pinMode(ledPin, OUTPUT);
  digitalWrite(ledPin, HIGH);
  while (millis() < 5000) {
    sensorValue = analogRead(A0);
          if (sensorValue > sensorHigh) {
                    sensorHigh = sensorValue;
          }
          if (sensorValue < sensorLow) {
                    sensorLow = sensorValue;
          }
  }//end of while.
  digitalWrite(ledPin, LOW);
 }

void loop() { 
  sensorValue = analogRead(A0);

  int pitch = map(sensorValue, sensorLow, sensorHigh, 50, 4000);
  // I connected the piezo in digital 5
  tone(5,pitch,20);
  delay(10);

}

This is the wiring and other relevant instructions:

For the power supply I recommend using a power bank attached to the arm. Now go and have fun!

Posted on by:

terceranexus6 profile

Paula

@terceranexus6

Offensive security, into privacy and digital rights. I give speeches, write articles and founded a digital privacy awareness association called Interferencias in Spain. Japanese style tattooing.

Discussion

markdown guide
 
 

Interesting idea.

I've been trying to work on some ideas to put some kind of odd electronics into the cigar box and regular guitars I build, something that goes beyond the usual guitar pickups. Back in the 60's through the 80's guitar companies used to experiment with this kind of stuff, like guitorgans and synth guitars, but you don't see it that much today. I like the idea of combining rootsy music with electronica.

 

Isn't Lilypad arduino a better solution for something like that ?
However, Awesome project :)

 

Probably. I actually bought the nano first just for fun (I love hardware) and then thought what could I do with it. Thanks for the tip!