F
FyberOptic
Guest
Hiya folks. I got into electronics mostly as a result of messing with
digital components, so unfortunately I still find myself confused when
it comes to various analog aspects of circuitry. So I was hoping
someone could help me learn how this works a little better.
Basically, I thought about messing around with an LED matrix.
Preferably small to start out with, like a 4x4. I was going to use a
74LS374 latch to control it, since a.) that's what I already have
laying here, and b.) it's what I was going to use in a different
project soon (one where I'd actually be addressing and writing to the
latch in a microprocessor environment), and thought being able to
operate LEDs with it would be a good test for that when the time comes
(making sure my address decoding worked properly, etc). Anyway, I
know that the LS series can't source much current. About 2.6ma for
this part if I'm reading the datasheet right. But it can sink 24ma
apparently.
The red LEDs I have apparently want 2v at 30ma to power them. A
100ohm resistor would get it down to 30ma if I did my math right (5v
vcc minus 2v forward voltage of LED, divided by 0.030 amps). But now
I'm confused on how many milliamps are going through such a circuit,
even if it's just a simple vcc->resistor->led->gnd setup with nothing
else in the mix. Is it just 30ma total? Or does the LED also have a
resistance that one would combine with the resistor's value to
calculate the amps of the whole circuit?
In the full LED matrix circuit, I'd be using NPN transistors from pins
of the latch to control the voltage going to the rows of LEDs. But
just to clarify, I'd have to be careful of what resistor I used on the
pin coming from the chip to the base of the transistor, right? I'm
assuming that current from the output pin of the IC would mingle with
the current going across the collector and emitter from my power
source, which could possibly result in too much current going through
the LED and/or into the IC pin sinking the other end of the matrix.
I hate that my knowledge of analog electronics leaves me so baffled
sometimes over seemingly simple concepts, but hopefully I'll be able
to cram all of such knowledge into my head eventually!
digital components, so unfortunately I still find myself confused when
it comes to various analog aspects of circuitry. So I was hoping
someone could help me learn how this works a little better.
Basically, I thought about messing around with an LED matrix.
Preferably small to start out with, like a 4x4. I was going to use a
74LS374 latch to control it, since a.) that's what I already have
laying here, and b.) it's what I was going to use in a different
project soon (one where I'd actually be addressing and writing to the
latch in a microprocessor environment), and thought being able to
operate LEDs with it would be a good test for that when the time comes
(making sure my address decoding worked properly, etc). Anyway, I
know that the LS series can't source much current. About 2.6ma for
this part if I'm reading the datasheet right. But it can sink 24ma
apparently.
The red LEDs I have apparently want 2v at 30ma to power them. A
100ohm resistor would get it down to 30ma if I did my math right (5v
vcc minus 2v forward voltage of LED, divided by 0.030 amps). But now
I'm confused on how many milliamps are going through such a circuit,
even if it's just a simple vcc->resistor->led->gnd setup with nothing
else in the mix. Is it just 30ma total? Or does the LED also have a
resistance that one would combine with the resistor's value to
calculate the amps of the whole circuit?
In the full LED matrix circuit, I'd be using NPN transistors from pins
of the latch to control the voltage going to the rows of LEDs. But
just to clarify, I'd have to be careful of what resistor I used on the
pin coming from the chip to the base of the transistor, right? I'm
assuming that current from the output pin of the IC would mingle with
the current going across the collector and emitter from my power
source, which could possibly result in too much current going through
the LED and/or into the IC pin sinking the other end of the matrix.
I hate that my knowledge of analog electronics leaves me so baffled
sometimes over seemingly simple concepts, but hopefully I'll be able
to cram all of such knowledge into my head eventually!