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?
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.
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.
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.
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.
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.
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.