Author Topic: Feedback on power supply 0-30V 0-4A  (Read 3627 times)

0 Members and 1 Guest are viewing this topic.

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Feedback on power supply 0-30V 0-4A
« on: July 27, 2019, 04:18:12 am »
Hi,

I'm working on my first power supply 0-30V 0-4A, and I'd appreciate some feedback, specially in two points:

1) Right now the slightest turn of the potentiometer VR1 allows for a lot of current, I'd like to make it more sensible, but I'm not having much luck

2) I want to add a voltage/current meter, I tried a L7805 connected to the second transformer to feed 5V to the meter but the moment I connect the terminals to the output I get an extra volts in the output instead of zero, not sure why.

Also I'd appreciate any comments on the design. Thanks
« Last Edit: July 27, 2019, 04:26:02 am by d4n13l »
 
The following users thanked this post: TheDood

Online Circlotron

  • Super Contributor
  • ***
  • Posts: 3364
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #1 on: July 27, 2019, 04:41:18 am »
IC1B is operating with far too much gain. Put a resistor say 1K from pin 6 to ground and 100nF from pin 7 to pin 6. These values are just starting points and may be way away from optimum. This will roll of the high frequency response of the op amp and hopefully make it more stable. It is most probably oscillating like crazy.
 

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Re: Feedback on power supply 0-30V 0-4A
« Reply #2 on: July 27, 2019, 05:17:09 am »
Hi,

I tried a bunch of resistors values and didn't see any aparent effects on the behaviour. Same for the capacitor.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #3 on: July 27, 2019, 05:23:39 am »
Hi,

I'm working on my first power supply 0-30V 0-4A, and I'd appreciate some feedback, specially in two points:

1) Right now the slightest turn of the potentiometer VR1 allows for a lot of current, I'd like to make it more sensible, but I'm not having much luck

2) I want to add a voltage/current meter, I tried a L7805 connected to the second transformer to feed 5V to the meter but the moment I connect the terminals to the output I get an extra volts in the output instead of zero, not sure why.

Also I'd appreciate any comments on the design. Thanks
How does the voltage regulation work?
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: TheDood

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Re: Feedback on power supply 0-30V 0-4A
« Reply #4 on: July 27, 2019, 05:26:25 am »
It works as supposed to, 0-25V with current resistor values. I think current regulation is working also, just as I mentioned very light changes in the potentioner go from 0 to too much since ground is receiving about 0.9V/0.22ohms allows about 4A. Which is a wide range to cover.
« Last Edit: July 27, 2019, 05:31:52 am by d4n13l »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #5 on: July 27, 2019, 05:51:09 am »
With the PSU unloaded, is the wiper of VR1 able to be smoothly adjusted from 0V upward?
Although likely not related to the problem, I don't understand the function of IC1A.

 Put a small load on the output and confirm that there is a corresponding voltage drop across R2. Check that the voltage drop is being applied properly to IC1B.
« Last Edit: July 27, 2019, 05:56:37 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: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #6 on: July 27, 2019, 06:21:27 am »
IC1A might be fighting IC1B, not allowing the ADJ pin to be pulled down by enough.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Re: Feedback on power supply 0-30V 0-4A
« Reply #7 on: July 27, 2019, 06:36:45 am »
Hi xavier60,

So U2 is adjusted to have -3V in the lower rail, R5 and R6 make a voltage divider with -1.5V give or take that is seen by the non inverting input of IC1A, so the op amp puts the same voltage in the inverting input lowering the output by that much, and since the min voltage of the LM338 is 1.25V it comes down to zero. R11 is used to adjust it properly. If you remove IC1B you have a 0-30V 4A power supply.

For your comment on R2, there won't be voltage drop due to IC1B that keeps the voltage at the value specified by VR1 and so we have constant current.. Not sure about the op amps fighting thought, but I don't think that would be the case, maybe you can elaborate on that.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #8 on: July 27, 2019, 06:52:24 am »
Hi xavier60,

So U2 is adjusted to have -3V in the lower rail, R5 and R6 make a voltage divider with -1.5V give or take that is seen by the non inverting input of IC1A, so the op amp puts the same voltage in the inverting input lowering the output by that much, and since the min voltage of the LM338 is 1.25V it comes down to zero. R11 is used to adjust it properly. If you remove IC1B you have a 0-30V 4A power supply.

For your comment on R2, there won't be voltage drop due to IC1B that keeps the voltage at the value specified by VR1 and so we have constant current.. Not sure about the op amps fighting thought, but I don't think that would be the case, maybe you can elaborate on that.
The R5/R6 divider would make more sense to me if it went to GND rather than the ADJ pin.
Because of the way the circuit looks to me, it seems that IC1A also has control of the ADJ pin?
There must be a voltage drop across R2 corresponding to load current. Like 220mV for a 1A load. This should be checked first if not done so already.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Re: Feedback on power supply 0-30V 0-4A
« Reply #9 on: July 27, 2019, 07:30:38 am »
I'm sort of new to electronics so correct me if I'm wrong but you have the high potential (the output of the LM338) and the low potential (-3V rail), why do you need ground? when you connect two batteries in series you use the extremes of the batteries you don't care about the middle.

