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

0 Members and 1 Guest are viewing this topic.

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #425 on: May 16, 2019, 11:23:35 am »
I tested it, (with 7812) and when I plugged out the PSU from the mains, there appeared a short pulse on the oscilloscope screen, which did not happened when the led was there.

What should I do ?
It is already about 3 weeks since I am working at this PSU, and I still do not find a good working version... and I am very disappointed.  :-\
 

Online xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #426 on: May 16, 2019, 11:25:34 am »
That is not a good test. Can you do a proper test?
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 #427 on: May 16, 2019, 11:31:29 am »
Yes.
I used a LM317 1.25 to 25V power supply. I set the LM317 to 12V and I reduced gradually the voltage to 1.25V. The scope was set to 250uS/div. The trace gone from 28.5V (max output) to GND on the screen, without suddenly going up.
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4784
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #428 on: May 16, 2019, 11:31:42 am »
SIM: with the zener D9=3V3, R7=2k2 and RED LED in the UVLO you get

R30=3k3  I_FastCC=8.1A
R30=4k7  I_FastCC=8.3A

« Last Edit: May 16, 2019, 11:42:39 am by imo »
 

Online xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #429 on: May 16, 2019, 11:37:51 am »
Yes.
I used a LM317 1.25 to 25V power supply. I set the LM317 to 12V and I reduced gradually the voltage to 1.25V. The scope was set to 250uS/div. The trace gone from 28.5V (max output) to GND on the screen, without suddenly going up.
So the UVLO works.
You have not included your age in your profile?  Are you young and still learning?  Will this power supply have a particular application? Knowing this might allow us to better anticipate other possible problems.

More: The regulator should have shut down at about 6V or higher?
« Last Edit: May 16, 2019, 11:41:21 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 iMo

  • Super Contributor
  • ***
  • Posts: 4784
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #430 on: May 16, 2019, 11:46:05 am »
It is already about 3 weeks since I am working at this PSU, and I still do not find a good working version... and I am very disappointed.  :-\
The more you know the more unhappy and in doubt.
Not having eevblog handy you would simply build a PSU based on some schematics from the web, and use it happily  :D
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #431 on: May 16, 2019, 11:55:40 am »
New test: D9=3V3 zener, R7=2k2, red led in the UVLO and R30=3k3.
It seems to work now.

@xavier: Yes, I am still learning and I am young. I am a enthusiast at electronics. I like to build circuits. The application of the power supply will be to power different equipment, starting from 1W led and PCB mini drills to digital micro controllers such as Arduino.

I did not measured the output voltage with the oscilloscope, but at some output voltage, the trace gone suddenly to the ground.
 

Online xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #432 on: May 16, 2019, 12:01:18 pm »
New test: D9=3V3 zener, R7=2k2, red led in the UVLO and R30=3k3.
It seems to work now.
Are you meaning that the UVLO didn't work with just the blue LED bridged out?
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 #433 on: May 16, 2019, 12:04:56 pm »
@xavier60 I mean that the fast CC is now correctly working after using the configuration suggested by @imo.
With the blue led, at some point when the voltage dropped below 12V, the output voltage of the power supply suddenly descend to 0V.

@imo I did not expect such problem from this power supply, this is why I am i doubt... But, if  you or others can and will help me, then I will try to make the power supply work correctly.
« Last Edit: May 16, 2019, 12:08:19 pm by mike_mike »
 

Online xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #434 on: May 16, 2019, 12:08:34 pm »
@xavier60 I mean that the fast CC is now correctly working after using the configuration suggested by @imo.
With the blue led, at some point when the voltage dropped below 12V, the output voltage of the power supply suddenly descend to 0V.
I'm puzzled by this. No doubt that the fast CC is working properly. Was imo's mod necessary?
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 #435 on: May 16, 2019, 12:19:12 pm »
Yes. Imo's mod was necessary, in my opinion.
Regarding the OVLO, when the  power voltage of LM324 is going down, the output voltage of the power supply is also going down.
But when the power voltage of LM324 is going up, then the output voltage of the power supply starts to go up only when the power voltage of LM324 is about 6-7V.
This happens with imo's mod.
I was wrong in the previous affirmation. I apologize.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #436 on: May 16, 2019, 12:49:01 pm »
Please let me know what else should I test, in order to make the power supply to work correctly.
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4784
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #437 on: May 16, 2019, 01:39:29 pm »
There is a so called RED LED test :)
First wire an 1k/1W resistor in parallel to your output capacitors (like a permanent load).
You set the output voltage to the maximum and the SlowCC to minimum, say 20mA (doublecheck what current you get at minimum CC setting).
Edit: Switch PSU off.
Then take an RED LED (could be smoked, be warned) and connect it to the PSU output (anode to OUT+, cathode to OUT- such it lits).
Switch the PSU a few times (ie 10x) on/off. Wait a few seconds between the switchings.
When the LED survives your PSU is perfect..
« Last Edit: May 16, 2019, 04:31:34 pm by imo »
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #438 on: May 16, 2019, 02:24:51 pm »
I set the output to 27.5V, the SlowCC to 18mA (measured with the multimeter set to mA directly on the output of the power supply) and I smoked instantly 2 red leds. When I connected the led, it was smoked instantly. There was no "real smoke", only one led lit up for a fraction of a second then it was off (it died), and the second led did not lit up at all. There also was a 1k/5W resistor on the output.
I think that this is because of the output filter capacitors which are discharging into the led (2x47uF). Am I right ?
« Last Edit: May 16, 2019, 03:37:06 pm by mike_mike »
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4784
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #439 on: May 16, 2019, 03:48:58 pm »
Try to set the 18mA, and switch the PSU off. Wait a bit till the caps discharge. Then wire the LED in. Then switch the power on. Wait a bit and switch it off. Whether the LED survives that.
« Last Edit: May 16, 2019, 03:50:45 pm by imo »
 

