Driving 6 IR LEDs using a transistor

adrian_h:

dc42:
59 ohms is too low for Rb, you'll overload the Arduino output pin. Don't go below 100 ohms.

Can you post a photo of your setup?

Sure I can, not sure what you'd get from them though.

What I get from them is that your wiring is not as you described it. Here are some problems I can see:

  • You have a red wire connected between +5V of the Arduino to the bus strip marked "+" on the breadboard. But you have nothing else connected to that bus strip.

  • You have a green wire connected between Vin of the Arduino and the LEDs. If you are powering the whole system via USB, you should not be taking power from Vin, you should be taking the power to the LEDs from the +5V pin instead.

  • You have the PN2222A transistor wired back-to-front. If you look at the datasheet Intelligent Power and Sensing Technologies | onsemi you will see that you have the emitter connected to the LED series resistors via an orange wire, and the collector connected to ground via a green wire.