0

Why I should us a transistor to drive an IR LED?

I see many schematics which use the following circuitry:

enter image description here

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)

bitsmack
  • 16,747
  • 9
  • 52
  • 108

1 Answers1

1

The quick answer is that a transistor can provide more current than an arduino pin. This makes the LED emit more light.

There are complexities, however. Take a look other questions here and here for examples of the necessary considerations and calculations.

bitsmack
  • 16,747
  • 9
  • 52
  • 108