User:Laurier Rochon/prototyping/clapping music led chip driver

From XPUB & Lens-Based wiki
< User:Laurier Rochon
Revision as of 18:06, 31 October 2010 by Laurier Rochon (talk | contribs) (Created page with "== BENT COLORS GALORE! == ''(recordable patterns)'' Hm. So I'm not a great fan of music to prototype stuff (my colleagues either, I'm sure), so I transformed this audio pattern ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

BENT COLORS GALORE!

(recordable patterns)

Hm. So I'm not a great fan of music to prototype stuff (my colleagues either, I'm sure), so I transformed this audio pattern into a visual one. I was tinkering with an LED chip driver last week (TLC5940) which is a great little piece of hardware that uses up only 4 Arduino pins, and lets you connect up to 16 LEDs. The sweetest part : Arduino has a library to control the LEDs with, so moving light vectors and shooting lasers around is a piece of (chocolate) cake.

Functionality - it is very crude and not supra-user-friendly, but here's how it goes : there are 2 modes, record and playback. By default you start in record mode, to 'make' your pattern. There are 2 buttons that I made out of wires (had only 1 pushbutton) which allow you to scroll horizontally through the strip of LEDs, and to turn each one on or off. As you do this, it gets recorded instantly in the list, and you can play back your pattern anytime by pushing the big red button, entering 'playback' mode again. In this respect, there is no need to 'save' as you go, the program does it automatically (which happens to be fairly short, I was surprised).

As you play back the pattern, it will loop indefinitely until you start recording something over. I won't put a circuit diagram on here, but I have some hi-res photos.


Some stuff I used :


Problems :

  • I tried plugging in the TONE function to play the patterns in audio just for fun, and for some reason it jams up the LED strip and won't send the signal to them. It looks like there is a conflict with the TLC5940 chip somewhere, as I have tried many different configurations, but to not much avail.
  • When in record mode, the on/off variable always stays whatever it was at last - meaning that if you turn off an LED, and go to the next one, you're not sure where you're at in the pattern. This should be easy to fix though.
  • Gotta get some pushbuttons, those wires are stoooopid.
  • I wonder how much current this thing is pulling?


PICS

BENT COLORS GALORE!

BENT COLORS GALORE!BENT COLORS GALORE!BENT COLORS GALORE!BENT COLORS GALORE!