The current flowing throught the divider is very small and compensated by R11, as to not affect the adj pin. IC1A input connects to the divider but as I undertand it no current is flowing through it.

The point of IC1B is to not allow the voltage to change at R2 no matter the load. IC1B see in the non inverting input 0.9V tops from the divider. The same voltage is put in the inverting input and so you would allow 0.9V/0.22=~4A max, if you set VR1 to supply 0.1V the max current would be 0.45A.. which is my problem, even thought 0.1 is the low end of the voltage it still supplies high current for small electronic projects, which make it hard to regulate in this circuit.

 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #10 on: July 27, 2019, 07:50:30 am »
I'm sort of new to electronics so correct me if I'm wrong but you have the high potential (the output of the LM338) and the low potential (-3V rail), why do you need ground? when you connect two batteries in series you use the extremes of the batteries you don't care about the middle.

The current flowing throught the divider is very small and compensated by R11, as to not affect the adj pin. IC1A input connects to the divider but as I undertand it no current is flowing through it.

The point of IC1B is to not allow the voltage to change at R2 no matter the load. IC1B see in the non inverting input 0.9V tops from the divider. The same voltage is put in the inverting input and so you would allow 0.9V/0.22=~4A max, if you set VR1 to supply 0.1V the max current would be 0.45A.. which is my problem, even thought 0.1 is the low end of the voltage it still supplies high current for small electronic projects, which make it hard to regulate in this circuit.
I don't think I'll ever make sense of the voltage regulation side. I'll just accept that it works for now.
It sounds like your current regulation is working but not all the way down to 0V output such as when the output is short circuited.
You need to do some testing. Set the current to some low setting like 1A and apply a load with gradually decreasing resistance.
I use a 6Ω 300W rheostat.
After the 1A limit is reached, IC1B should be capable of pulling the ADJ pin down to -1.2V as the load approaches 0Ω.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Re: Feedback on power supply 0-30V 0-4A
« Reply #11 on: July 27, 2019, 06:29:02 pm »
Sorry man, but I think you don't get it. The supply works great as is. It goes from 0 to 30V and 0 to 4A. The problem is that I have a coarse current regulation when I want a fine current regulation. If I adjust R10 to output 0.1V VR1 works great now because the output range it was to work with goes from 0 to ~450mA whereas if R10 outputs 1V it has a range of 0 to 4A. What I'm looking for I guess is a way to allow this fine/coarse tunning for VR1 through the whole 0-4A range.

Also, I have problems adapting the meter display, if I power it from yet another supply, it works great, but if I feed power it it from B3 with a L7805 or something like that it rises the output voltage a few volts. I would like a suggestion on how to power it without having to add yet another supply.
« Last Edit: July 27, 2019, 06:33:58 pm by d4n13l »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #12 on: July 27, 2019, 07:12:14 pm »
You could add a Fine Pot. One way of doing it is to wire the outer pins in parallel and then sum the wipers with 2 resistors say a 10K for the course and a 100K for the fine.
I used 10 turn Pots. They were cheap enough on ebay but I had trouble. I'm not certain if was due to poor quality or bad luck.
I explained what happened here.
https://www.eevblog.com/forum/projects/linear-lab-power-supply/msg2368746/#msg2368746
https://www.eevblog.com/forum/projects/linear-lab-power-supply/msg2388873/#msg2388873
« Last Edit: July 27, 2019, 07:14:12 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: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #13 on: July 27, 2019, 07:38:07 pm »

Also, I have problems adapting the meter display, if I power it from yet another supply, it works great, but if I feed power it it from B3 with a L7805 or something like that it rises the output voltage a few volts. I would like a suggestion on how to power it without having to add yet another supply.
How were you powering the meter from B3 as well as U2? The meter would need a + supply?
What voltage is there across C2 at the moment?
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Re: Feedback on power supply 0-30V 0-4A
« Reply #14 on: July 27, 2019, 07:58:21 pm »
I just connected the a L7805 in parallele with C2.. I didn't realize before that this causes the voltage to come down.. guess I'll try to connected it somehow to B2
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #15 on: July 27, 2019, 08:12:02 pm »
I just connected the a L7805 in parallele with C2.. I didn't realize before that this causes the voltage to come down.. guess I'll try to connected it somehow to B2
You still have options with B3 by using a full bridge split rail rectifier or a 2 diode doubler to give + and - rails depending on how much voltage is needed.
Another option with the CC adjustment is to use a Logarithmic potentiometer which will allow fine adjustment for the low end of the range and coarse for the high end. Most audio Pots are this type.
To find out, turn the Pot to the middle of its range and measure the resistance on each side of the wiper. There will be a large difference with a log Pot.
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: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #16 on: July 27, 2019, 08:39:08 pm »
One more option for the current control is to add a range  switch.
« Last Edit: July 27, 2019, 10:52:55 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 David Hess

  • Super Contributor
  • ***
  • Posts: 17428
  • Country: us
  • DavidH
