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

andreab and 2 Guests are viewing this topic.

Online iMo

  • Super Contributor
  • ***
  • Posts: 4785
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #250 on: May 10, 2019, 04:22:52 pm »
CC LED test in V8.

PS: V8.1 is not good.
« Last Edit: May 10, 2019, 04:29:32 pm by imo »
 
The following users thanked this post: mike_mike

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #251 on: May 10, 2019, 04:46:23 pm »
Something started to work bad, because the simulation blocks without giving any error messages at Transient analysis 50% done.
What should I do ?

Later Edit: a few minutes ago it was working. Now it sais Defcon1, I will google it, but I have no idea how to fix it.

Sometimes it works, and sometimes not.
« Last Edit: May 10, 2019, 04:59:00 pm by mike_mike »
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 4785
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #252 on: May 10, 2019, 05:00:35 pm »
Post your .asc file.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #253 on: May 10, 2019, 05:04:34 pm »
Please find attached the .asc file.

Later Edit: I forgot to add the feedback capacitor on U5.
« Last Edit: May 10, 2019, 05:17:54 pm by mike_mike »
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 4785
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #254 on: May 10, 2019, 06:22:15 pm »
Here is the V9.
It has problems with 10k input resistors in CC_LED opamp comparator. Why?
100k resistors there work.
 
The following users thanked this post: mike_mike

Online iMo

  • Super Contributor
  • ***
  • Posts: 4785
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #255 on: May 10, 2019, 06:55:29 pm »
Added a Soft Start :)
V10
 
The following users thanked this post: mike_mike

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #256 on: May 10, 2019, 07:31:13 pm »
It is safe now to built the practical circuit and test it with the oscilloscope ?

Later Edit: C15 needs to be non polarized ? The local electronics shop does not have in the stock such big values for non polarized capacitors. This is why I am asking.
« Last Edit: May 10, 2019, 08:00:59 pm by mike_mike »
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 4785
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #257 on: May 10, 2019, 09:27:52 pm »
C15 4u7/50V is polarized. Could be 1u-10u (based on its value the start of Vout will be delayed).
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #258 on: May 10, 2019, 09:49:14 pm »
Why is the softstart needed?
A better use of the transistor would be as an Under Voltage Lock Out between R25 and ground.
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 #259 on: May 10, 2019, 10:03:36 pm »
Some tests in LT Spice. You can find the pots settings in the image.

I replaced D4 by BZX384B3V6, because I did not found the model for the original diode.

Are the results good ?
« Last Edit: May 10, 2019, 10:05:18 pm by mike_mike »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #260 on: May 10, 2019, 11:09:06 pm »
All looks fine to me. The small amount of voltage overshoot after a shallow drop is because the output current  can't be turned off instantly.
« Last Edit: May 11, 2019, 01:05:26 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 xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #261 on: May 10, 2019, 11:26:54 pm »
What is D4 for? It could cause under voltage stability problems. It is better if the op-amps stay in control  for as long as possible as the unregulated voltage drops.
Kleinstein's idea from reply #218 might help if there is a problem.
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 #262 on: May 11, 2019, 05:29:44 am »
What is D4 for?
D4 is for lowering the input voltage for 7812, if the voltage goes above 35V.
I will delete D4, if it can cause problems.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #263 on: May 11, 2019, 05:32:09 am »
Keeping the 7812 safe is important also. What input voltage do you expect?
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 #264 on: May 11, 2019, 05:46:59 am »
I used an LM317. It is working near its maximum rated voltage so I have a 10V zenner crowbar protecting the 8V rail and a 100mA polyswitch at the output of the LM317.
When I tested one of my ST branded LM317's, it didn't break over until 70V anyway.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 4785
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #265 on: May 11, 2019, 05:53:24 am »
D4 is there in order to drop the 7812 input voltage (as his input is around 35V), afaik.

@MM: you may show the I(R_Shunt) with the peak upwards such you right click on the "I(R_Shunt)" label (trace window), and edit it to "-I(R_Shunt)".

