Motherboard Forums


Reply
Thread Tools Display Modes

Questions on LED PWM

 
 





















Mike Silva
Guest
Posts: n/a

 
      10-06-2008, 03:24 AM


I need to drive some RGB LEDs to generate a bit of eye candy and I'm
wondering if anybody has some experience on a few questions. First,
I'm thinking of using 5 bits of intensity per color since the entire
RGB value would fit nicely in 16 bits. Anybody have an opinion
whether 32 intensity levels for an LED is "smooth enough" or
"disconcertingly jumpy"? The LEDs are going to be pretty busy so I
think (hope) I might be able to get away with fewer steps than
otherwise.

2nd question, how would the eye perceive the linearity of 32 equal
intensity steps (that is, ON times of e.g. 100us, 200us, 300us ...
3100us out of 3100us)? I'm wondering if I may need to go to unequal
intensity steps to get a more apparently linear intensity ramp.
Anybody have experience with this?

I'll be wiring this up and playing with it before too long, but in the
meantime I thought I'd find out if anybody else has dealt with these
questions. Many thanks!

Mike

 
Reply With Quote
 
Frank Buss
Guest
Posts: n/a

 
      10-06-2008, 04:27 AM
Mike Silva wrote:

> 2nd question, how would the eye perceive the linearity of 32 equal
> intensity steps (that is, ON times of e.g. 100us, 200us, 300us ...
> 3100us out of 3100us)? I'm wondering if I may need to go to unequal
> intensity steps to get a more apparently linear intensity ramp.
> Anybody have experience with this?


Some articles about it:

http://www.telescope-optics.net/eye_...l_response.htm
http://en.wikipedia.org/wiki/Weber-Fechner_law

Looks like it is logarithmic. Another example is the magnitude value used
for measuring star brigthness:

http://en.wikipedia.org/wiki/Apparent_magnitude

This means the perceived intensity p=2.5*log(r), with r=real intensity =>
r=10^(p/2.5). Maybe there are some additional non-linearities if your PWM
rate is near 0% or near 100%, but for good looking results use a high
resolution PWM and use a logarithmic lookup table.

Another interesting article about intensity correction:

http://en.wikipedia.org/wiki/Gamma_correction

--
Frank Buss,
http://www.frank-buss.de, http://www.it4-systems.de
 
Reply With Quote
 
Hao Wang
Guest
Posts: n/a

 
      10-06-2008, 06:08 AM
Use 6 bits for _green_, since human eyes is more sensitive to green lights.

Mike Silva <> writes:

> I need to drive some RGB LEDs to generate a bit of eye candy and I'm
> wondering if anybody has some experience on a few questions. First,
> I'm thinking of using 5 bits of intensity per color since the entire
> RGB value would fit nicely in 16 bits. Anybody have an opinion
> whether 32 intensity levels for an LED is "smooth enough" or
> "disconcertingly jumpy"? The LEDs are going to be pretty busy so I
> think (hope) I might be able to get away with fewer steps than
> otherwise.
>
> 2nd question, how would the eye perceive the linearity of 32 equal
> intensity steps (that is, ON times of e.g. 100us, 200us, 300us ...
> 3100us out of 3100us)? I'm wondering if I may need to go to unequal
> intensity steps to get a more apparently linear intensity ramp.
> Anybody have experience with this?
>
> I'll be wiring this up and playing with it before too long, but in the
> meantime I thought I'd find out if anybody else has dealt with these
> questions. Many thanks!
>
> Mike

 
Reply With Quote
 
CBFalconer
Guest
Posts: n/a

 
      10-06-2008, 07:30 AM
Mike Silva wrote:
>
> I need to drive some RGB LEDs to generate a bit of eye candy and
> I'm wondering if anybody has some experience on a few questions.
> First, I'm thinking of using 5 bits of intensity per color since
> the entire RGB value would fit nicely in 16 bits. Anybody have
> an opinion whether 32 intensity levels for an LED is "smooth
> enough" or "disconcertingly jumpy"? The LEDs are going to be
> pretty busy so I think (hope) I might be able to get away with
> fewer steps than otherwise.
>
> 2nd question, how would the eye perceive the linearity of 32
> equal intensity steps (that is, ON times of e.g. 100us, 200us,
> 300us ... 3100us out of 3100us)? I'm wondering if I may need to
> go to unequal intensity steps to get a more apparently linear
> intensity ramp. Anybody have experience with this?


I suspect you will want to multiplex drive the display, just to
save wires, drivers, etc. That means you will have a time pattern
to fire each one. The only reasonable (IMO) control of intensity
will be the length of activation pulse in that pattern (which can
be delivered to only one end, if desired). This lets you fool with
the intensities with a value to time converter somewhere.

Note that you can deliver the three colors in three different time
slots, provided the multiplex frequency is high enough.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
 
Reply With Quote
 
Boudewijn Dijkstra
Guest
Posts: n/a

 
      10-06-2008, 08:41 AM
