Why I should us a transistor to drive an IR LED?
I see many schematics which use the following circuitry:
If I connect the IR LED directly to an Arduino digital pin, it works. But with the transistor circuit, it works better.
Why is that?
(my value of R2 is just for show)