Re: Multiplex question for multiple RGB LEDs





Mike G wrote:
I have previously used PWM for colour mixing single RGB LEDs (purely
for hobby purposes if anyone from Philips IP Department is watching).

I'm trying to scale this approach to achieve individual control of 80
RGB LEDs (common anode) but I'm having problems.

I was proposing to use the following hardware method:
Tie all the Red cathodes to a MOSFET or NPN transistor, ditto Green &
Blue. Scan these at 300Hz (to get a 100Hz overall refresh) and drive
the 80 anodes from transistors using latched data from 74HC595s.

The problem comes in (my understanding of?) the method of PWM dimming.
In the single working prototype, I used a microcontroller with each
RGB tied to individual port pins. A timer interrupt occurred at approx
25,500Hz (to give 255 levels @ 100Hz) and within this an 8 bit
variable "gate" was decremented. If this result was less than the
value of either R, G or B, the respective LED was switched on, if it
was greater, it was switched off.

This has worked fine but trying to scan 3 columns requires an
interrupt at 76,500 Hz which is proving problematic. I have access to
AVRs or PICs.

Any advice appreciated.

Actually if you simply toggle the clock output for every interrupt at 25500Hz, that gives you 12750Hz, and the ring counter partitions the LED anode drives at 33% anyway. This makes things easier for the LEDs, because you have to drive them with 3x the current, or more, for same brightness as steady state, and the 12750Hz higher frequency means a pulse duration of only 78us at this elevated instantaneous power dissipation versus 3.3ms with the 300Hz. Transistor switching losses increase, but these can be made negligible at that frequency.
View in a fixed-width font such as Courier.

..
.. V+
.. |
.. .-------+------.
.. | | |
.. | | |
.. __ | | |
.. R>---------------| \ | | |<
.. | o-----|-------|----|
.. .---------|__/ | | |\
.. | | | |
.. | | | |
.. 100Hz | __ | | |
.. G>-----|---------| \ | |< |
.. update | | o-----|-----| |
.. | .------|__/ | |\ |
.. | | | | |
.. | | | | |
.. | | __ | | |
.. B>-----|--|------| \ |< | |
.. | | | o---| | |
.. | | .---|__/ |\ | |
.. | | | | | |
.. | | | | | |
.. | | | B-anode G-anode R-anode
.. | | |
.. | | |
.. -----------
.. | Q0 Q1 Q2 |
.. 12750Hz>---> |
.. | 4017 |
.. -----------
.. ring counter
..
..
..
..

.



Relevant Pages

  • Re: Issues with LED grid driving
    ... point is one led and not an rgb). ... I have seen 24-ch led drivers along ... not LEDs were on all the time or at full brightness, ... dot correction but it is not something difficult since I can simply ...
    (sci.electronics.design)
  • Re: cheap SMT LEDs
    ... I have some RGB modules with 256 tri-color LEDs installed ... useful drive circuitry and mechanicals work, ... FPC strips for $1 each. ...
    (sci.electronics.design)
  • Re: Driving large numbers of LEDs
    ... large quantities of LEDs (in the hundreds, with future products to ... constant-current power supply and some uC-controlled switching ... How about three cheap constant-voltage offline ... LEDs aren't zero-impedance loads (some people run them ...
    (sci.electronics.design)
  • Re: LED driving; MOSFETs or Transistors?
    ... My DMM tells me I am driving the individual colors at ~20mA after PWM. ... I don't have the knowledge, or the math, to determine how that relates to the actual current I am putting through the LEDs. ... If I pull back and measure current drawn from my power supply it's right around 250mA for the entire array so I am thinking that worst case I am burning around 1 watt in the array. ... The reason being that these are common anode RGB LEDs, so at any given time a single anode transistor might be powering 9 distinct LED elements. ...
    (sci.electronics.basics)
  • Re: LED illumination
    ... I am not a colorimetry expert, but I believe that the RGB colorspace is ... Now illuminate both roses with say 650 nm light and they both look ... LEDs, with a 645 red emitter, then the two roses will appear to have much ... general solution to the problem of illumination with monochromatic light ...
    (sci.image.processing)