Using uln2003a ic with PCA9685 servo driver

Hi all I am quite new to arduino and lately I have been experimenting about led strip lights for arduino. I am currently doing a project where I need to control 14 rgb led strips that need 12V to operate. Since I need to control each of them individually I am planning to use uln2003a darlington array ICs to switch ground connections to the strips. But I will need 42 pwm pins from my arduino mega to control the strips. So I decided to chain 3 of PCA9685 servo motor drivers together. I want to know if it is possible to control uln2003a ics using this type of driver and if it is possible how should I wire the ic to the PCA9685 driver,

All your contribution will certainly be appreciated.

The outputs of the PCA9685 can be connected to the ULN2003 directly.
But note the current limitations of this chip. About 150mA per output when all outputs are in use. Meaning your LED strips can only be a few LEDs long.

14 LED strips... Is this for two 7-segment displays?

Why didn't you use addressable LED strips.
They don't need drivers or PWM pins, and one Arduino pin can drive them all.
Leo..

Hi, thanks for the advice, really appreciate it. When I connect uln2003a in to the servo driver what voltage do I need to put into the v+ pin in the servo driver?

Does anyone else have any ideas about this?

The V+ pin is for the servo power pins. The VCC pin powers the IC.

Yeah mr surfer tim I knew that but to power my uln2003a ic plugged into the servo pins what can I use for the v+ pin? Thanks for the contribution.

AFAIK, you can put any voltage you want on V+ as long as it doesn't burn out the devices connected to the servo power pins. Is 12v your goal? Shouldn't be a problem. Just don't connect a servo.

But isn't there a max voltage rating

On a servo, normally 6v on V+. You aren't using a servo.

1 Like


I found this online about the v+ pin

That sounds right. V+ is connected to the servo power bus (top pins) ONLY!
What that is stating is don't connect V+ with Vcc. It will overpower the IC.

1 Like

Thanks very much for clearing my doubt up Mr surfer tim. But another question I have is rgb strips tend to need a current of like 150ma to run and if all pins are turned on is it safe to power it through the board then?

Shouldn't be a problem. Some servos are power hungry little devils.
Ensure your power supply connected to V+ is up to the task.

1 Like

Ok Mr surfer Tim thanks for contributing your time to my project. I will try what you have suggested and let you know if it works out right and again I really do appreciate it.

image
but wait I just found this while researching more

That applies to the signal lines not the power bus.

1 Like

but i will need the pwm outputs aswell to give the led pwm

Depends on the LED strips.
Most have a GND, power (V+) and signal.
V+ may require more than 25ma.
Signal line shouldn't.

Edit: If you are attempting to control a LED strip that has a data/control/signal line in addition to power and ground, this isn't the device.

Check out this page.

1 Like

Yeah Mr. Tim these were the strips I was talking about

But I need to control 14 of these with one arduino but the arduino does not have 42 pins (3*14). So, I am using the servo driver now to get pwm for all the strips.