Step 4: Programmin'

There is a surprising amount of information online on how to program an Arduino for use with DIY drum triggers. Google will tell you so. I learned a great deal from looking at the code of todbot, adafruit, mschaff, and Spikenzie Labs. I also received considerable input from the always effervescent W. Xavier Snelgrove.

So, you could use MAX/MSP/Jitter or Pure Data to process the signals from the Arduino, and that might actually give you more flexibility (I'll try to post some info on this soon), but instead there's a really great little application out there called Serial-MIDI Converter. It does just what you might think - converts signals sent over a serial connection to MIDI. It works with any MIDI-compatible program such as Garageband or Ableton Live. Click on the link and download it, all the info on how to use it is right there on the download page.

Like I said, if you've never used or programmed an Arduino before, you really should check out the Getting Started section on the official Arduino site, as well as their tutorials.

The code is commented, so I won't explain it in detail, I'll just post the sketch here at the bottom of the page. Basically, you just set a lower and upper threshold for each sensor. If the upper threshold is exceeded, a MIDI message is triggered, and once the force sinks below the lower threshold, another hit can be triggered. It's called hysteresis, and it makes sure that you don't set off multiple messages per hit.

You may have to fiddle around with the thresholds, depending on your personal foot-tapping style and weight distribution.

 
Remove these adsRemove these ads by Signing Up
rochelle1 says: Feb 21, 2011. 7:29 AM
Hey this is a really cool project. Im doing something similar with a table top pad but I'm a total newbie to this. lol Can you use Processing software with this as well?
thobson (author) in reply to rochelle1Feb 22, 2011. 3:14 PM
Almost certainly!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!