Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22701
    Anonymous
    Inactive

    I’m gonna be adding an IR LED to my Arduino Uno and I’m trying to wrap my head around the math used to figure out the exact resistor values needed to use a PN2222A transistor to drive the LED.

    I know my LED has a voltage drop of 1.35V and I want to run it at 100mA and that I’ll be supplying it with 5V from the Arduino. What I don’t understand is the math for how to figure out the exact voltage drop of the transistor between the collector and emitter. And I’m also trying to figure out the math used to calculate the required milliamps that have to flow through the base of the transistor in order to fully turn it on (but not waste extra electricity).

    I know that there is quite a lot of lee way in which resistors to use and the circuit will still work, but I’m hoping to figure out the math so that I can get as close as possible to using the exactly perfect resistor values.

    #22709
    Barry
    Keymaster

    This really is not a question for GuitarPCB but people are welcome to respond.
    Your answer would be found by starting here:
    http://www.learningaboutelectronics.com/Articles/LED-driver-circuit.php
    Also read the comment section which seems like a good place to post your questions.

    #22710
    Cybercow
    Participant

    Personally, I’d breadboard it and take measurements while swapping out different CLR values.

    Also note that component value tolerances, even with the PN2222A, will come into play. So the calculations will likely be ballpark-ish.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.