Nav

How to program the Touch Board for On Board MIDI Mode

Get ready for untethered musical fun!

The Touch Board has a powerful MP3 decoder chip that can also decode MIDI notes from its on board MIDI library, which is capable of playing multiple samples simultaneously. To use the Touch Board’s stand-alone MIDI functionality, also known as real-time MIDI Mode, you have to make some physical changes to the board. Let’s get started!

Illuminate your life! WARNING: please consult someone competent at working with mains electricity before attempting this tutorial!

Touch Board Light Switch Tutorial

Is your Touch Board too quiet or too loud? You're in the right place.

Changing the volume on the Touch Board

A quick demo on how to use Electric Paint to cold solder your board onto almost any material.

Attaching your Touch Board – Cold Solder

Materials

To begin you will need:

1x Touch Board
1x USB cable
1x Electric Paint Pen or Jar

1 x speaker or headphones
1 x computer
1x LiPo battery (optional)
1x soldering iron (or use Electric Paint)
paper/cardboard
vinyl stencil
paint brush
solder

Step 1

What is stand-alone MIDI mode?

The Touch Board uses the powerful VS1053 (large black chip in the centre of the image), which is capable of decoding Ogg Vorbis/MP3/AAC/WMA/MIDI audio. This chip allows the Touch Board to not only decode MP3s, but can turn it into a stand-alone musical instrument!

When this chip is put into real-time MIDI mode, it does not need to be connected to an external MIDI synthesiser. It becomes a complete instrument defined in code by the notes selected and mapped to the touch electrodes on the Touch Board.

Step 2

Defining the board as a stand-alone MIDI instrument

In order to use the on-board MIDI functionality you need to connect two solder bridges on the Touch Board. You can see them circled in red in the image opposite. The leftmost solder bridge connects digital pin 10 on the microcontroller to the MIDI receive pin on the VS1053 chip. The right solder bridge pulls a pin on the VS1053 chip high, which puts the chip into real-time MIDI mode. If you want to go back to MP3 playback mode at a later stage you will need to remove these solder joints.

Step 3

Connect the MIDI solder bridges

We can now connect the solder bridges by soldering a blob across the gap between the exposed gold pads. Don’t keep the soldering iron’s tip on the pads for too long as the heat will damage the board.

If you don’t have a soldering iron you can actually use Electric Paint to join these solder bridges. Just be careful to keep the paint within the copper pads. With this method you can easily pick off the dried paint blob with your nail if you want to go back to the Touch Board’s standard functionality. You can also use a damp cloth or a baby wipe to clean up any drips during application.

Step 4

Upload MIDI piano code

 

We now need to upload the MIDI piano code to the Touch Board. Firstly, if you haven’t already completed our Setting up Arduino with your Touch Board tutorial, please do that before continuing.

Once this is done, plug the Touch Board into the computer via the USB cable. Make sure that the power switch on the board is set to ON. Open the Arduino IDE and then select the Midi_Piano example under

File→Sketchbook→Touch Board Examples→Midi_Piano

Ensure that Bare Conductive Touch Board is selected under Tools→Board and that the correct serial (CU) port is selected under Tools→Port.

With all of the correct settings selected, click File→Upload to push the code to the Touch Board. The RX and TX LEDs will flash on the Touch Board and the Arduino IDE should say “Done uploading.”

With your Touch Board still connected to the computer test the program by plugging in a pair of headphones or a self powered speaker and run your finger over the electrodes. You should hear the default piano instrument playing!

If there are any issues check that the solder connections are properly bridging the two pads mentioned in Step 2 above.

Step 5

Cut and Paint Vinyl Stencil

Check out our Paint a Stencil with Electric Paint and Stencil Graphics with a Vinyl Stencil tutorials on how to make slick graphics for your Touch Board using Electric Paint. We used a vinyl stencil for ours.

Step 6

Cold solder electrodes

Now that your graphic is dry, correctly position your Touch Board. Use Electric Paint as a cold solder to connect the electrodes to the printed graphic. Check out our Cold Soldering tutorial on how to do this.

Step 7

Plug and Play

Plug in your battery or power supply and connect your speaker or headphones once again. This time use your awesome painted instrument keys! Don’t stop here. Play around in the code and choose other cool instruments in the setupMidi() function like Marimbas or a Glockenspiel. Once you’ve explored this code thoroughly, why not try making a MIDI Theremin?

Step 8

Suggested Tutorials

Illuminate your life! WARNING: please consult someone competent at working with mains electricity before attempting this tutorial!

Touch Board Light Switch Tutorial

Is your Touch Board too quiet or too loud? You're in the right place.

Changing the volume on the Touch Board

A quick demo on how to use Electric Paint to cold solder your board onto almost any material.

Attaching your Touch Board – Cold Solder

Categories

Bare Conductive

Get Started with the Touch Board

Touch Board

Date Posted

2014/09/09

Rating

How to program the Touch Board for On Board MIDI Mode
  • 0.00 / 5 5
0 votes, 0.00 avg. rating (0% score)