High side switching. Won’t blink unless I touch the NPN base .. need some help

Hello,

I am working on a guitar pedal foot switch that has a set of LED rings requiring 9V (5V won’t work. I tried). Each ring has two colors and one common ground.
To control each color on each ring, I am using the circuit below. Basically a high side switch using two transistors (a N and a P) and controlled by a TPIC6B595 shift register (probably not required but it was available to me so I decided to use it instead of ordering something else).
The issue I am having is that despite coding to make the ring blink, the ring stays on all the time unless I touch the wire between the shift register and the NPN base. In that case, the LED start blinking as coded.
This is my first project using transistors. Any help would be great.
Thanks a lot

Pat

Could you stop using that circuit please ? It can be used for students: who spots the most problems. You may assume that some components are blown.
You have start again.

What do you want to turn on and off ? Can you give a link to the led rings ? Or can you make a photo of it ? Do they really need 2.4mA as you wrote in the picture ?

You need to put a 5k or so resistor between the NPN collector and the PNP base. When ON the base - emitter voltage in in the range of .5 to .7 volts. So in your circuit the NPN will try to make its collector a few millivolts above the emitter but the PNP is fighting it by not letting more than .7 volts from E to B.
I would guess the NPN would loose and burn up.

Is there a reason you must use a high side switch?

For "M" substitute the LED ring. D1 and C1 are needed for motors.

Hi John

Thanks for your reply.
I will try your suggestion.
From what I understand I need to use a high side switch because the ring have a common ground between the two colors so I need to control the 9V. But I am a super novice with that sort of projects so I am not 100% sure if that’s true. That’s what I gather after reading a few posts.

I am trying to turn on/off the LED :face_with_diagonal_mouth:.
The 2.4mA is what I measured when the ring is on.

That's right. Also the NPN transistor can be omitted because the TPIC already has open collector outputs that handle up to 18V(?) - see the data sheet.

That's because a resistor to Vcc is missing that can turn the NPN ON. You should read more about open collector outputs.

If this is your IC, then its directly compatible (open drain 50V) ...

image

There are versions of that ring led with red and green and common ground, but those have no internal resistor I think.

Don't use that 10µF with your shift register, that is a major mistake.

Hi Dlloyd,

The problem is that each LED ring has two colors but only one ground. How would i control the second color if i drain the current from common ground for the first color ?

Correct
I am using the ring with two colors. So 3 wires per ring. The one I have do have an internal resistance

Then you can remove the first stage with the PN2222A, and let the TPICB595 drive the BC327.

You need a resistor between the shift register and the base of the PNP transistor, that was missing in your circuit. 10k should be okay for that low current.
I don't know if a resistor needed for the B-E, probably not. The leakage current of the TPIC595 is typical 0.1µA.

Thanks a lot Koepel.
I tried the following circuit


And it works.
I let other comment on it.

Which pin is connected to SER_IN ? (yes, we like to know everything)

No. The circuit you've drawn is not as functional as you think.

The output of the IC is limited to 5V. So when the output is High, there is still current running through the transistor.

9v-5v = 4 V I = V/R I = 4/10k = ~ 0.4 ma. So when the LED should be OFF it will have milliamps.

I don't see how you reported this circuit working. Could you retest?

Apparently the outputs of the IC are open drain/ (thanks to @dlloyd) so the above does not apply.

Outputs are low-side, open-drain DMOS transistors• Instrumentation Clusters with output ratings of 50 V and 150-mA continuous sink-current capability.

1 Like

image

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.