1
\$\begingroup\$

I've built this circuit: http://www.tuxgraphics.org/common/images2/article379/powersupply.gif

Here is a closeup of the amplifier section which I've built:

schematic

simulate this circuit – Schematic created using CircuitLab

And in the instructions here http://www.tuxgraphics.org/electronics/200506/article379.shtml Guido suggests a testing routine:

  • Test1: Connect some powersupply (at least 15V) to the power input of the circuit and check that you get 5V DC behind the voltage regulator.

  • Test2: Measure the output voltage. It should be 0V.

  • Test3: Connect pin 7 and pin 26 on the microcontroller with a wire (no microcontroller in the socket). You should get on the output a couple of volts less than what is used at DC input. Remove the wire and the output should go back to zero. Be sure to not cause any short circuit on the output.

I'm stuck on Test3. I get 0 volts output when I connect pin 7 (Vcc) to pin 26 (end of DAC output). I've quadruple checked all transistors and matched their pinouts and orientations. I've tried replacing a couple of them incase thats the problem. However, now I'm trying to understand a little theory to understand how to debug it with a multimeter. What voltage drops could I measure to find where the problem is? I can probably gain access to an oscilloscope of that would help, however I am dealing with fixed DC voltages so I would think a multimeter would be enough.

\$\endgroup\$
  • \$\begingroup\$ I'd be VERY strongly tempted to trash the output stage and use something more "well defined". That's a nasty voltage amplifier that relies on Q3 as a comparator of sorts and then has Q2 & Q1 Vbe drops to Vout. It would be droopy under load and inaccurate compared with DAC setting regardless. And he could have used PWM instead of the DAC and saved about 18 resistors BUT that is bearableish. Adding one cheap quad opamp would allow a much nicer design. \$\endgroup\$ – Russell McMahon Feb 23 '15 at 12:56
  • \$\begingroup\$ Ryan - I've added a brief introductory paragraph to your question. That transforms it from a "how do I fix my circuit" question into a how do I design a circuit that ..." question. Some people here think such things matter. It's best to humour them. As what I've pt is indeed what you want to know about and may wish to do if it's easy I hope the addition is OK. \$\endgroup\$ – Russell McMahon Feb 23 '15 at 13:15
  • \$\begingroup\$ Design of supply covered here . He discusses using PWM but has a misconception re the type of filter you'd need to get adequate smoothness. Using 2 opamp stages (or two emitter follower transistors if DC offset accuracy is not an issue (which it is here) !) you can implement a 5 pole Bessel low pass filter with reasonable ease that will work entirely well enough at acceptable PWM frequencies. Anon. \$\endgroup\$ – Russell McMahon Feb 23 '15 at 14:32
4
\$\begingroup\$

Not a nice design, alas.

Will work OKish but easy to do far better.
Vout will be ~~~= k x V_DAC - ~~~= 1.2 V

Testing:

Ensure polarity of all transistors is OK

  • 1 x PNP (BC557) should test as if there was a conducting diode from collector to base and from emitter to base and high resistance in reverse direction.

  • 3 x NPN (BC547, BD245B, BD137) tests as if there is a diode from base to collector and base to emitter and high resistance in opposite direction.

Then:

Set VHV to say 15V BUT really need 6 x Vin at VCC to test properly. See below. His last step is wrong.
Connect Vcc etc to pin 26. Call this Vin.
Better if Vin is in 1V to 2V range - see below.

Vpin26 = Vin
R25 rhs ~= Vin as DAC has no load - usually it will look like 2R looking upstream. With uP out it is unloaded.

Q3 base = Vin. (wire)
Q3 emitter = Q3base - ~= 0.6.

Q4 e = Vhv
Q4C = 5.7 x Q3 e due to amplifier action.
So for Vcc = 5V, Q3e =~~ 4.4V
and Q4C = 4.4 x 5.7 = 25V.

SO you want < Vcc at Vin.

Adjust Vin so Q3B = say 1v to 2V.
Then Q4C ~= 6-12V and Vout about 1.2V less.

Try that and report and we can go from there.

enter image description here


As a guide only:

This high quality 2:15 AM antipodean Forrest Mims lookalike cct show the basic principle of using an op amp. Vout is now sampled directly by R1 R2 and compared with V_DAC. The output will be a fixed multiple of VDAC and "stiff" - it won't wave in the breeze under load as at present.

There are better way to drive an output stage but that can come later if desired. At present the output cannot get within about 2V of Vhv.

In most cases PWM could be used instead of the DAC (1 pin on uP). A 2 op amp stage filter would help it settle faster than otherwise - the LM358 shown has 2 x opamp sections and its companion LM324 has 4. I realise you probably have a PCB for this so major changes are not attractive.

enter image description here

\$\endgroup\$
  • 1
    \$\begingroup\$ Wow thanks. Will give this a try now. Curious what your thoughts on a better design would be. An op-amp? I'm totally open to throwing one in there, could you suggest a part? (in the meantime im going to try to get this working) \$\endgroup\$ – Ryan Feb 23 '15 at 13:15
  • \$\begingroup\$ Vcc: 23.4V Vin: 5.01V R25 rhs (Q3 base to ground): 1.478V Q3 emitter: 0.806V Q4 is PNP backwards: Q4 emitter (Q2 base to ground): 0.8V Q4 collector: 23.4V = Vcc \$\endgroup\$ – Ryan Feb 23 '15 at 13:30
  • \$\begingroup\$ So looks like my problem is with Q4? Pin 1 that you marked V x 5 on the schematic is actually the collector, right? \$\endgroup\$ – Ryan Feb 23 '15 at 13:33
  • \$\begingroup\$ Aren't BD137 and BD245 NPN transistors? \$\endgroup\$ – Ryan Feb 23 '15 at 13:39
  • \$\begingroup\$ @Ryan You CANNOT reverse an NPN and use it as a PNP or vice versa. (That statement is not quite 100% true but it applies 101% here. Q4 MUST be PNP. Its =mitter MUST go to Vhv (23.5V). Its collector must go to Q2 base. \$\endgroup\$ – Russell McMahon Feb 23 '15 at 13:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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