Hi all,
For an arts project I'm trying to design an interactive pole - a bit similar to the "theremin bollard" (showcased here: https://www.youtube.com/watch?v=j_lsG3Fi2ow).
The theremin part of my project is basically a proximity sensor for an Arduino (Pro Mini with ATmega328p controller), it can sense whether someone is nearby (where nearby would be 2-3 meters), and react to a person's presence by e.g. changing the colour of its lights or so. I'm hoping to get some input from the experts on how to improve my project and bring it to completion, not interested in reinventing the wheel here or so, just wanting to get it done.
I built this circuit: http://interface.khm.de/index.php/lab/interfaces-advanced/theremin-as-a-capacitive-sensing-device/ and it works quite well. A piece of wire, an inductor from my parts box (no idea on the Q factor or any other parameters, it's a cheap ferrite core I-shape type) and a 74HS00 NAND chip, again that happened to be in my parts box. Works quite well - about 100 ppm short term stability but longer term it deviates more. Frequency came to about 6 MHz (much higher than the expected ~4 MHz - as if the inductor is just 5 µH instead of the stated 10 µH). It reacts significantly to my movement up to some 30-40 cm away (change of >100 ppm).
A simple and inexpensive circuit, I like that. It's not for an instrument, the square wave output this produces is a plus for me. Also no need for a secondary (heterodyne) oscillator, an Arduino can measure that frequency just fine. It'll have to autotune as of course the frequency will vary with the environment it's in.
Obviously the first thing that needs attention is the frequency itself. My Arduino had no issues measuring it, but I do suspect that part of the 100 ppm is due to instability of its clock. That appears to be a simple matter of changing the 10µH inductor to 220µH, keeping the 150 pF capacitor. It seems that the lower the value of this capacitor the higher the sensitivity, as the change of antenna capacitance is in the 0.1-1 pF range. Is this so?
I'll probably be able to gain stability using better inductors, higher Q factor specifically.
The second part is the sensitivity which has to increase. The greater the better; in software I can always make it less sensitive by requiring a greater change before it reacts.
Larger antenna means larger sensitivity: the pole we're designing will be some 80 cm tall, the antenna can extend the full length (control board will be in the base of the pole). Some searching on this forum got me to this post http://www.thereminworld.com/forums/T/26533?post=178817#178817 and the spreadsheets linked in it, suggesting to add an inductor in between the tank circuit and the antenna (in my case I'm estimating 13 pF antenna capacitance and 275 kHz frequency for 25 mH inductance) to increase the sensitivity. Is it that simple?
My idea is to use the centre of the pole for the antenna, this centre would be a rod with a string of WS2812B LEDs wrapped around it. On second thought this may not be too great an idea as the LEDs are bound to interfere with the antenna big time, especially as they'll be running off the same power supply (battery power for portability - probably a USB powerbank). Not sure what to do about this - I could make a wire ring at the top of the post, along the edge. Also pretty much invisible (the pole itself will be translucent as the LED light has to shine through, probably milky or frosted acrylic).
Thanks for your valuable comments on this.
Wouter.