3
\$\begingroup\$

I'm using an example from this post which indicates that I should be able to use a pair of NPN 3904 and PNP 3906 transistors to provide high side voltage to a load. The specific schematic I followed from that example is:NPN PNP High Side Switch

The load, in fact, is a low power regulator (LM317) driving a couple of amplifiers downstream.

Instead of an Arduino, I'm using a Raspberry PI GIPO (3.3V) for switching. The resistor values I have are as follows:

  • R1: 2.2K
  • R2: 2.2K
  • R3: 1K

Source voltage (indicated on Diagram) is actually 19 volts and the downstream LOAD draws just under 100 mA. The regulator outputs 11 volts and drives a zener diode rail splitter to provide about +/- 7.5 volts with a virtual ground (for the amplifier circuit).

The problem I have is that when the GPIO pin is turned OFF, I still get about 7.5 volts output from the 3906 emitter so I'm not truly shutting off the voltage to the regulator.

Can anybody tell me if my resistor values look reasonable and maybe why it would still be emitting that voltage from the 3906 when the GPIO is OFF?

EDIT:

Updated image with transistor pin labels and resistor values: Updated Schematic

\$\endgroup\$
9
  • 1
    \$\begingroup\$ Consider using a regulator with an enable input instead. \$\endgroup\$ May 30, 2018 at 18:34
  • \$\begingroup\$ If you ground the R1 input, do you see the same result? Does your Pi share a common ground with this circuit? \$\endgroup\$
    – brhans
    May 30, 2018 at 18:37
  • \$\begingroup\$ Don't turn it off. Set the output to low. Off suggests you are disabling the output, setting it to input/ high impedance. \$\endgroup\$
    – Passerby
    May 30, 2018 at 18:38
  • \$\begingroup\$ As Passerby said, you need a pull-down resistor at the output. \$\endgroup\$
    – lucas92
    May 30, 2018 at 18:50
  • \$\begingroup\$ I like the idea of a regulator with an enable pin, but haven't found one that would do the job. If anyone has an idea of one that might, it would be appreciated. Yes, the PI shares a common ground and grounding the R1-3904 has no effect. It's not shown in the diagram above, but I do have a resistor as well between the 3906 Emitter and the power regulator. It's only 10 ohms. If I increase that to say...10K, would that shut power off completely when the GPIO turns off? If so, why would that be? \$\endgroup\$
    – Max
    May 30, 2018 at 18:56

3 Answers 3

1
\$\begingroup\$

It's probably because you have your Collector and Emitter backwards on the 2N3906.

To debug: try removing Q2 and R2. Make sure Q1 shuts off correctly before adding any other circuits.

Also, a 2N2907 might be more robust for the application.

enter image description here

\$\endgroup\$
1
  • \$\begingroup\$ Thanks for the pic edit Vince. That's gotta be my problem. \$\endgroup\$
    – Max
    May 31, 2018 at 10:28
0
\$\begingroup\$

Assuming there is no backflow from the LM317 powered from elsewhere (and assuming a common ground between the MCU ground and the emitter of Q2), chances are you have at least one transistor wired incorrectly and you are seeing E-B breakdown.

enter image description here

Your resistor values are not unreasonable.

\$\endgroup\$
3
  • \$\begingroup\$ Thanks Spehro. I thought of that too and triple checked again. I'm using TO-92 packages...same as you indicated. I've updated the image above to include the E/C pins I think are correct as well as the resistor values. Again, the LOAD in the image is the LM317, rail splitter, and amplifier circuit. It very well could be that I read the schematic wrong on the PNP for the Collector and Emitter pins, but I thought I had it correct. \$\endgroup\$
    – Max
    May 30, 2018 at 22:44
  • \$\begingroup\$ Umm.. the lead with the arrow is the emitter, so you do have it reversed. Best to replace it with a new one- the B-E breakdown can degrade the transistor. \$\endgroup\$ May 31, 2018 at 2:46
  • \$\begingroup\$ Well there's a rookie mistake. I'll swap it this morning and report back \$\endgroup\$
    – Max
    May 31, 2018 at 9:52
0
\$\begingroup\$

If you are using an LM317, you can bring the output down to about 1V (don't remember the exact figure) by pulling the ADJ pin low. Will that do the trick? (EDIT - the EN pin should be called NOT_EN in fact.)

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
2
  • \$\begingroup\$ That might help if all else fails. \$\endgroup\$
    – Max
    May 30, 2018 at 21:03
  • \$\begingroup\$ it doesn't really make sense to do it in series as per your original drawing. If Q1 is passing 100mA and it has maybe 2V across it, it is dissipating 200mW - that's a fair amount for a small signal switching transistor. \$\endgroup\$
    – danmcb
    May 30, 2018 at 21:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.