LED’s are current devices.. if you pass too much current, they die.
So we add a resistor to limit the current that goes through them.
The HIGHER the resistor value (in Ohms), the LOWER the current will be through the LED.
To figure it out, we use “ohms law” (google that for more).
+5 Volts----------////-----------|>|------------GND
So we need to know how many volts will be dropped across the resistor.
We start with the total voltage, usually 5 volts for MIDIBox stuff.
then we subtract the “forward voltage” of the LED. That is how many volts the LED uses when it’s lit.
What we are left with is the voltage that we need to drop across the resistor.
So, 5 volts - 2.2 volts (LED forward voltage) = 2.8 volts across the LED.
Ohms law says that if we know the voltage across that resistor (2.8) and we
know the current through that resistor (20ma = 0.02 Amps) then we can calculate the
resistance as R=V/I. V=2.8, I=.02, so 2.8/.02 = 140 Ohms. We round UP to the next higher standard value, and we get 150 Ohms.
Resistors come in many power ratings, usually expressed in watts. This tells us how much heat will be created at this resistor. To calculate the wattage required by this circuit, we use Watts = Volts*Amps. Since we are dissipating (burning off) 2.8 volts at .02 amps, Out resistor will be dissipating 0.056 watts. We usually use 1/4 watt or 1/8 watt resistors, these will be fine in this app.
If this doesn’t help, ask questions!
LyleHaze