Re: Feedback on power supply 0-30V 0-4A
« Reply #17 on: July 27, 2019, 11:14:14 pm »
For those not familiar with this design, a simplified example is shown below.

The idea is that the operational amplifier, configured as an instrumentation amplifier (notice the 4 equal valued resistors), copies the voltage across R7 as shown below which is always 1.25 volts as maintained by the regulator, inverts it, and then applies it to the bottom of the resistive divider which sets the output voltage.  So with -1.25 volts applied to the bottom of the divider, the regulator's output can reach zero volts.  R8 helps the operational amplifier sink the current through the resistive divider.



d4n13l, your idea is sound but the implementation of that current control loop has at least one problem.

1. The voltage reference for control of the current is unregulated so the output current is going to follow the ripple voltage at the input of the regulator.  Maybe that is acceptable though.

2. 50 kilohms worst case impedance at the non-inverting input of IC1B may be a problem.  Pin 5 should be bypassed to the bottom of the potentiometer (the node where VR1 and R2 connect) and *not* ground as drawn in the schematic.

3. I think the current regulation loop will be stable but if it is not, Circlotron is wrong about the gain but right about how to add external frequency compensation of IC1B if necessary.  C5 severely limits the bandwidth of IC1B which should make it stable albeit slow.

4. IC1B should be able to to sink the roughly 5.7 milliamps coming from R4.

5. The bottom of R6 should be connected to ground as shown below and not the negative supply.
 
The following users thanked this post: d4n13l, xavier60, soldar

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Re: Feedback on power supply 0-30V 0-4A
« Reply #18 on: July 28, 2019, 08:17:21 am »
Hi David,

Thanks for the reply. About your simplified schematic, you're right R7 voltage is always 1.25V however after some thought I realized that the voltage copied by the op amp is not this 1.25V but the output voltage minus 1.25V, thus allowing the voltage to go to zero. Great! now I can delete the voltage regulator from the second transformer in my schematic.

As for your other comments, from

1. You're right it's unregulated, I don't know a good and efficient way to get 1V regulated from 34V input, I'd love suggestions.
2. If I understood correctly, and you meant to simply delete the connection from the bottom of the pot VR1 to ground, that wouldn't work because the pin 5 would see the voltage from the voltage divider R1-R10 (0-1V) , and I wouldn't be able to regulate the current with VR1.

The current regulation part works and is stable but I get coarse instead fine tunning (I'm not happy about it).
Also the voltage/current meter that I have works with 3-30 input voltage, but I get 34V from B1, I fixed it with a transistor as in shown in the schematic, but I'm not sure how good of a solution it is.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #19 on: July 29, 2019, 01:09:22 am »
It's likely that the meter should be fully referenced to GND. The brand and model of the meter will be helpful.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Re: Feedback on power supply 0-30V 0-4A
« Reply #20 on: July 29, 2019, 01:32:53 am »
I guess is a short of cheap one, the brand is radox, 535-177.

I just discovered that the IC1B is blown :(, probably why I'm having problem with the current regulation, but I'm not sure how that happened, if it was with the current circuit or previously when I was making tests. According to the datasheet the supply voltage for the LM358 is 32V max. which may be other cause :(
« Last Edit: July 29, 2019, 01:35:01 am by d4n13l »
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #21 on: July 29, 2019, 01:49:54 am »
I wonder if the LM358 will work properly if powered from the PSU's output which can be allowed a defined maximum of 27V.
The negative pin would have to be supplied with -5V to satisfy the LM358's minimum supply voltage of 5V.
There might be other tricks to increase the voltage range.
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Re: Feedback on power supply 0-30V 0-4A
« Reply #22 on: July 29, 2019, 01:54:21 am »
Working with 35V from B1 is turning to be a pain, I'll switch to a 12V transformer and see if everything works as expected. Also I could directly connect the display, it's gonna be much simpler.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17428
  • Country: us
  • DavidH
Re: Feedback on power supply 0-30V 0-4A
« Reply #23 on: July 29, 2019, 02:45:30 am »
1. You're right it's unregulated, I don't know a good and efficient way to get 1V regulated from 34V input, I'd love suggestions.

A zener diode shunt regulator would be a big but simple improvement.  Or 1.25 volt bandgap shunt references are inexpensive.  If you do not have anything better, than even an LM317 or LM317LZ with the adjustment pin tied to ground and a 120 ohm or whatever resistor shunting the output makes an instant 1.25 volt reference.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 3034
  • Country: au
Re: Feedback on power supply 0-30V 0-4A
« Reply #24 on: July 29, 2019, 07:13:01 am »
The divided output from a 5V regulator could be used  for the CC reference. The 5V could also power the meter.
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