by bschwindHN · 9y ago · 0 comments
I use a PN2222 [1] transistor to switch a 5V supply through an infrared LED from a microcontroller. It works, but should I be using something better/smaller/more cost effective/more appropriate for the circuit [2]?
[1] https://blog.bschwind.com/2016/05/29/sending-infrared-comman...
[2] https://blog.bschwind.com/2016/05/29/sending-infrared-comman...
(the resistor in the photo is 680 ohms)
If you are trying to optimize for whatever parameters, then maybe there are better parts. But for something simple and basic like that, its fine.