Op Mon, 06 Oct 2008 04:24:53 +0200 schreef Mike Silva
<>:
> I need to drive some RGB LEDs to generate a bit of eye candy and I'm
> wondering if anybody has some experience on a few questions. First,
> I'm thinking of using 5 bits of intensity per color since the entire
> RGB value would fit nicely in 16 bits. Anybody have an opinion
> whether 32 intensity levels for an LED is "smooth enough" or
> "disconcertingly jumpy"? The LEDs are going to be pretty busy so I
> think (hope) I might be able to get away with fewer steps than
> otherwise.


Obviously, this depends heavily on the output power and the transition
time. But if it is not enough, you could think about a simple routine
that will transition between two 16-bit colours in several steps using
24-bit precision.



--
Gemaakt met Opera's revolutionaire e-mailprogramma:
http://www.opera.com/mail/
 
Reply With Quote
 
Mike Silva
Guest
Posts: n/a

 
      10-06-2008, 01:19 PM
On Oct 6, 7:34*am, Guy Macon <http://www.GuyMacon.com/> wrote:
> Mike Silva wrote:
> >I need to drive some RGB LEDs to generate a bit of eye candy and I'm
> >wondering if anybody has some experience on a few questions. *First,
> >I'm thinking of using 5 bits of intensity per color since the entire
> >RGB value would fit nicely in 16 bits. *Anybody have an opinion
> >whether 32 intensity levels for an LED is "smooth enough" or
> >"disconcertingly jumpy"? *The LEDs are going to be pretty busy so I
> >think (hope) I might be able to get away with fewer steps than
> >otherwise.

>
> >2nd question, how would the eye perceive the linearity of 32 equal
> >intensity steps (that is, ON times of e.g. 100us, 200us, 300us ...
> >3100us out of 3100us)? *I'm wondering if I may need to go to unequal
> >intensity steps to get a more apparently linear intensity ramp.
> >Anybody have experience with this?

>
> >I'll be wiring this up and playing with it before too long, but in the
> >meantime I thought I'd find out if anybody else has dealt with these
> >questions. *Many thanks!

>
> Depending on what you are displaying, you might find that the
> difference between 00000/00000/00000(all off) and 00000/00000/00001
> is especially noticable, and that the color shifts at the lower
> end of brightness -- not enough resolution to keep the ratios right.
> An old trick is to use that extra bit to reduce the brightness of
> all three colors by a factor of 4, thus giving 7 bits of resolution
> at the dim end of the range. * * *


That's a very clever idea and I'll be sure to look at it. Since I was
going to manipulate the colors as 24 bit data anyway (and only
transmit it as 16 bits) this sounds like a good fit. I was definitely
thinking that that first level from all OFF would be too large a step,
and that the colors at low resolution would be off (but since these
will be very abstract patterns this latter may not matter at all, and
may even add to the effect).

And thanks to all who posted links and other info.
 
Reply With Quote
 
Mike Harrison
Guest
Posts: n/a

 
      10-06-2008, 02:18 PM
On Sun, 5 Oct 2008 19:24:53 -0700 (PDT), Mike Silva <> wrote:

>I need to drive some RGB LEDs to generate a bit of eye candy and I'm
>wondering if anybody has some experience on a few questions. First,
>I'm thinking of using 5 bits of intensity per color since the entire
>RGB value would fit nicely in 16 bits. Anybody have an opinion
>whether 32 intensity levels for an LED is "smooth enough" or
>"disconcertingly jumpy"? The LEDs are going to be pretty busy so I
>think (hope) I might be able to get away with fewer steps than
>otherwise.


If you want a reasonably smooth fade, 256 levels per colour would be an absolute minumum.
 
Reply With Quote
 
Spehro Pefhany
Guest
Posts: n/a

 
      10-06-2008, 06:23 PM
On Mon, 06 Oct 2008 14:18:23 +0100, Mike Harrison
<> wrote:

>On Sun, 5 Oct 2008 19:24:53 -0700 (PDT), Mike Silva <> wrote:
>
>>I need to drive some RGB LEDs to generate a bit of eye candy and I'm
>>wondering if anybody has some experience on a few questions. First,
>>I'm thinking of using 5 bits of intensity per color since the entire
>>RGB value would fit nicely in 16 bits. Anybody have an opinion
>>whether 32 intensity levels for an LED is "smooth enough" or
>>"disconcertingly jumpy"? The LEDs are going to be pretty busy so I
>>think (hope) I might be able to get away with fewer steps than
>>otherwise.

>
>If you want a reasonably smooth fade, 256 levels per colour would be an absolute minumum.


I agree (well, unless the changes are going to take place rather
quickly like a second or two).

The eye is insensitive to small brightness differences, but quite
sensitive to small changes in brightness.
Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Dell Inspiron 5100 laptop motherboard components questions Ben Myers Dell 2 02-14-2009 06:22 PM
Cooling Questions for antec 1200, asus a8n32-sli, nvidia 7900 gtx. Skybuck Flying Asus 13 07-21-2008 11:21 AM
Re: General Laptop Questions S.Lewis Dell 0 05-17-2008 04:50 PM
Some questions about harddrive on A7V8X Rene Asus 6 04-16-2008 12:10 PM
OT: newgroups for non dell questions RnR Dell 4 01-23-2007 05:10 PM


All times are GMT. The time now is 02:04 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43