A theremin-like instrument for Arduino
Arduino
Latest commit 7401851 Apr 14, 2013 @jerwil jerwil Completed circuit diagrams of breadboard & final
Breadboard wiring is untested and is based on the source code. Not shown
are 2 22pf capacitors going from legs of 16 MHz crystal to ground on
soldered circuit.

README.md

theremax

A theremin-like instrument for Arduino, using a HC-SR04 ultrasonic ranging module.

Demo

Features

  • Play notes of a C major scale based on distance from instrument
  • 6 octaves, adjustable by rotary encoder
  • Sharp button (modulate up half a step)
  • Loop recording mode with metronome light and tempo adjustable by rotary encoder

Requirements

Hardware

  • Arduino Uno
  • HC-SR04 ultrasonic ranging module
  • Speaker/buzzer
  • Rotary encoder with built-in push button
  • 74HC595 shift register
  • 9 LEDs
  • 2 push buttons

See the included Fritzing diagram for details (+ wires, resistors, etc.).

Arduino Libraries

TODO/Wishlist

  • Fix some intermittent tempo issues during loop playback
  • Indicator of current recording bar on LEDs (using ShiftPWM)
  • Record/playback two tones at once (Tone supports this)

Etc.