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

0 Members and 1 Guest are viewing this topic.

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #950 on: October 04, 2021, 03:21:19 pm »
Hello @xavier60, I am working at the PSU's case, and I have a question about the red (CC) and green (CV) led's. Both led's have a 10k resistor in series (R30 and R31), and the led's are powered from 8V rail. This means that the current is very small, it is possible to increase the current that goes through these 2 led's ?
« Last Edit: October 04, 2021, 04:38:16 pm by mike_mike »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2835
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #951 on: October 04, 2021, 05:47:04 pm »
Yes, the LM358 should be able to easily sink 5mA or more per output.
Lastly, check for any output voltage rise during mains power down.
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 #952 on: October 04, 2021, 07:21:45 pm »
I replaced the 10k resistors with 2k2 resistors and the red and green led's with regular led's.
I made a few quick tests, without any load at the output of the PSU, first test with maximum output voltage and the second with about half output voltage.
Please find attached the screenshots from the oscilloscope.

It's the right way I tested ?

165_002 power on
165_003 power off
165_004 power off
165_005 power on
« Last Edit: October 05, 2021, 03:24:39 am by mike_mike »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2835
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #953 on: October 05, 2021, 07:51:16 am »
That looks good.
I have some 10 turn pots with plastic shafts branded "Bourns"  They did go scratchy but none have had broken resistance wire yet.
When that happens, the PSU's output will jump from zero to full voltage as the pot is turned up.
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 #954 on: October 05, 2021, 08:03:50 am »
For voltage I have a normal single turn pot, but for current I have a 10 turns pot from SR Passives.
Do you suggest adding some extra components in order to protect the load if the pot resistance broke ?
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2835
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #955 on: October 05, 2021, 09:02:42 am »
For voltage I have a normal single turn pot, but for current I have a 10 turns pot from SR Passives.
Do you suggest adding some extra components in order to protect the load if the pot resistance broke ?
The single turn pot sounds much safer for the CV. There is no simple way to protect against broken wire.
If the CC pot fails, it likely wont be as instantly destructive to the load because most of the time the PSU will be operating in CV mode.
But you might not know for a while that the CC pot has failed causing the setting to be your maximum 3A.
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

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14219
  • Country: de
Re: LM324 Power Supply with variable voltage and current
« Reply #956 on: October 05, 2021, 09:52:17 am »
The way the setting is done (at the set voltage side) there should be mot bis problem adding a high value pull down resistors. This would trun down the set voltage or current in case of a open wiper. This would make the scale a bit nonlinear.

Using single turn or multi turn pots has pro and cons. A single pot for the setting can be a bit coarse and difficult to set low values. A multi turn pot is slow to change over the full range.  The version with separate fine an coarse adjust can be tricky with wiper failure.

For the current one could consider a simple toogle switch to choose a upper / lower range (e.g. 1/10 of max).
I currently have a single pot, and it is not really satisfactory to set low voltages (like 5 V or 3.3 V).
Still multiple ranges make the scale more complicated. Still a smaller range of maybe 1/5 can be an option, I currently consider for my supply.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #957 on: October 06, 2021, 07:49:14 am »
Can I continue with the construction of the PSU case ? Are necesary any other modfications ?
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2835
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #958 on: October 06, 2021, 07:51:18 am »
Can I continue with the construction of the PSU case ? Are necesary any other modfications ?
It will be fine,
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Online bingo600

  • Super Contributor
  • ***
  • Posts: 1989
  • Country: dk
Re: LM324 Power Supply with variable voltage and current
« Reply #959 on: October 13, 2021, 05:16:20 pm »
I have been looking a bit on these pages , but can't seem to locate the "Final Schematic".

Is there any pointers to that ?

Does it have a PCB layout or ?

TIA

/Bingo
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2835
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #960 on: October 13, 2021, 08:57:05 pm »
I have been looking a bit on these pages , but can't seem to locate the "Final Schematic".

Is there any pointers to that ?

Does it have a PCB layout or ?

TIA

/Bingo
On this page are schematics of the simple and full versions. And including the following page, PCB screen dumps.
https://www.eevblog.com/forum/beginners/lm324-power-supply-with-variable-voltage-and-current/725/
Let us know what you plan to do in case improvements  can be suggested.
A few pages on, a transformer tap changer is developed.
« Last Edit: October 13, 2021, 09:03:44 pm 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: bingo600

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #961 on: November 28, 2021, 06:52:00 pm »
Hello, I am coming with news about the PSU.
Finally I managed to install it into a case. Please have a look at the photos.

https://ibb.co/mGdJ6X2
https://ibb.co/x3VNsx4
https://ibb.co/T2hn1cs
https://ibb.co/v32sg24
 
The following users thanked this post: ledtester, xavier60

Offline not1xor1

  • Frequent Contributor
  • **
  • Posts: 716
  • Country: it
