Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Driving multiple LEDs with 6210

Hi,

 

I need drive 4 red LEDs with the signle digital output port of USB-6210.

 

I'm wondering if it is possible some how drive the LEDs without using a transistor?

 

Thanks.

 

 

0 Kudos
Message 1 of 4
(3,393 Views)

Configure the digital outputs to sink the current, rather than sourcing it.

 

Hook all the LEDs up to a common +V supply, through current-limiting resistors, and switch the DO to ground to turn the light on.

 

You can invert the logic in software to make true turn it on.

 

There's a wiring example in page 6-3, "Connecting Digital I/O Signals on USB-6210/6211/6215/6218 Devices", of the 621x manual:

http://www.ni.com/pdf/manuals/371931f.pdf

0 Kudos
Message 2 of 4
(3,373 Views)

Thanks for your reply. 

 

But is it able to sink all that current from each of the four LEDs? Assuming 20mA each, that would be 80mA of current when all LEDs are turned on.

 

 

0 Kudos
Message 3 of 4
(3,359 Views)

Try it and see what happens?

 

If the load on each line is within its tolerance (see datasheet/user manual) and the supply can source the current it'll be fine.

 

If you're really worried about it or want some additional power capability you can use a driver like a ULN2003.  But for a typical 5mm indicator LED you can drive it right from the 5V/DO lines.

0 Kudos
Message 4 of 4
(3,347 Views)