Quick and easy Arduino-powered theremin

[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.

Remove your Arduino's external oscillator to gain a free pair of IO pins

2free-arduino-io-pins

[Mark] from SpikenzieLabs was wrapping up a project using an Arduino the other day and found himself in need of a few more I/O pins. He could have added extra circuitry to the project, but he decided to see if he could gain a few pins by removing a few components instead.

He put together one of his Minuino boards, but rather than installing the crystal and its associated capacitors, he added a couple of pin headers in their place. It’s well known that the internal clock on the chip is not as precise as a crystal, but [Mark’s] project was not that time sensitive, so he had no problem sacrificing the oscillator for a few extra pins.

With his new I/O pins in place, he merely needed to tell the ATmega chip which clock it should be using, and he was well on his way. While this might not be the best solution for all projects out there, if you are building something that values pincount over precision, this hack is for you.

Check out the video below to see [Mark’s] hack in action.

[via HackedGadgets]

[Read more…]