Blog Home

Arduino Midi Rainbow

Davide GombaApril 21st, 2011

Last week I was in Rome for the Arduino Day. I was amazed by the projects and the people there: true Arduino fans. This is the first post about some of those projects: more soon.

[anbello] generates – via MIDI – different light patterns on a strip of addressable RGB LED

MIDI messages from the keyboard (real or simulated on PC) enter the MIDI Shield’s MIDI IN and are presented to the Arduino serial port. The Arduino firmware interprets the MIDI messages NoteOn NoteOff, associates each key on the five octaves (60 keys) keyboard to a strip LED and lights it with color associated with the note. In the firmware to control the strip we used the FastSPI_LED library that allows you to address every single LED and turn the desired color (R, G, B).
One interesting thing to note is the use of the firmaware function millis() to implement a sort of elementary multitasking. The idea was taken from this post after user “westfw” on the Arduino forum.

I really appreciate the effort of translating the post. Check the code and part list on [Sululab]

 

One Response to “Arduino Midi Rainbow”

  1. Making light of music: week two » minor9th.com Says:

    […] the way which have helped me think a bit more about how to structure the thing. First via Ben, this midi rainbow which is a much simplified version of what I’d like to do but a great starting point and all […]

Leave a Reply

You must be logged in with your Arduino account to post a comment.