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 2 V drop (yellow) and 30 mA max current I’d like to control via a single low current MCU GPIO pin with 3.3 V logic. I'd like to pull from the unregulated power supply fed from USB or 3xAAA batteries in series (~4.5 V).
If VIN measures 4.5-5 V, with the base either 0 V or 3.3 V, emitter at 2.6 V, I’m getting ~24 ohms needed to limit the LEDs to 25 mA each (100 mA total). This is assuming 700 mV 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 12 mA and the fluctuating unregulated VIN can be used to feed to current for the LED load.