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.
Showing posts with label HC-SR04. Show all posts
Showing posts with label HC-SR04. Show all posts
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
Materials
- Raspberry Pi Model B rev. 2
- HC-SR04 distance sensor
- 2 x resistances, R1<R2<2*R1
- Prototype board
- Some cables
Subscribe to:
Posts (Atom)