Demo for ProtoStax Capacitive Touch Piano and ProtoStax Multi-Octave Capacitive Touch Piano
with Adafruit 12 x Capacitive Touch Shield for Arduino - MPR121, Piezo Buzzer, Arduino
using ProtoStax for Arduino Enclosure
This demo uses
- Adafruit 12 x Capacitive Touch Shield for Arduino - MPR121
- Piezo Buzzer - PS1240
- ProtoStax for Arduino
- Arduino (Uno), but you can use other form factors that fit a Shield
The multi-octave piano also uses 2 momentary push button switches to move the octave of the piano up or down from the base octave, giving multi-octaves with the same capacitive touch keyboard.
For further instructions, see the Portable Capacitive Touch Piano Tutorial at Hackster.io
Also see Multi-Octave Portable Capacitive Touch Piano Tutorial
This demo uses:
- Adafruit_MPR121 library v 1.1.3 - see https://github.com/adafruit/Adafruit_MPR121
- JC_Button library v 2.1.5 - see https://github.com/JChristensen/JC_Button
It also uses the built-in tone library. You can replace it with the NewTone library if you like
Arduino IDE->Sketch->Include LIbrary->Manage Libraries - choose
Adafruit_MPR121 and install it
git clone https://github.com/protostax/ProtoStax_CapacitiveTouch_Piano_Demo.git
See instructions in Tutorial linked above for putting together the shield, parts and enclosure.
open
ProtoStax_CapacitiveTouch_Piano_Demo/ProtoStax_CapacitiveTouch_Piano_Demo.ino in
Arduino IDE
compile sketch and upload to your Arduino
Written by Sridhar Rajagopal for ProtoStax. BSD license, all text above must be included in any redistribution
A lot of time and effort has gone into providing this and other code. Please support ProtoStax by purchasing products from us! Also uses the Adafruit MPR121 Shield for Arduino and Adafruit_MPR121 library. Please support Adafruit by purchasing products from them!
