Page 1 of 1

Midi Controlled Lighting

Posted: Wed Apr 24, 2013 5:08 am
by AustinThumper
Hey fellows,

I've been geeking out with individually addressable rgb LED strips and Arduino. Actually not Arduino but Teensy, which has a huge advantage in the USB MIDI realm because it is class-compliant and works with everything...

Hardware wise, what is involved is - the led strip ( ), a teensy 3.0 ( ), a micro usb cable and a 2 amp usb charger (cheap ipad charger would work). I put my strip in a cheap rice paper vertical lamp but there's 42 other possibilities. ;-)

I set up the firmware so that the r,g and b channels map to midi chans 1-3. Midi Note on value (note number, not velocity, which is unused in this instance) determines the brightness for that channel (rgb) because using a m4l device that maps amplitude to note num. (With a device that maps ampl to CC val, (which seems optimal to me) the firmware would need to respond to ccs..)

I then use ableton L9 to process audio and feed midi to the strip, making today what was once called a "color organ". Ahem.

Processing of each led color channel (r,g and b) involves a EQ3 (Low = red, mid = g, hi = blue) driving an M4L envelope follower, which controls a Jazz ME device, sending midi to an external Midi "Teensy" instrument, set for channel 1 for red, 2 = green, 3 blue.

If anybody's eyes havent glazed over by now (!tl;dr), I'm happy to share (or even make a howto..) my code and the very simple circuit setup for making it work.

I'm working on uploading a short vid I've made.. Standby for that.

edit - hopefully this link to this google+ vid will work... ... jOuPyKqtLQ


Re: Midi Controlled Lighting

Posted: Wed Apr 24, 2013 10:13 pm
by Z3NO
Excellent work.
I would definitely be interested in the How-to and code. Would you be able to use DMX instead of midi?

Re: Midi Controlled Lighting

Posted: Wed Apr 24, 2013 10:21 pm
by dsu
That's cool

Re: Midi Controlled Lighting

Posted: Thu Apr 25, 2013 7:49 am
by tecgen
Very cool! I've got a AT90USBKEY, which is, as far as I know, very similar to the Tennsy board. Do you plan to release the source code?

Re: Midi Controlled Lighting

Posted: Thu Apr 25, 2013 12:22 pm
by AustinThumper
PM me with your email address and I'll send it to you. It's written for the arduino IDE, so there's no low-level processor initialization, etc, included in my code. Currently running on a Teensy 3.0 but it will run on a Teensy 2.0 as well.