@MM: the slow CC_limit is

I_cc = V_wiper_cc / (R_Shunt * R3/R5) = V_wiper_cc / 2.2

For example 6.908V gives you 3.14A slow CC limit.

The output

Vout = (R12 + R13) / R13 * V_wiper_cv = 2.833 * V_wiper_cv

For example 5.67V gives you 16.06V Vout.

When you want to see the correct voltages in the schematics after the simulation use ".tran 0.2", the "startup" there causes the simulation starts at 0V and it shows some weird uVs then.

« Last Edit: May 11, 2019, 05:54:56 am by imo »
 
The following users thanked this post: mike_mike

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #266 on: May 11, 2019, 05:56:59 am »
What input voltage do you expect?
I wanted to use a 24Vac transformer, which has a measured output voltage of about 26-27Vac.
I also have some 30Vac transformers which I can use if necessary.

Using the .tran 0.2 gives me something like the attached screenshot. Probably, I am missing something.
« Last Edit: May 11, 2019, 06:15:39 am by mike_mike »
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 4785
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #267 on: May 11, 2019, 06:32:17 am »
 :D
You miss the soft start..
Either disable the sstart or use longer tran.
 
The following users thanked this post: mike_mike

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #268 on: May 11, 2019, 06:34:01 am »
I will use longer tran.

It is better to use the 30Vac transformer and an LM317 ?
If I will use the 30Vac transformer, then the output voltage will go higher than with the 24Vac transformer...
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 4785
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #269 on: May 11, 2019, 06:42:42 am »
You may use higher voltage zener for a larger drop.
The max current through the zener I see is 12mA (except a 250mA 30ns peak which is probably coming from ideal simulation).

The "soft start" is experimental. Some ripples or fluctuation on the input voltage rail may trigger the soft start such it lowers Vout. Thus it still needs some tuning.
« Last Edit: May 11, 2019, 06:45:06 am by imo »
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #270 on: May 11, 2019, 07:07:11 am »
Ok, then I will not use the soft start circuit.
I think that it is not really necessary...
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #271 on: May 11, 2019, 07:46:29 am »
Are there any other modifications needed or I can build and test the practical montage ?
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14200
  • Country: de
Re: LM324 Power Supply with variable voltage and current
« Reply #272 on: May 11, 2019, 07:57:53 am »
In stead of the soft (delayed) start circuit with the capacitor, reacting on rising voltage, I would prefer the zener / LED in series to D1. It should disable the output if the voltage from the 7812 is too low (e.g. below some 5-8 V, the exact limit depends on the zener and R7). This would work and turn on and turn off.

If really worries about peak current to the zener in series to the 7812, one could also have some series resistance in addition to the zener to limit peak currents and ripple currents.

The buffer for the current limit setting is no really needed - it does not hurt, but just a wire is lower noise (though it does not matter). One could use the 4 th OP for something like temperature supervision (turn off if the heat sink gets too hot, or enable a fan).

For the actual build one should watch out where the shund voltage is sensed - make sure there is no other drop included.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2824
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #273 on: May 11, 2019, 08:03:27 am »
The LM7812 maximum input voltage rating typically is 35V. The LM317 has a typical maximum input to output voltage difference rating of typically 40V.
An LM317 set for 12V would then have a maximum input voltage of 52V so long as the output is never shorted to ground.
There is also the option of getting the high voltage version, the LM317HVT like I did and got sent blacktopped fakes anyway.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 4785
  • Country: pm
  • It's important to try new things..
Re: LM324 Power Supply with variable voltage and current
« Reply #274 on: May 11, 2019, 08:04:32 am »
In stead of the soft (delayed) start circuit with the capacitor, reacting on rising voltage, I would prefer the zener / LED in series to D1.
You do mean R1, don't you?

That would work with a zener (ie 5.1V) in the Q1's emitter (and say 3k3 in the collector), it seems.
« Last Edit: May 11, 2019, 08:45:30 am by imo »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf