-1
\$\begingroup\$

Is it necessary to add an transistor to the output of my four bit adder. I want to add an led to show the 5 bit output. Should I add a transistor or or just directly connect the led’s anode to the output and cathode to ground?

\$\endgroup\$

closed as unclear what you're asking by winny, PeterJ, Chupacabras, Voltage Spike, uint128_t Dec 28 '17 at 2:32

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    \$\begingroup\$ That I guess depends on your four bit adder, and on the LED. \$\endgroup\$ – Dampmaskin Dec 20 '17 at 15:14
  • 1
    \$\begingroup\$ You probably want a resistor in there somewhere too, but without a schematic of your adder it's hard to say. \$\endgroup\$ – Colin Dec 20 '17 at 15:23
  • \$\begingroup\$ back in the right decade in electronic engineering history, after LEDs were invented but while TTL was still commonplace, it was usual to place a LED between output and a ground, using the limited current drive capability of TTL to provide a nice few mA. CMOS outputs might get toasty if you did that without a current limiting resistor. If the LED drags down an output that's also used as an input (naughty design, but it can happen) then it will disrupt the proper logical operation of the device. Olin of course has provided an appropriate answer. \$\endgroup\$ – Neil_UK Dec 21 '17 at 7:06
  • \$\begingroup\$ I suggest using the 74HCxx series of logic IC's. They can source or sink 25 mA with a 5 volt supply. Insert a 330 ohm to 1 K ohm resistor in series with the LED. If your using 74LSxx series then your source current is only 1 mA. Read the above comments. \$\endgroup\$ – Sparky256 Dec 23 '17 at 21:15
8
\$\begingroup\$

What you are really asking is whether you can drive a LED directly from a digital signal, or whether it should be buffered by a transistor. Think about it. This has nothing to do with a adder or whether it is 4 bits wide or not.

The answer depends on the current capability of the digital output, and how much current you want to drive thru your LED. This really should have been obvious.

Most digital outputs can source or sink a milliamp or a few. Check the datasheet. Many modern LEDs will be bright enough to see whether they are on indoors on your bench with only a milliamp or a few thru them.

If you want more current thru the LED than the digital output can provide, then obviously the digital output can't drive the LED directly. In that case, a single transistor is usually enough to amplify the current and drive the LED.

If the LED is high current, like for lighting instead of just indicator use, then the current amplification ratio required may be higher than a single bipolar transistor can do. The right kind of FET may then be required, or a different topology altogether.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.