Author Topic: LM324 Power Supply with variable voltage and current  (Read 153664 times)

0 Members and 2 Guests are viewing this topic.

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1000 on: March 30, 2022, 04:17:48 pm »
How have you wired the switch poles?
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1001 on: March 30, 2022, 04:21:22 pm »
The first pole is wired like in the first schematic, and the second pole is connected as a switch that is connecting and disconnecting the wire between the 5V reference and the pot's pins (reply #997 schematic)
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1002 on: March 30, 2022, 04:25:05 pm »
Is one pole on while the other pole is off?
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1003 on: March 30, 2022, 04:26:21 pm »
Both poles are on at the same time.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1004 on: March 30, 2022, 04:30:11 pm »
Both poles are on at the same time.
That's right. It should be working.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1005 on: March 30, 2022, 04:32:28 pm »
I am always hearing the relay clicking when the psu is going from off to on state.
For example: Vout=32V, I out=3A, I am turning off the psu then I turn it on and while I am pressing the switch I hear the relay clicking. Even if the relay was initially on.
« Last Edit: March 30, 2022, 04:34:22 pm by mike_mike »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1006 on: March 30, 2022, 04:38:35 pm »
Put the switch in the position where there is 5V on the pots and the PSU has output.
Then check that the pole in the tap change circuit is on.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1007 on: March 30, 2022, 04:54:22 pm »
Maybe there is a big problem with the idea if the pole for the reference turns off before the other pole.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1008 on: March 30, 2022, 05:05:24 pm »
With the way it originally was, the switch contacts timing avoided glitches. The pole in the tap changer opened before the pole on the Shutdown closed. This prevented the tap changer responding to the drop of PSU output voltage.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1009 on: March 30, 2022, 05:26:02 pm »
I don't think that I will find a perfect switch.
If I will use the power supply with the actual relay clicking, it could be a problem ? For example will the relay be damaged ?
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1010 on: March 30, 2022, 06:14:34 pm »
No, it's fine the way it is. It was a suggested improvement.
The switch needs to be wired so that both poles are on at the same time.
Ok, then I would like to leave the psu as it is.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1011 on: March 30, 2022, 09:21:08 pm »
No, it's fine the way it is. It was a suggested improvement.
The switch needs to be wired so that both poles are on at the same time.
Ok, then I would like to leave the psu as it is.
I fell asleep here. Yes, it will have to stay the way it is. I can't think of a simple solution for the relay clicking which we were wanting to avoid in the first place  in the design of the tap change circuit.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1012 on: March 30, 2022, 09:43:12 pm »
No, it's fine the way it is. It was a suggested improvement.
The switch needs to be wired so that both poles are on at the same time.
Ok, then I would like to leave the psu as it is.
Actually I have just thought of something. Increasing C2 in the tap change circuit will increase the delay to change time.
There still could be unforeseeable complications.  So experiment only if you have plenty of spare time to use.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1013 on: March 31, 2022, 08:35:54 am »
I will leave the psu as it was before the last suggested improvement.
 

Offline not1xor1

  • Frequent Contributor
  • **
  • Posts: 716
  • Country: it
Re: LM324 Power Supply with variable voltage and current
« Reply #1014 on: March 31, 2022, 12:10:34 pm »
I tried to simulate with LTspice that schematic with TLC072 (PS4s03.jpg - is that the last schematic?) but it oscillates at about 1-2kHz. The bode plot is scary...  :scared:

If anybody would like to check I can post a zip with the models I used.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1015 on: March 31, 2022, 12:45:06 pm »
I tried to simulate with LTspice that schematic with TLC072 (PS4s03.jpg - is that the last schematic?) but it oscillates at about 1-2kHz. The bode plot is scary...  :scared:

If anybody would like to check I can post a zip with the models I used.
The latest is PS42 012.png on https://www.eevblog.com/forum/beginners/lm324-power-supply-with-variable-voltage-and-current/msg3582664/#msg3582664
It's not significantly different.
The CV loop should oscillate over 100Khz with no compensation.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1016 on: March 31, 2022, 04:34:56 pm »
Is there anything that I should do if the psu oscillates ? I checked the psu, some time ago, when I finished the latest schematic, and it seems that it didn't oscillate (at that moment).
What else should I do ? is there anything that I should modify or test ?
« Last Edit: March 31, 2022, 04:39:56 pm by mike_mike »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1017 on: March 31, 2022, 09:05:22 pm »
Is there anything that I should do if the psu oscillates ? I checked the psu, some time ago, when I finished the latest schematic, and it seems that it didn't oscillate (at that moment).
What else should I do ? is there anything that I should modify or test ?
You could test it again, it will be fine.  I use the same design in my main bench PSU and have not seen oscillation problems in almost 3 years.
There is very likely a mistake in the simulation.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 
The following users thanked this post: mike_mike

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14199
  • Country: de
Re: LM324 Power Supply with variable voltage and current
« Reply #1018 on: March 31, 2022, 09:40:35 pm »
The ESR of C2 could make a difference for the stability and help the voltage loop.
There are other parts that are not modeled perfectly.  One such part is inductance of the shunt, that can have an effect, though often also to make a real world circuit oscillate if the simulation is stable.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1019 on: April 01, 2022, 12:34:02 am »
A sure way to make it oscillate is to apply type 1 compensation(C + no R) and an extremely low ESR cap across the output.
This is commonly known to apply in general to current sourcing designs such as Harrison topology and LDO regulators.
« Last Edit: April 17, 2022, 10:26:50 am by xavier60 »
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline not1xor1

  • Frequent Contributor
  • **
  • Posts: 716
  • Country: it
Re: LM324 Power Supply with variable voltage and current
« Reply #1020 on: April 01, 2022, 09:10:04 am »
I tried to simulate with LTspice that schematic with TLC072 (PS4s03.jpg - is that the last schematic?) but it oscillates at about 1-2kHz. The bode plot is scary...  :scared:

If anybody would like to check I can post a zip with the models I used.
The latest is PS42 012.png on https://www.eevblog.com/forum/beginners/lm324-power-supply-with-variable-voltage-and-current/msg3582664/#msg3582664
It's not significantly different.
The CV loop should oscillate over 100Khz with no compensation.

I downloaded the TLC072 model from TI and the TIP35 one from onsemi.
The bodeplot of a simple circuit with just TLC072 matches the datasheet one, so the library should be OK.
Unfortunately the test (control voltage only) yields quite wild results. (See image below)
I'm including the simulation in order to allow to check what is wrong with that.
Please let me know what is wrong ... or if it is just a simulation problem.



thanks
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1021 on: April 01, 2022, 11:50:24 am »
Your signal injection point isn't in the usual spot. It should be between the + output and R16.
I have just been doing some testing on my actual PSU. Ill report back when I make sense of it all.
« Last Edit: April 01, 2022, 08:35:07 pm by xavier60 »
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1022 on: April 01, 2022, 12:00:12 pm »
Ok, with a 1A load, loop gain is 0dB at 115KHz. Allowing for the phase inversion, the output lags the waveform at the top of R16 by 120°.
So I guess the stability phase margin is 60°.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1023 on: April 02, 2022, 10:29:34 am »
@xavier60 Did you made any other tests with the psu ? If yes, then could you please share with us the conclusions ?
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1024 on: April 02, 2022, 10:39:07 am »
@xavier60 Did you made any other tests with the psu ? If yes, then could you please share with us the conclusions ?
No, just the stability phase margin test. 115Khz isn't all that fast but the stability is the most important thing which is proven to be  very good.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf