You are actually correct, to get 100ma you would use a 18.9 ohm resister. The problem you are going to have is that you can't source 100ma of current from the Pi's GPIO pin. You can source up to a max of 16ma. So what I have done in the past is use the GPIO line to active the LED. The current to drive the LED does not come from the PI. Basically the when you drive the GPIO High that current activates NPN transistor allowing the current to flow from the 3.3 source to ground and through the LED. See the schematic below. You still need the R1 resistor to keep the current flow to 100ma. And you put a large resistor on the GPIO line to keep the current flow safely below the 16ma limit on the PI's GPIO line.
Using this calculator http://led.linear1.org/1led.wiz for this LED
https://www.adafruit.com/products/387, it tells me 18 Ohms - but that
doesn't seem right.
Not sure which forward amperage to use e.g. 20 ma or 100 ma (listed
under the LED specs) or 200ma (estimated Pi pin current).
Similarly interested in https://www.adafruit.com/products/300
On 08/02/2014 03:50 PM, Joshua Snyder via 10BitWorks wrote:
> What is the current rating on the Led? That will drive which resistor
> you should us.
>
> On Saturday, August 2, 2014 2:15:39 PM UTC-5, gnu_don wrote:
>
> Connecting LEDs to the Pi, I'd like to keep the LED as bright as
> possible (and it should last). Can I use 220 ohm resistors or would
> I be
> better served with 330 ohm resistors? [I see a recommended range is
> between 270 and 330.]
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "10BitWorks" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sa-hackerspac...@googlegroups.com
> <mailto:sa-hackerspace+unsub...@googlegroups.com>.
> > <mailto:sa-hackerspace+unsub...@googlegroups.com <javascript:>>.
> > To post to this group, send email to sa-hack...@googlegroups.com
> <javascript:>
> > <mailto:sa-hack...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sa-hackerspace/73b2c45f-311b-4707-8804-670e2a1fcb9c%40googlegroups.com
> <https://groups.google.com/d/msgid/sa-hackerspace/73b2c45f-311b-4707-8804-670e2a1fcb9c%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/sa-hackerspace/73b2c45f-311b-4707-8804-670e2a1fcb9c%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/sa-hackerspace/73b2c45f-311b-4707-8804-670e2a1fcb9c%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "10BitWorks" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sa-hackerspac...@googlegroups.com
> <mailto:sa-hackerspace+unsub...@googlegroups.com>.
To unsubscribe from this group and stop receiving emails from it, send an email to sa-hackerspac...@googlegroups.com.
To post to this group, send email to sa-hack...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sa-hackerspace/5862c1ec-0b59-4065-9075-b2a667a9fbc9%40googlegroups.com.
What if I'm powering the ir led through the 3.3 v?
Sent from a mobile device.