RGB-pimping
Erlend
Posts: 612
I've never been particularily sold to the fashion of multicoloured LEDs for decoration, but when I found a rotary encoder with built-in RGB LED illumination of the transparent shaft&knob, I got the idea to let the colour of the light be a kind of user feedback. Next, I thought a TLC59711 (from Adafruit) would be a suitable driver. It has a SPI interface, and provides fine resolution PWM driver for each colour output. Should let me control the full rainbow of colours.
I have the feeling that I am re-inventing the wheel. Surely someone have already done this - or something similar?
Erlend
I have the feeling that I am re-inventing the wheel. Surely someone have already done this - or something similar?
Erlend
Comments
I've used this driver in several "Hollywood" projects; for the most recent, see this thread:
-- http://forums.parallax.com/showthread.php/150675-For-League-of-Legend-and-Wes-Borland-(Limp-Bizkit)-Fans?highlight=wes+borland
Edit: You might just consider the WS2801; it's chainable, the code is done (attached), and it's a very small, easy-to-use chip. I think you can get the chip at Sparkfun (though their web site seems to be down at the moment).
That's an incredibly impressive project! WS2801 looks to be a better choice and saves me driver coding time. Thanks!
Erlend
[video=youtube_share;xCZbo9CWn8Y]
Looks like it's time for an update.
Erlend
I'm not sure if it qualifies as doing something similar but I have been using signal probes that have a bi-color red/green led to indicate the state of a signal for many years. Red is low, green is high, and amber is toggling. Can't take credit for the original idea, that came from some magazine, but I now have one for 5V logic, one for 3.3V logic, one for 6VAC to 240VAC, and one for encoders.
The idea and circuits have been around for so long I just assumed everybody would know about them since they are so compact and handy to have.
You could even call this from a Spin cog that is animating the LED based on the value you're tracking with the encoder -- just make the pins outputs in the animation cog so this will work. Better to use the cog for animation that for driving a single LED.
Erlend
Erlend