Offline Cliff Matthews

  • Supporter
  • ****
  • Posts: 1910
  • Country: ca
    • General Repair and Support
Re: LM324 Power Supply with variable voltage and current
« Reply #440 on: May 16, 2019, 03:59:32 pm »
My ancient Micronta used to pass that test, but I added a DVM with 10uF MLCC right behind the new binding posts.. Doh!  |O
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14197
  • Country: de
Re: LM324 Power Supply with variable voltage and current
« Reply #441 on: May 16, 2019, 04:33:50 pm »
The slow and fine CC limit will wind up in the short time, when still in under-voltage look out.  So while turning on the CC OP will go all the way towards the upper limit, while the voltage is not sufficient to turn Q1 on. This is not that unusual, it just resembles the normal operation. It just take a considerable time for the slow current limit to activate.  In this time only the fast limit (at some 8 A) is active and this is little too much for a small LED, even if only for some 10 µs.

The delayed action of the fast current limit is one reason why the fast current limit is kind of needed.

Quite a few commercial lab supplies likely have a similar limitation.  I would consider this not a bug but more like a feature, giving higher priority to voltage regulation, so that small spikes in the current would not cause trouble the voltage regulation.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #442 on: May 16, 2019, 04:42:27 pm »
Try to set the 18mA, and switch the PSU off. Wait a bit till the caps discharge. Then wire the LED in. Then switch the power on. Wait a bit and switch it off. Whether the LED survives that.
Yes, the LED survived. I used an red LED.
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4784
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #443 on: May 16, 2019, 04:49:37 pm »
 :-+
 
The following users thanked this post: mike_mike

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4784
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #444 on: May 16, 2019, 05:26:40 pm »
@Kleinstein - I've done a sim with the lower side shunt fast cc and it looks it helps in simulation. It would need to be tested in HW, however.
When working in HW the FastCC 8A peak should disappear.

The below reduces the max 3A SlowCC to 2.89A or less based on the R27 value. That should not be a problem. The 8A fastCC peak is eliminated.
 
You may also try with the 2 resistors like in Xavier's schematics above.
« Last Edit: May 17, 2019, 04:07:25 am by imo »
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #445 on: May 16, 2019, 07:20:04 pm »
You may try with the 2 resistors like in Xavier's schematics above.
Do you mean as it is in the reply #417 ?

Later Edit: it looks like there are some high current pulses if I use the Xavier's schematic.
« Last Edit: May 16, 2019, 07:27:52 pm by mike_mike »
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #446 on: May 17, 2019, 09:27:21 am »
Does anybody have some advices regarding this PSU ?
Can this PSU be used as it is, with no problems ?

 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14197
  • Country: de
Re: LM324 Power Supply with variable voltage and current
« Reply #447 on: May 17, 2019, 11:39:12 am »
I would consider the PSU useful. The regulation and behavior on turn on seems to be about at the level of the cheap Chinese supplies, or a little better. With an LM324/LM358 the precision of the current regulation may not be very good (depends on the luck one has with the OP - not all LM324 have poor offset drift, but they can).

Some check on the heat sink temperature may be a good idea. Without tap switching there can be quite some heat.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #448 on: May 17, 2019, 04:14:41 pm »
I am trying to select the proper value for C1, in order for the power supply to not oscillate.
I found that at Vout=26V, SlowCC=0.22A and Rload=10R, the voltage on the shunt looks like the attached screenshot. I can't figure if the blue and thick line is a oscillation or it is only noise.
Please have a look at the attached screenshot and tell me what you think.
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14197
  • Country: de
Re: LM324 Power Supply with variable voltage and current
« Reply #449 on: May 17, 2019, 04:23:46 pm »
From the scope trace it is hard to tell if there is some oscillation. Even with a better scaling it could be tricky to see.

The output of the OP for the CV mode loop could be a little more sensitive, though not much.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf