Introduction
A theremin is a musical instrument that is played by holding your hand in front of a sensor. The farther out from the sensor, the higher the tone. Today, we’re going to make Sparki into a theramin, using the
ultrasonic range finder as input, and the
buzzer as output.
What will you need
How It Works
This program makes Sparki into a theremin, using Sparki’s ultrasonic distance sensor to measure the hand distance, and the buzzer to play the tone:
![](https://arcbotics.com/wp-content/uploads//2014/06/therenim1.png)
If you play around a bit with the number which multiplies the sensor readings from the ultrasonic sensor block, and with the duration of the notes, you can get different sounds:
![](https://arcbotics.com/wp-content/uploads//2014/06/therenim0.png)