TLC59711 leds with varying If

Hello everyone,

I am thinking of using a TLC59711 in my next project a model tugboat, I was wondering if someone can explain how do you connect leds with varying forward currents.

For example:

Ch1 If=5mA

Ch2 If=40ma

Ch3 If=20mA

Ch4 If=10mA

Do I set the reference resistor value to the highest If and add a current limiting resistors tho the leds with a lower If or is there another way.

Or is it better to use a different ic like a pca9685?

Thanks in advance for your efforts

The TLC59711 is a constant-current LED driver, so it is generally not intended to use series resistors to set the LED current.

The reference resistor sets the maximum output current. You can then reduce the apparent brightness of individual LEDs in software, but that is not the same as independently limiting the maximum current for each channel.

So if you have LEDs with significantly different current ratings (e.g. 5 mA and 40 mA), I would not set the driver to 40 mA and rely on software for the 5 mA LEDs unless the LED datasheet explicitly allows the resulting pulsed current.

In that case, it is usually better to:

  • group LEDs with similar current requirements,
  • use separate drivers for different current ranges,
  • or choose a different driver if independent maximum current settings per channel are required.

The PCA9685 is a different type of device. It is a PWM controller, not a constant-current LED driver, so you would still need current-limiting resistors or external driver circuitry.

What do you mean different currents?

Are you saying that you want to drive different LEDs at different currents or that you have LEDs with different Maximum currents?

With the TLC59711 you can set the current for each individual channel to a different value. You do not use current limiting resistors.
You only need to set the Max current to the Max value you want to use.

So set RIREF = 1.2K and adjust the individual channel GS value to set the desired brightness.

Thanks for the answer, I will go with the pca9685

Why?
The TLC59711 does exactly what you want without having to use current limiting resistors and is constant current.

Less hardware, no fiddling with resistor values, more flexible.

You can also forget about running any LED at 40mA

I know and have several LEDs that can run at higher currents.
The 8mm strawhat LEDs that are used in garden lights are but one example.
They are designed for 0.5W 150mA.

Note the different source and sink limitations and the fixed 220Ohm CL resistors fitted on most servo boards.

I will make my own board and use 2N7002 mosfets that way I can run 310mA

An 8-channel TPIC6B595 shift register is another option.
Works the same as a 74HC595, but has power mosfet outputs.
Can be daisy-chained for more outputs.
The EN pin can be used for group dimming.

NOT with a 2N7002, max is 115mA

I think you need to take a step back and do some planning first.

Also see post #3.

I checked the datasheet max current is 310mA and as you mentioned continuous current is 115mA.

This current is beyond what I need, I will run some tests time permitting to see if dimming works as expected, i have all the parts at hand

The limits depend on which datasheet you are looking at. I was refering to the ONSEMI 2N7002

Also from your original question, I not sure you understand how to interpret the specifications for an LED

This is a good and simple option, I think the pca9685 is still the best fit, I need individual dimming.

For this interested i drew a quick schematic

T1 needs a resistor on the base gate.

The 2N7002 is a MOSFET, not a bipolar transistor.

Can you explain why? Because based on what you have described so far, I don't see the need for it, or pca9685.

I'll use it with an esp32 to control the lights on a model tugboat with atleast 25 individual lights some servo/ motor functions for thighs like raising and lowering a flag, anchors, etc.

The above schematic shows only one channel of the pca9685

Ok, but be aware that although pca9685 can be used to dim LEDs and can be used to control servos, I'm not sure if it can do both simultaneously. That's because the chip can only support a single pulse frequency for all 16 channels. The frequency required for servo control (around 50Hz) may cause LEDs to visibly flicker. A frequency of around 500Hz is normally used to dim LEDs so that flickering is not visible.

As @MaximoEsfuerzo and myself have pointed out it's wrong.

If OP means a PCA9685 servo module, then it doesn't matter.
Servo cards have a 220 Ohm resistor in series with every output.
You can safely connect a mosfet, a bjt transistor or LED directly to a servo board output.