Instructables
Picture of Arduino Uno Xylophone
from the side.JPG

This xylophone uses the Arduino Uno and a multiplexer to identify when one of eight keys are struck, and play that sound via midi sound on a computer. An optional part of the instructions also allows each key to light up with two LED lights at the same time the xylophone is struck. These steps outline what I have done.

 
Remove these adsRemove these ads by Signing Up

Step 1: Necessary Parts

Picture of Necessary Parts
photo (7).JPG
  • Arduino Uno
  • 9 V battery with Arduino adaptor
  • Arduino to USB connector
  • 8 piezo disks
  • 8 1 M Ohm resistors
  • Protoboards
  • Terminal Connectors
  • Strips of acrylic and a box (or something to make the xylophone with)
  • PLENTY of wire

Software:

For LED Compatibility:

  • 16 LED lights (two for each bar, cannot be more than two)
  • Suitable resistor (I used 220 Ohms)

Step 2: The Basics

Picture of The Basics

The multiplexer is key to this project, as it allows you to take 8 analog ins or outs, as opposed to the 6 on the Uno. Using one analog in and three digital ports on the Arduino, the multiplexer runs through each input and reads any changes. In this case, the multiplexer reads any change in the piezo disks. (Picture is courtesy of Jenna Deboisblanc)

ASCAS3 months ago

AWESOME write-up! You've inspired me to do something similar, a drumpad :D