Electronic – Which resistor to use for this LED

ledresistors

I'm looking to buy resistors for a Raspberry Pi project, but am getting conflicting information on which resistance to use for my LEDs.

I will have three LEDs. The voltage from the RPi GPIO pins is 3.3 V. At 20 mA current, the forward voltages are 1.85-2.5V, 2.2-2.5V, and 3.0-3.4V for the red, green, and blue LEDs, respectively.

Using this website, I calculated all of the resistors to be around 15-82 ohms, which seems low to me, especially considering this Adafruit starter kit comes with 560 ohm resistors for the (near-equivalent) LEDs…

Can someone please advise me or help explain the discrepancy? Also, these LEDs will not be in parallel or series; each will be attached to a different out pin on the RPi.

Best Answer

The 20mA rating of your LEDs is probably the recommended maximum current. Most LEDs will produce light at much lower currents - I find 5 mA is sufficient for indicator light use.

Try the LEDs with different resistors to see what current is actually required to produce sufficient light for your application (more current = brighter light).

Also, check the maximum current the Pi GPIO pins can handle - I have a feeling it is less than 20 mA, but can't check at the moment.