Re: LM324 Power Supply with variable voltage and current
« Reply #962 on: November 29, 2021, 06:02:10 am »
Hello, I am coming with news about the PSU.
Finally I managed to install it into a case. Please have a look at the photos.

https://ibb.co/mGdJ6X2
https://ibb.co/x3VNsx4
https://ibb.co/T2hn1cs
https://ibb.co/v32sg24

a cyber.... or... maybe a woodenpunk PSU ?  :D
just kidding,  I used to encase electronics in wooden boxes like your ages ago... when I was young
BTW how do you intend to cover it? Remember to leave a way out for the hot air...
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #963 on: December 02, 2021, 03:28:27 am »
I will cover it using a piece of plywood and I will drill some holes for the hot air.
The fan is taking out the air from the inside of the PSU, and it is not blowing the air from outside to the inside.
 

Offline mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #964 on: December 14, 2021, 04:19:16 pm »
Hi! I got a new scope (GDS-1102B), and I wanted to use it for the first time testing the PSU again.
The results are comparable with the old scope, but I wanted to know why it looks more noisy than my old Owon, even if I use the BW Limit (20MHz) ? CH1 = output of the PSU, CH2 = output of the LM555 at PSU Shorter
The last character of the PNG file:
4 = the output with 2.7A switched load (with the PSU Shorter)
5 = with the output shorted (with PSU Shorter)
6,7 = on the R_Shunt with the output shorted (with PSU Shorter)
8 = the output of the PSU, without any load.
« Last Edit: December 14, 2021, 04:50:17 pm by mike_mike »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2835
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #965 on: December 14, 2021, 05:24:37 pm »
 While taking that last reading, turn off the mains to the power supply.
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 #966 on: December 14, 2021, 05:30:16 pm »
With the power supply mains turned off.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2835
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #967 on: December 14, 2021, 05:35:42 pm »
Try adjusting the Time Base and Trigger Level to get a lock on signal. Its frequency might give a clue about the source of it.
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 #968 on: December 14, 2021, 05:46:54 pm »
I adjusted the Trigger Level and Time Base and also the V/div for the CH1 and I got the following screenshots: DS0011, DS0012
It is possible to appear this signal due to long wires and/or radio interference with the scope ?
If I short to ground the CH1 probe: DS0013.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2835
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #969 on: December 14, 2021, 05:54:24 pm »
There looks to be more than one signal. The main one is about 100Mhz, an FM radio broadcast maybe.
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 #970 on: December 24, 2021, 07:24:20 am »
A few more tests using different capacitor values for C3. R5 was 4k7 in all tests. CH1 was connected to the PSU output and CH2 to NE555 output (PSU Shorter). Rload was 9R, Vout was 27V.
1. Missing C4: 0014.png
1358048-0
2. C4=100pF: 0015-16.png
1358054-1
1358060-2
3. C4=470pF: 0018.png
1358066-3
4. C4=560pF: 0019.png
1358072-4
5. C4=820pF: 0020.png
1358078-5
6. C4=1nF: 0022.png
1358084-6
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2835
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #971 on: December 24, 2021, 07:47:14 am »
The last one looks good. You should try to keep the DSO settings the same.
Also set your trigger zero reference to the left side of the screen, if your DSO allows this.
Having the trigger zero reference in the middle wastes a lot of the trace, showing nothing useful.
« Last Edit: December 24, 2021, 07:59:22 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 mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #972 on: December 28, 2021, 04:49:26 pm »
In my project initially R2 was 4k7, but now I modified it to 3k9 as it was in @xavier60 original schematic. With 4k7 the max output voltage was about 27V, now with 3k9 it is 32.77V.
Please find attached the screenshots:
1. CH1 on PSU output, CH2 on 555 output, with Rload = 0 R - 0038, 0039, 0040
2. CH1 on R_Shunt, CH2 on 555 output, Rload = 0 R - 0041, 0042
3. CH1 on PSU output, CH2 on 555 output, Rload = 10R - 0043, 0044, 0045.png

I used a 32Vac/200VA step down power transformer.

« Last Edit: December 28, 2021, 04:51:33 pm by mike_mike »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2835
  • Country: au
Re: LM324 Power Supply with variable voltage and current
« Reply #973 on: December 28, 2021, 11:09:02 pm »
[ Specified attachment is not available ]That's a good response. Changing R2 shouldn't change the compensation.
Did you find the source of the high frequency?
« Last Edit: December 28, 2021, 11:35:32 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 mike_mikeTopic starter

  • Frequent Contributor
  • **
  • Posts: 900
  • Country: ro
Re: LM324 Power Supply with variable voltage and current
« Reply #974 on: December 29, 2021, 03:54:51 am »
No I didn't found the source of the high frequency.
There is an cell phone antenna on a building at about 200-300 meters from my workplace, could it be the reason for the high frequency ?

All the screenshots from my previous reply were made with 20MHz bandwidth limit ON.
« Last Edit: December 29, 2021, 03:58:47 am by mike_mike »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf