Author Topic: Another LM338 lab power supply build.  (Read 5553 times)

0 Members and 1 Guest are viewing this topic.

Offline sangvikhTopic starter

  • Contributor
  • Posts: 26
  • Country: no
  • Join the resistance!
Another LM338 lab power supply build.
« on: August 07, 2016, 07:40:06 pm »
Just wanted to show off my new power supply build.
It is heavily inspired by the power supply build in the videos by Dave Jones. And i have thrown in a couple of ideas of my own.

It is using an lm338 regulator powered off a laptop brick. The cooling will be provided by an old Intel CPU heatsink, i have those laying around all over the place.
I'm using a 555 negative voltage charge pump to deliver a negative voltage rail for driving this down to 0 volts.
Had to do some dicking around with the constant current circuit. Connected the emitter of the current control transistor to the negative rail.
DUH, now i had current flowing through the base because of the voltage difference.
Connected the supply to the current sense opamp to the negative rail . This also made me able to read lower currents, as the output does not go all the way to the ground rail.

The voltage reference is a REF02, and it feeds into the inverting input of an opamp to generate the negative voltage reference. This feeds into a 6.8k resistor before it goes to the pot.
I have also ordered an AD620 to see if i can improve the current shunt accuracy. It probably doesn't matter in this setup anyways, but it's nice to have something to tinker with.

There's also an arduino nano in there for reading voltage and current, and maybe eventually including logging, wireless etc.
The protection diode is a beefy SB560 i had laying around; 5A, 150A peak. Should protect it from most anyting.

I have also designed a case in solidworks that i will 3d print.


BUT looking at datasheets, it looks like the LM338 has higher thermal resistance than the LM317 (4 vs 3 degrees) that will mean less current at lower voltages. I'll have to test it out, LM338s are dirt cheap! Nothing like the LT3080 which costs about as much as this entire build.

« Last Edit: August 07, 2016, 08:42:27 pm by sangvikh »
 

Offline sangvikhTopic starter

  • Contributor
  • Posts: 26
  • Country: no
  • Join the resistance!
Re: Another LM338 lab power supply build.
« Reply #1 on: August 07, 2016, 08:21:45 pm »
I've devised a way of getting a -1,25 to 5v signal out of a 0-5v from the arduino. Should test it out whenever i get the time.

OOPS, forgot the values in the voltage divider. 10k and 40k.


Does anyone know of voltage limitations on the vcontol pin of the lm338? Just read about the lt3080 blowing up, and have been trying for hours to find anything similar on the lm317/338
« Last Edit: August 08, 2016, 01:24:31 am by sangvikh »
 

Offline sangvikhTopic starter

  • Contributor
  • Posts: 26
  • Country: no
  • Join the resistance!
Re: Another LM338 lab power supply build.
« Reply #2 on: August 12, 2016, 11:11:19 am »
Need to add heatsinking on the 12v regulator. It blew up when i added the fan.
Aaaand it  took out the arduino. I works slightly, when powered from usb, but the analog inputs is gone.

Well, i've added a bit of scrap metal to the regulator until the heatsinks arrive from china.

Now to desolder the arduino and add a new one  |O
« Last Edit: August 12, 2016, 12:12:02 pm by sangvikh »
 

Offline ZeTeX

  • Frequent Contributor
  • **
  • !
  • Posts: 610
  • Country: il
  • When in doubt, add more flux.
Re: Another LM338 lab power supply build.
« Reply #3 on: August 12, 2016, 01:52:47 pm »
Need to add heatsinking on the 12v regulator. It blew up when i added the fan.
Aaaand it  took out the arduino. I works slightly, when powered from usb, but the analog inputs is gone.

Well, i've added a bit of scrap metal to the regulator until the heatsinks arrive from china.

Now to desolder the arduino and add a new one  |O
How much power does the 7812 has to dissipate? (Vin-Vout)*Iout
                                                                                (Vin-12)*Iout
« Last Edit: August 12, 2016, 01:59:34 pm by ZeTeX »
 

Offline sangvikhTopic starter

  • Contributor
  • Posts: 26
  • Country: no
  • Join the resistance!
Re: Another LM338 lab power supply build.
« Reply #4 on: August 12, 2016, 02:33:59 pm »
I have not measured the current, but the fan is rated at 0.6A at 12v.
The rest of the circuit doesn't consume all that much; 0.2A perhaps.

Input voltage is 19V. So that adds up to 5.6W, no wonder the poor chip died.

Maybe i should get a hold of this thing: https://www.adafruit.com/product/1085
16 bit ADC would mean microvolt resolution. Although it's fine as it is now. 5mA and 20mV ish per bit.

It is mostly done now, all that remains is printing the enclosure.
« Last Edit: August 12, 2016, 04:00:55 pm by sangvikh »
 

Offline dave_j_fan

  • Regular Contributor
  • *
  • Posts: 169
  • Country: in
Re: Another LM338 lab power supply build.
« Reply #5 on: August 14, 2016, 02:00:14 pm »
open up the lappy smps ...
u will see a OPto that makes 19V at the final stage ...
add a 5k pot to the led and waaah !
we have 30V !

I have done that on  a 12V SMPS ... all smps are almost same

CAREFUL: the last filter cap can blow .. check if it has 50V before doing that
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2652
  • Country: us
Re: Another LM338 lab power supply build.
« Reply #6 on: August 14, 2016, 02:29:13 pm »
Put your fan before the 12v regulator.  Then add a resistor in series with the fan the drop the extra voltage and limit the current.
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: Another LM338 lab power supply build.
« Reply #7 on: August 14, 2016, 02:30:58 pm »
Put your fan before the 12v regulator.  Then add a resistor in series with the fan the drop the extra voltage and limit the current.
Better yet, build a constant current source using a LM317. This will keep the fan speed constant even if the voltage changes.

Edit: Build a 12V voltage regulator using the LM317 and make that power your fan. This will keep the fan speed constant even if the voltage changes.
« Last Edit: August 14, 2016, 02:50:18 pm by Kalvin »
 

Offline sangvikhTopic starter

  • Contributor
  • Posts: 26
  • Country: no
  • Join the resistance!
Re: Another LM338 lab power supply build.
« Reply #8 on: August 14, 2016, 07:20:28 pm »
The input voltage doesn't change much anyway.

If i mod the supply to get 30V i will definetely have to use a preregulator, maximum thermal for this design is 1-1,5A at 5v or lower ish. If i blow up the regulator, i will try adding 2 more in paralell. Then i should be able to run 3A constantly.

And using a dropping resistor to the fan instead of powering it through the regulator isn't a bad idea actually!

And a 12V regulator using a LM317 is what i am using. But i don't have a separate one for the fan. Maybe i should run a separate lm317 using the arduino to control the fan speed?
I tried PWMing the supply voltage to the fan, and it's too noisy. I can use that transistor for powering on and off and try adding another transistor that will pwm the control pin on the fan.
 

Offline sangvikhTopic starter

  • Contributor
  • Posts: 26
  • Country: no
  • Join the resistance!
Re: Another LM338 lab power supply build.
« Reply #9 on: August 27, 2016, 01:40:26 pm »
More troubleshooting! (But that's the fun about doing projects like this, right?)

Got the lm334, used it to load the lm338 to 5mA by sinking it to the negative rail. Works perfectly with no load down to 0v now.

Managed to blow the lm338 up during moneytesting. shorting it repedeatly at 15v. Maybe i should reduce the capacitane on the set pin as much as i can? I'm using 10uF right now(although my multimeter measures 20uF, must be the shitty x5r capacitor i'm using)
I have no clue about what's going on in the regulation loop, as I don't have an oscilloscope.

I will add two more lm338's to share the load. Should make it 3A capable at all voltages.

I also noticed that the current reading on the arduino doesn't work when i short the output. It works fine with a 10 ohm load.
 

Offline oldway

  • Super Contributor
  • ***
  • !
  • Posts: 2172
Re: Another LM338 lab power supply build.
« Reply #10 on: August 27, 2016, 07:24:09 pm »
Quote
Need to add heatsinking on the 12v regulator. It blew up when i added the fan.
Are you sure of this ?
7812 has thermal protection and shut down output current when overheated without being damaged.
 

Offline sangvikhTopic starter

  • Contributor
  • Posts: 26
  • Country: no
  • Join the resistance!
Re: Another LM338 lab power supply build.
« Reply #11 on: August 27, 2016, 10:31:30 pm »
It's an LM317, not an 7812. But this should have protection also. Are there other ways the regulator could have let the magic smoke escape?
And i'm sure i managed to blow it up. Twice in fact. The first time it happened was when i didn't notice i had it plugged in and started soldering  :-DD
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf