Skip to main content
deleted 4 characters in body; edited tags
Source Link
Ghanima
  • 15.9k
  • 16
  • 63
  • 120

I have seen a few examples of wiring a red LED directly from the RPI GPIO pins, however, I need to wire a GREEN LED and am having trouble calculating the resistor needed. I believe that a green LED uses 3.3 volts and at 20ma, so if I use the 5V power on pin 1 would I end up with 5V - 3.3V = 1.7.
1

1.7 V = 20 mA × R or

or rephrased: 1

1.7 V / 20 mA = R and

and when we solve that we get: 1

1.7 V / 20 mA = 1.7 V / 0.020 A = 85Ω ?

Thanks

I have seen a few examples of wiring a red LED directly from the RPI GPIO pins, however, I need to wire a GREEN LED and am having trouble calculating the resistor needed. I believe that a green LED uses 3.3 volts and at 20ma, so if I use the 5V power on pin 1 would I end up with 5V - 3.3V = 1.7.
1.7 V = 20 mA × R or rephrased: 1.7 V / 20 mA = R and when we solve that we get: 1.7 V / 20 mA = 1.7 V / 0.020 A = 85Ω ?

Thanks

I have seen a few examples of wiring a red LED directly from the RPI GPIO pins, however, I need to wire a GREEN LED and am having trouble calculating the resistor needed. I believe that a green LED uses 3.3 volts and at 20ma, so if I use the 5V power on pin 1 would I end up with 5V - 3.3V = 1.7.

1.7 V = 20 mA × R

or rephrased:

1.7 V / 20 mA = R

and when we solve that we get:

1.7 V / 20 mA = 1.7 V / 0.020 A = 85Ω ?

Source Link

Green LED on RPI 3B+ GPIO

I have seen a few examples of wiring a red LED directly from the RPI GPIO pins, however, I need to wire a GREEN LED and am having trouble calculating the resistor needed. I believe that a green LED uses 3.3 volts and at 20ma, so if I use the 5V power on pin 1 would I end up with 5V - 3.3V = 1.7.
1.7 V = 20 mA × R or rephrased: 1.7 V / 20 mA = R and when we solve that we get: 1.7 V / 20 mA = 1.7 V / 0.020 A = 85Ω ?

Thanks