Pages: [1]   Go Down
Author Topic: [SOLVED] Calculate IREF value for WS2803  (Read 997 times)
0 Members and 1 Guest are viewing this topic.
Norfolk UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2211
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm messing around with some WS2802 LED driver chips but the datasheet is pretty poor and I can see no sensible reference to how one calculates the IREF resistor value. I have used a 10K for now and it's running cool enough but I would prefer to calculate the correct value.
« Last Edit: June 19, 2012, 08:42:04 am by Riva » Logged

Handle every stressful situation like a dog. If you can't eat it or hump it. Piss on it and walk away.

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The datasheet shows Amps = 1.25 / Ohms * 22.  Some simple algebra gets:

Amps / 22 = 1.25 / Ohms

22 / Amps = Ohms / 1.25

(22 / Amps) * 1.25 = Ohms

For example: 20 mA -> (22 / 0.020) * 1.25 = 1375 Ohms
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Norfolk UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2211
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks John,

I looked again at the datasheet and found the formula. First time I had just done a search for IREF not expecting the datasheet to be calling it REXT. More haste less speed.  smiley-red
Logged

Handle every stressful situation like a dog. If you can't eat it or hump it. Piss on it and walk away.

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I looked again at the datasheet and found the formula. First time I had just done a search for IREF not expecting the datasheet to be calling it REXT. More haste less speed.  smiley-red

That bugged me, too.  I had to look twice to see if there was ANOTHER pin called REXT.  Don't know why they call the pin IREF and the resistor REXT without anything to tie them together.  And on the datasheet I found the reference to the voltage coming out of the IREF pin being 1.25V was on the next page and something I had to read a few times.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: