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

0 Members and 3 Guests are viewing this topic.

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1125 on: December 14, 2023, 07:00:26 am »
I tried another pcb and the same waveform appeared on the oscilloscope .
With mine, there is no overshoot at the output of the CV opamp. It seems that your compensation is no longer suitable for some reason.
What are the current values for your CV compensation RC?
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: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1126 on: December 14, 2023, 02:36:42 pm »
R5=4k7 and C3=1nF.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1127 on: December 14, 2023, 04:57:03 pm »
I made a test and I found that only the green led is making problems, in constant voltage mode and by using the electronic load with a resistor of 7.8R. If I connect it, then that strange response appeares, but if I leave the green led disconnected then the response look normal. I checked this using 2 pcb's, and the same problem appeared.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1128 on: December 14, 2023, 05:05:32 pm »
R5=4k7 and C3=1nF.
That should already be making it slow enough. You could try going a bit smaller with the resistor   and larger with the capacitor to see what it does.
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: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1129 on: December 14, 2023, 05:39:41 pm »
I tried with 3.9K and then I changed the capacitor to a new one (also 1nF) but the waveform looks the same.

How can I calculate of How can I check if it is safe for the 358 if I use R30=R31=2k2 ?
« Last Edit: December 14, 2023, 05:45:01 pm by mike_mike »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1130 on: December 14, 2023, 05:55:01 pm »
This could be a waste of time, try decreasing R7 from 10K to 4.7K
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: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1131 on: December 14, 2023, 06:28:37 pm »
With R7=4k7.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1132 on: December 14, 2023, 06:30:32 pm »
Is that with the LED connected also?
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: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1133 on: December 14, 2023, 06:32:35 pm »
Yes both led's are connected. I used a 3mm green led and a 3mm red led.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1134 on: December 14, 2023, 06:42:52 pm »
Well, that's a nice response then. Hope it stays that way.
To calculate the maximum opamp current, we first need to have some idea of the lowest possible output voltage, say 1V.
 LED current is  (7V - LED voltage) divided by R30 or R31. Add 1.5mA for R7.
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: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1135 on: December 14, 2023, 06:57:05 pm »
Ok, the voltage on the led is 2.25V.
(7-2.25)/10k=0.475mA
The total maximum current = 1.5mA (the current throug R7)+0.475 (current through led)=1.945mA.

What tests should I do after modifying the R7 value ?
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1136 on: December 14, 2023, 07:00:52 pm »
Ok, the voltage on the led is 2.25V.
(7-2.25)/10k=0.475mA
The total maximum current = 1.5mA (the current throug R7)+0.475 (current through led)=1.945mA.

What tests should I do after modifying the R7 value ?
You could change R5 back to 4.7K and check the response again.
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: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1137 on: December 14, 2023, 07:13:07 pm »
The R5 was already 4k7 in my previous post and screenshot.
The below screenshot is with 5mm regular red led and 5mm regular green led.
1953402-0

The 5mm regular led are not sufficiently bright and I will probably use the 3mm led's which are brighter.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1138 on: December 15, 2023, 03:24:35 am »
Do I need to do any other test, using different load resistance, to check the stability ?
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1139 on: December 15, 2023, 03:26:31 am »
Do I need to do any other test, using different load resistance, to check the stability ?
You could do that.
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: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1140 on: December 15, 2023, 04:00:48 am »
1. Vout= 32.8V, Rload=6.7R: 000.jpg
2. Vout=32.8V, Rl=10R: 001.jpg
3. Vout=15.2V, Rl=10R: 002, Rl=8.45R: 003, Rl=5R: 004
4. Vout=2V, Rl=5R: 005, Rl=0.66R, Rl=006

Please have a look and tell me what you think.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1141 on: December 15, 2023, 05:02:14 am »
That all looks normal, no signs of instability.
In future, no need to post all of the traces if they look good.

When a high load is suddenly applied causing the output of the CV opamp to immediately step up by a volt or so, some current briefly flows through the compensation RC, causing a brief current decrease through D1 so increasing its dynamic resistance. The increase in total compensation resistance would have been the cause of the brief instability near the start of the load transient pulse.
Decreasing R7 maintains higher current through D1.
« Last Edit: December 16, 2023, 03:59:24 am by xavier60 »
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 mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1142 on: December 16, 2023, 04:19:09 pm »
This is with 0.5 ohm load and 2.5V output, it is still normal ?  I am asking because of the voltage drop, which is 2.5V, which is equal to the output voltage.
The maximum output current set to 5.18A.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1143 on: December 16, 2023, 07:59:39 pm »
I did a quick test on mine and got a 500mV dip. My lead lengths are longer than they should be for the test.
Your build turned out to have a much slower response than mine, I don't think it fully explains your result.
It didn't drop that much in previous tests.
You could take a look at the opamp outputs to see what's happening.
Dont use AC coupling on your DSO when it's not needed.
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: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1144 on: December 16, 2023, 08:21:11 pm »
I did the test again, this time I connected the oscilloscope probe (yellow trace) to the pins of the 47uF capacitor, C2.
244_000 = output of the PSU
244_001 = pin 7 of LM358
244_002 = pin 1 of LM358
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1145 on: December 16, 2023, 08:30:30 pm »
Now that's close to what I would expect.
It also shows that in practice PSUs don't need to be super fast when the response can be degraded so much by typical lead lengths used on the bench.
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 mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1146 on: December 17, 2023, 11:32:10 am »
Please have a look at the attached screenshots.
That oscillation has conection with the moment when the load is changing from off to on ? It is normal ?
I tested at Vout=2.5V, Rload=10R.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1147 on: December 17, 2023, 08:47:32 pm »
It looks like ringing in the external wiring.
What is odd, why does the voltage on CH2 drop before on CH1?

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: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #1148 on: December 17, 2023, 09:20:36 pm »
CH2 is the waveform on the output of NE555, I think that probably it is normal because CH2 needs to drop first then CH1...
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2872
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #1149 on: December 17, 2023, 09:50:27 pm »
So it's the output transition of the 555 ringing the capacitance of the MOSFET and wiring inductance. Is there more ringing at the Drain of the MOSFET?
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