The theremin is an experimental musical instrument invented by the russian physicist Lev Sergeevich Termen in the 20's. Without physical contact, two antennas can sense the position of the theremin player's hands in space and use it to control the frequency and amplitude of the sound. The theremin has been used in classic movie soundtracks such as The Day the Earth Stood Stilland The Thing from another world.
In this hack, we'll see how to make a simplified theremin-like instrument that changes the pitch played as you wave your hand over an Infrared Proximity Sensor. In addition you can easily vary the length of the "beat" and drive various blinking LEDs (seemingly) all at the same time... it's the magic of multi-threading!
Despite its apparent complexity, this project requires very simple electronics, as most of the dirty jobs is done for you by VIPER, the software used for programming the theremin.
VIPER (Viper Is Python Embedded in Realtime) is an easy to use development suite for the high level design of interactive objects ready for the cloud and theIoT. With VIPER creatives, designers and professionals can develop in Pythonfor Arduino DUE, ST Nucleo and most of Particle (formerly Spark) products, and similar boards using paradigms and features typical of PC and mobile programming.
DISCLAIMER
Even though VIPER is a professional and performant development suite, this tutorial shows how to make a non-professional theremin, played by a non-professional thereminist, as shown in the "Intro" video.
However, we are quite confident that you will get better outcomes than Sheldon :)
So, let's go!