Problems first time using ULN2803APG

Hello,

I have a very simple Arduino project which lights 6 leds with a 500ms delay in between.
It works fine when the LEDs are powered directly from the Arduino pro mini itself.
However I want to increase the number of LEDs in each output - a small parallel string on each.
I've tried to use a Toshiba ULN2803APG Darlington array with the output of the Arduinos.

I have common ground / common positive for the project. I have used a couple of different power supplies both 5v to the raw pin.
However I cannot get the ULN2803APG to work correctly. I have tested ULN2803APG separately using a jumper from +5v to trigger the inputs, it all works fine. However with the Arduino outputs connected, the LEDs all light up at the same time, and then become brighter one at a time, then go out.

In the attached image, circuit 2 works fine. Circuit 1 does not work.

Any advice apprieciated.

void setup() {
 pinMode(9,OUTPUT);
  pinMode(6,OUTPUT);
  pinMode(5,OUTPUT);
  pinMode(3,OUTPUT);
  pinMode(10,OUTPUT);
  pinMode(11,OUTPUT);
}

void loop() {
  digitalWrite(9, HIGH);
  delay(500);
  digitalWrite(6, HIGH);
  delay(500);
  digitalWrite(5, HIGH);
  delay(500);
  digitalWrite(3, HIGH);
  delay(500);
  digitalWrite(10, HIGH);
  delay(500);
  digitalWrite(11, HIGH);
  }

It's your wiring (implementation).
The 2803 outputs aren't like 4000-series, 7400-series logic gates (though that is a common expectation / misunderstanding).
They are open collector, the load is placed between +V and the respective output.
The outputs don't provide a HIGH or a LOW, they make for a conduction path to Ground (Open, Closed).

In the first schematic, I have individual LEDs with a resistor from +5v into the individual ULN2803APG output pins.

I though that when the corresponding input is high ( from the Arduino output pin ) the current will flow from +5v through the resistor / LED into the ULN2803APG output pin and down to GND on pin 9 ?

Is that not correct ?

Thanks.

Let’s see your actual wiring.

Do not feed +5v into RAW, you will need at least 7v to RAW.

+5V should go to VCC not RAW (if that is a 5V ProMini).

And if you connect 5v to Vcc on a Pro Mini, remember it can feed into you PC (cut/bend 5v pin on FTDI).

Or wire in a series diode

Might it be counterfeit?

Thank you all for your replies.

I've attached a photo.

Ref the 2803 possibly being counterfeit. I don't know. It was sold as Toshiba from a UK seller.
It does work normally if you just probe the input pins with +5v. I've checked that on each pin.

[edit]
Forgot to mention, I've fed 9v from bench power supply into RAW now. Also the black leads on the LED cathodes have a resistor in the leg already. I've also tested this on a standard Genuine Arduino R3 with the same results.

We don’t see series resistors with each LED. Okay, they are under the heat shrink, what value ?

Measure the voltages on the breadboard’s power rails to confirm.

Confirm the LED ‘Anodes’ are connected to the +v power rail.

Connect a LED anode to the + power rail and its resistor to the - rail, does it emit light ?

Connect a LED anode to a 2803 input and its resistor to GND, run the blink sketch on this pin, does it flash ?

I've seen where those power strips (rails) do not have continuity their whole length.
Keep the connections to Ground and +5, +9 on the same half - end as it were.

Hopefully the OP’s voltage measurements will confirm the power rail connections are okay.

Instead of connecting the LED Anodes to 5v, try a connection to 9v.

Pic attached.

(Didn't want to further confuse the issue, but I think the LEDs should run from the 9V (w/ different resistors yes) and not the ProMini's rather limited 5V.)

Well I would like to thank everyone for their help.

I've learnt some things today.

Turns out the circuit I made in the first picture works. I've had it running on USB and also from standalone 9v to Vin ( on the Geniune R3 ) and to raw on the pro mini clone.

However, the breadboards I have are warped.The chip was working in a some positions and not in others. (as suggested by larryd).

Can anyone recommend a good breadboard for the UK ? or is it better to try and fix the Chinese ones I have.

Also the solid core wire I'm using is listed 0.60 not 0.64 if that makes a difference. It does seem a tiny bit loose on the R3 headers ?

Many Thanks.

K&H breadboards are good. Google "K&H breadboad".

I use 0.59mm hook wire a lot, shouldn't be a problem but dupont header sockets can get stretched with lots of use, in which case I'd invest in some strips of dupont header pins and solder wires to them.