Digital Handpan V2: The Touch Drum

SparkFun Engineer Joel plays a melody on the second version of the digital handpan, aka the Touch Drum.

Favorited Favorite 0

Awhile back, I introduced a prototype for a concept instrument I had been working on: a capacitive touch digital handpan. Since then, I've taken the project to the next level by turning it into an actual instrument that can be played by itself or with other instruments!

alt text

After searching high and low for the perfect enclosure, I came upon an old head of lettuce container at a local thrift shop. It ended up being the perfect size and shape for what I wanted.

I started by cutting out circles of copper tape and adhering them to the top portion of the container. Tiny holes were drilled to pass through small gauge wire and solder it to the tape. I attached the pads to the prototype to ensure that they would still behave as expected. After a successful test, I went to work adding the rest of the interface to the top half, including the buttons, potentiometers and the Teensy View screen.

inside top

Note: I added a ninth pad but ended up not using it in the final design.

The OLED screen displays useful information, including the current musical scale and the key (or tonic) of the scale, volume, decay, the current octave, and the current battery percentage and voltage.

Teensy View OLED Screen

The bottom of the container was cut out to allow a speaker to sit nicely inside the enclosure and produce sound out the bottom of the drum.

speaker

Inside the drum, a snappable protoboard was used to contain all the electronics, which sit on a plastic platform on top of the speaker. At the center of it all is a Teensy 3.2 and a Teensy Audio Shield. A SparkFun LiPo Fuel Gauge is used to provide the battery statuses, and a 5V/1A Charger/Booster to handle charging and boost the battery voltage to 5V to power the audio circuitry.

alt text

Fellow SparkFun Engineer Marshall, who helped tremendously with this project, persuaded me to try out his technique of using a motor driver as an amplifier. It worked surprisingly well, so I left it in this design. However, using a Mono Audio Amp Breakout would work just as well and is likely more user-friendly.

alt text

On the back is the remainder of the user interface. There is 1/4" jack to provide line-out audio and a switch to switch between line out and the internal speaker. The red switch controls power, and the barrel jack above allows 5V in to charge the LiPo.

back

Last, to give the drum a little more functionality, I added one more 1/4' jack on the back that connects to switches on a foot switch to two digital pins on the Teensy. These switch changes increment or decrement the current octave. I wanted to be able to use the foot switch with professional audio equipment, such as the BOSS RC-30 Loop Pedal, so it was modeled after the BOSS FS-6 Dual Footswitch. Most professional audio foot switches, including the FS-6, use a normally closed (NC) switch vs. the normally open (NO) switch found more commonly in embedded electronics. I found some NC switches from this Guitar Pedal Parts site. Note that a stereo cable must be used to utilize both of the switches. An additional 3.5mm jack was added just as a secondary cable option.

alt text

The switches and jacks are housed within a SparkFun Aluminum Enclosure, which provides a very robust enclosure.

alt text

To see the Touch Drum in action, check out the video below.

Materials

A majority of the parts used to build the Touch Drum can be found in the wish list below. Additional supplies needed include an enclosure to house your drum and a speaker.

Code

All the code for this project can be found in the Digital Handpan GitHub Repository:


Comments 6 comments

  • Member #1537678 / about 5 years ago / 1

    hi. thank you it is great. do you have the cable plan?

  • Member #946518 / about 6 years ago / 1

    What did you use for a speaker? I went with the mono audio amp breakout if it makes a difference in what to use.

  • Member #1373547 / about 7 years ago / 1

    Thanks for this nice project. Do you think it's possible to replace copper tape with Piezo Elements like this : https://www.sparkfun.com/products/10293

  • ficklelope / about 7 years ago / 1

    very cool.

  • Member #731431 / about 7 years ago / 1

    Cool project and nice implementation! I like the creative use of the lettuce container as enclosure; it seems to really lend itself well to this application. An inspiration to us all to look around and think creatively for unique and inexpensive project enclosures. There instrument itself seems really versatile and sounds great!

Related Posts

Recent Posts

Tags


All Tags