Author Topic: Driving LEDs with 74LS logic  (Read 4855 times)

0 Members and 1 Guest are viewing this topic.

Offline sci4meTopic starter

  • Regular Contributor
  • *
  • Posts: 139
  • Country: us
    • sci4me.com
Driving LEDs with 74LS logic
« on: July 08, 2015, 03:36:04 pm »
Hey guys. So I want to add indicator LEDs to different parts of my logic circuits so I can see what it's doing as it runs. Looking at the spec sheets, the high level output currents are like <1 mA... so... what's the right way to drive an LED (and other gates) with that? Can I just add a transistor to drive the LED?
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16362
  • Country: za
Re: Driving LEDs with 74LS logic
« Reply #1 on: July 08, 2015, 04:02:22 pm »
TTL is better at sinking current, so run the LEd's from the 5V rail with the logic low turning them on. Use 5mA as a current and most modern LED devices will be very bright at this current. Typically this means a 470R resistor per LED.
 

Offline retrolefty

  • Super Contributor
  • ***
  • Posts: 1648
  • Country: us
  • measurement changes behavior
Re: Driving LEDs with 74LS logic
« Reply #2 on: July 08, 2015, 04:04:04 pm »
A typical 74LS00 output pin can sink significant current to drive a standard LED. Just wire the cathode to the output pin through a suitably sized series resistor (calc for maybe 10 ma, plenty bright) to then to +5vcc. You just have design for circuit so that a LOW  output is the active (lite) state.

 

Offline sci4meTopic starter

  • Regular Contributor
  • *
  • Posts: 139
  • Country: us
    • sci4me.com
Re: Driving LEDs with 74LS logic
« Reply #3 on: July 09, 2015, 02:50:39 am »
A typical 74LS00 output pin can sink significant current to drive a standard LED. Just wire the cathode to the output pin through a suitably sized series resistor (calc for maybe 10 ma, plenty bright) to then to +5vcc. You just have design for circuit so that a LOW  output is the active (lite) state.

*sigh* I suppose I have to switch to using 0v as 1 instead of 5v instead of 1... I really wish I had done this from the start...

Hmm...
 

Offline Mr.B

  • Supporter
  • ****
  • Posts: 1245
  • Country: nz
Re: Driving LEDs with 74LS logic
« Reply #4 on: July 09, 2015, 02:54:46 am »
If you don't want the LED to indicate the reverse logic you could use logic level N-Ch FETs, but its going to get busy/messy...
Where are we going, and why are we in a handbasket?
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3417
  • Country: us
Re: Driving LEDs with 74LS logic
« Reply #5 on: July 09, 2015, 03:23:05 am »
You could use 74HCT where you want to drive LEDs... it can drive about 5mA in the high state.
 
The following users thanked this post: v0ltair3

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2630
  • Country: us
Re: Driving LEDs with 74LS logic
« Reply #6 on: July 09, 2015, 09:18:15 am »
*sigh* I suppose I have to switch to using 0v as 1 instead of 5v instead of 1... I really wish I had done this from the start...

Hmm...

Use a SN74HC240 or SN74HC244 to drive your LEDs depending on which logic level you want to light the LED.  The '240 inverts and the '244 does not.



 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf