Theremin

Re-create a classic electronic instrument with Sparki's ultrasonic sensor

Ardublock
Easy

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:

ardublock_theremin_example_1

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:

ardublock_theremin_example_2