[Martin] sent in a great guide to a simple Arduino based theremin. It’s a very small build – just a single common IC and some passive components – and easy enough to build in an afternoon.
The theremin is based on a simple LC oscillator built around a 7400 quad NAND gate IC, a wire antenna, and a few caps and resistors. When a hand moves closer to the antenna, the frequency of the oscillator increases; when a hand moves away, the frequency decreases. On the software side, the oscillator is connected to the internal hardware counter of the Arduino. Every time there’s a change in the voltage output by the oscillator (all the time, varying slightly with the distance from a hand to the antenna), the counter increases by one. This counter is tallied up over 1/10th of a second, and the distance from the instrumentalist to the theremin can be determined. From there, it’s just outputting a frequency to a speaker.
All the code, schematics, and board layouts are available on [Martin]’s guide, and most of our readers probably have the parts to build this lying around their workbench. You can check out a video of [Martin]’s theremin in action on his guide.
This looks great, going try putting this together later today!
CapSense library and a sheet of foil.
Done.
I agree.
http://elective2011.blogspot.com/2011/11/smart-systems-arduino-theremin-coding.html
Ok, When I first read this I thought ‘cool hack but why even use the Arduino when you already have an oscillator?’. Then I read the actual article… ‘…Arduino Board that gives out the tune to a speaker or puts out the tune as control signal like MIDI, Servo etc…’ This makes a possibility of Theramin to MIDI. Hmm… Interesting!
I would go for the LC oscilator and counter type solution shown above over the capsense solution.
I’ve always found the CapSense library sense technique unreliable and fussy. Of course you could use a better touch sensing solution as documented in app notes by microchip etc where the sense plate is charge by more direct connection to an output pin (often through a diode or ~1K resistance). Then the capacitance is measured via dicharge through a large resistor or charge transfer to the sample hold circuit of an ADC channel.
A fully digital solution is here !
http://luckylarry.co.uk/arduino-projects/arduino-a-basic-theremin/
A true Theremin has a volume control – one antenna for pitch and the second for volume. I guess this would need a second such device to add that antenna.
A REAL theremin has two antenas, one circular gives you the pitch and the other horizontal gives you the volume. See any YouTube video of people playing a theremin.
Oh silly trolls. The Sachs-Hornbostel and other musicologists category of Electrophone don’t have that granularity. I think a third level category would be position sensing controls and forth would divide IR from LC sensing circuits with the LC being refereed to as theremins. Expression controls could be a fifth level.
Theremin’s design has included foot petals and push buttons for the articulation as well as a few different brands only have the hetrodyne LC for producing a different controls for the expression. The RCA and Moog theremins do have volume antennas but they are not the only instrument in that class.
I saw Victor Wooten’s solo project live and his brother (not Futureman oddly enough) play the theremin using only the pitch and a wah pedal.
I have a related side-question:
I want to open a drawer by a hand-gesture. I first thought about some optical-sensors, installed next to each other, so I can check if there is a constant sensing from left to rights. But… meh, I have the feeling that walking by it would make some problems.
So, is there a sensor to check if a hand of flesh is nearby? This project is sensing the distance of a hand, so is there a sensor for sensing hands in a distance of 1-10 cm/inch?
to MIDI makes more sense than just to a speaker.. I am sure that could be done completely analog pretty easily…
It’s the 0.1 sec interval between measurements that bothers me. There’s so much data being thrown away by using a digital solution, when this is the type of thing analog solutions are best at. There has to be an easier way to connect a theremin to an arduino. Is it limited by processing power?
Moog has control voltage out for both the volume and pitch. Volume is 0-10v and the pitch scales from -2.5 to 3.5v, so you can do some tricks with diodes and resistors and use the analog in on the arduino.
0.1 sec should be just fine to play accurately and expressively anyway.
I just got an ultrasonic sensor in the mail yesterday, and in just about 5 minutes had something similar working…Probably even simpler than this project (though entirely digital with square wave audio instead of sine).