# Issue with driving multiple LEDs via transistors

I am attempting to individual control multiple LED-based light sources via PWM. Now I am somewhat familiar with transistors and their usage, and had no issue setting up one instance of this control scheme. However when I added more transistors to the circuit, I ran into a problem. It seemed that only one PWM signal, would control all of the lights. I am new to schematics and schematic design so I could use some help figuring this out. The schematic, as I think I built it, is below.

simulate this circuit – Schematic created using CircuitLab

The wiring was done with this article as reference, specifically the "light" example.

The power source is 12V 6A, which is more than enough to drive the lights I am using, which are 12V LED boards. I won't be using an Arduino in the final implementation, but I am using it currently for testing, so assume that is where the PWM is coming from. Oh, and the transistors are TIP31 NPN units.

As I said previously, the issue is that when using the circuit, the lights will only respond to one PWM signal and they will both use that value seemingly. Otherwise it works just fine. My only thought is that it could be an issue with them sharing a common ground? But if so, what is the best way to isolate them?

• I also forgot to show that the SOURCE of the PWM signal is also connected to common ground. For testing that would be the arduino. – asaalger May 15 '14 at 14:46
• Is there connection between the arduino ground and your $12V$ DC source? – nidhin May 15 '14 at 14:55
• You have nothing limiting the current in your LEDs- You need some series resistance. Also 330 ohms is a lot of pull-down resistance, a few Kohms would be fine. – John D May 15 '14 at 14:59
• So I have done so more testing. I have successfully gotten the arduino to give individual pwm values. To answer your comment @nidhin, both cases seem to work. Arduino ground connected, and not connected. But with slightly different light characteristics... And to answer your question John D, I am aware, the actual led units I will be using are 12V LED boards with built in resistors. I simplified for the purpose of the question. – asaalger May 15 '14 at 15:02
• And to be more clear, the product I need to actually use to give PWM in the end is this phidgets board. link. I seem I have been able to make the arduino work correctly, but not the phidgets board. It does not work without the ground connected to the common ground, and when receiving two PWM signals, both LEDS seem to use the highest value. The board is designed to allow individual PWM values, up to 64 of them. – asaalger May 15 '14 at 15:06