Electronic – Emitter follower for parallel LED switch

amplifieremittergpioledtransistors

I’m trying to confirm that the solution posted in https://electronics.stackexchange.com/a/60868 will work for my application.

I have four yellow LEDs with a 2v drop (yellow) and 30mA max current I’d like to control via a single low current MCU GPIO pin with 3.3v logic. I’d like to pull from the unregulated power supply fed from USB or 3xAAA batteries in series (~4.5v).

Circuit Diagram

If VIN measures 4.5-5v, with the base either 0v or 3.3v, emitter at 2.6v, I’m getting ~24 ohms needed to limit the LEDs to 25mA each (100mA total). This is assuming 700mv BE drop.

Does this work with saturation and everything that entails this configuration? I’m still very new to this, but I’m trying to setup the transistor as a current amplifier so that the GPIO pin stays well below 12mA and the fluctuating unregulated VIN can be used to feed to current for the LED load.

Thank you!

Best Answer

If the LEDs drop 2.0 volts at 30 mA and the emitter produces 2.6 volts when driven by 3.3 volts at the base then the voltage across the LED series resistor is 0.6 volts and, with a current of 30 mA flowing, the resistance is 20 ohms.

With 25 mA of LED current, the forward volt drop of the LED might be a fraction below 2.0 volts but it will be a small fraction; possible 1.9 volts so, the modified resistance value will be 0.7 volts / 25 mA = 28 ohms. I'd choose a 27 ohm resistor.

Does this work with saturation and everything that entails this configuration?

The BJT will not be saturating unless the Vin supply falls below about 3 volts. With the supply at 4.5 volts, the voltage across the collector-emitter will be about 2 volts and although it's close to approaching the region where saturation starts to begin, you can largely ignore those problems and rely on the normal beta value for the BJT.

MMBT2222 data sheet extract: -

enter image description here

With VCE at 1 volt and 100 mA flowing, the DC current gain is still pretty good at typically close to 200.

Related Topic