Showing posts with label HC-SR04. Show all posts
Showing posts with label HC-SR04. Show all posts

MIDI Based Theremin using a Raspberry Pi

This is a simple guide to build an electronic musical instrument. The MIDI notes are generated using a Raspberry Pi and a sonar sensor. Although the original Theremin is played using antennas, this one will use sonar technology as pitch control. The idea is to vary the distance between the user hand and the distance sensor, causing the pitch to change accordingly.

Distance sensor working on a Raspberry Pi

A fun way to start playing with your Raspberry Pi is using LEDs and buttons, from there you can try other sensors. This is a simple, hands on tutorial to get the HC-SR04 distance sensor working using the Raspberry Pi.


Materials