Go Down

Topic: [SOLVED] Calculate IREF value for WS2803 (Read 1 time) previous topic - next topic

Riva

Jun 17, 2012, 06:04 pm Last Edit: Jun 19, 2012, 03:42 pm by Riva Reason: 1
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.
http://forum.arduino.cc/index.php?action=unread;boards=5,67,10,11,66,12,15,17,21,22,23,24,25,29;ALL

johnwasser

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
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Riva

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:
http://forum.arduino.cc/index.php?action=unread;boards=5,67,10,11,66,12,15,17,21,22,23,24,25,29;ALL

johnwasser


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.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up