Author Topic: LM317 Power Supply for Small Amp...  (Read 742 times)

mac

LM317 Power Supply for Small Amp...
« on: January 23, 2023, 07:18:13 AM »
Is it me, or a LM317 PS is not the best choice to feed a 1w to 3w smal amp?

I've been using my 9v and 18v LM317-based PS for decades to experiment with pedals, they are as quiet as a Carl Martin PS I also have.
But recently I noticed that when I used them to power up a small amp like a Deacy on steroids I get an annoying, tiny distortion more noticeable when playing two notes in the middle of the freatboard using single coils and the amp set to clean (like intermodulation in Class B or a hi-freq sawtooth mounted on the signal, can't find the right words).
I always blamed the breadboard, the planetary aligment, the Gov, etc.
I took for granted that the venerable LM317 is king...

Yesterday I was playing with a Class A BJT+OT at 200ma idle,18v LM317 PS.
After an hour of tweaking here and there to get rid off the distortion I stopped for a while. For no reason, after a few seconds my eyes fell on the PS... "what if? naaa, can't be!... it's been built with good filtering, heat sink, and never had noise issues with high gain pedals... but these pedals do not suck 200ma or more..."
I took an old 220v - 12v used for dichroic lamps, added a rectifier, fired up... the annoying distortion was gone.

So...
Both power supplies have a defective filtering, leaky caps, etc,
or under pressure the LM317 is a bit noisy.

Thoughts?

mac
« Last Edit: January 25, 2023, 08:27:49 PM by mac »
mac@mac-pc:~$ sudo apt-get install ECC83 EL84

antonis

Re: LM317 Power Supply for Small Amp...
« Reply #1 on: January 23, 2023, 07:32:13 AM »
There are 2 cases (mainly) for "noisy" LM317..

1. Too much power dissipation [(Vin - Vout) x I]..

2. Too low Vin..


"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..

EBK

Re: LM317 Power Supply for Small Amp...
« Reply #2 on: January 23, 2023, 08:24:19 AM »
2. Too low Vin..

Without knowing more, that's my guess. 


Otherwise....
If you haven't tried it already, you can increase ripple rejection of the regulator by adding a 10μF cap between the adjustment pin and ground.  It may help.



« Last Edit: January 23, 2023, 08:44:47 AM by EBK »
  • SUPPORTER
Technical difficulties.  Please stand by.

antonis

Re: LM317 Power Supply for Small Amp...
« Reply #3 on: January 23, 2023, 03:38:19 PM »
In case of proposed by Eric cap implementation, place a diode across R1 for cap safely discharge in case of short-circuited output.. :icon_wink:

"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..

Rob Strand

Re: LM317 Power Supply for Small Amp...
« Reply #4 on: January 23, 2023, 03:55:07 PM »
Well it could be many things:

Checkout,
https://pdf.datasheetcatalog.com/datasheet_pdf/national-semiconductor/LM317AS_to_LM317MP.pdf

Missing surround caps (see datasheet, first page)
-  >= 100nF on input supply *close* to device; otherwise risk of oscillation
-  >= 1uF on output; datasheet says for improved transisients, but maybe it could oscillate as well
-  the 10uF EBK mentioned

The LM317 current limiting is probably kicking in on the peaks.  The way current limiting works is it drops the output voltage to the point where the current is maintained with the load.  You can imagine if the whole power rail is dipping down (to say 50% voltage) while you are playing it's going to do some weird stuff.   

If you have a preamp on the same rail then the modulated supply voltage will go to the preamp.   In this case to need to supply the preamp via a separately filtered rail,  for example a resistor + cap, or a diode + resistor + cap.

A year or two a go a forum member built an amplifier with a regulator on the power supply and he got quite a few weird effects cause by the current limit.   He ended up splitting/filtering the preamp supply.  Maybe this on,
https://www.diystompboxes.com/smfforum/index.php?topic=126501.0

When you use a straight rectifier and filter there is still some dipping at the peaks but the drop dips are quite small due to the large filter caps.    No current limit at all other than the transformer's natural regulation

You can try putting larger caps on the output of the regulator but if you need crazy large ones then it's a sign the design with the LM317 is going off course.

If you want to use large output caps on the regulator you need to add yet another diode to the LM317, see fig 3 in the datasheet.
« Last Edit: January 23, 2023, 04:33:22 PM by Rob Strand »
Send:     . .- .-. - .... / - --- / --. --- .-. -

mac

Re: LM317 Power Supply for Small Amp...
« Reply #5 on: January 23, 2023, 05:43:53 PM »
Both PS are the "full version" with caps, diodes, heat sink.
There is a fixed 2200uf 50v cap soldered on the power jack that goes to the breadboard.

Quote
There are 2 cases (mainly) for "noisy" LM317..

1. Too much power dissipation [(Vin - Vout) x I]..

This amp draws 200ma idle, (25-18)v*0.2a=1.4w, more while playing.

Quote
2. Too low Vin..

The 18v is built around a 220VAC to 18vAVC, 25VDC. Go to 1 :-)

Quote
In this case to need to supply the preamp via a separately filtered rail,  for example a resistor + cap, or a diode + resistor + cap.

The preamp is separated from the power amp --> 1k + 330uf to gnd. I always do this.

I guess it's a combination of the way the chip works when running at half speed, as Rob and Antonis noted.

Quote
A year or two a go a forum member built an amplifier with a regulator on the power supply and he got quite a few weird effects cause by the current limit.   He ended up splitting/filtering the preamp supply.  Maybe this on,
https://www.diystompboxes.com/smfforum/index.php?topic=126501.0

Missed that. Nice build.

mac
mac@mac-pc:~$ sudo apt-get install ECC83 EL84

antonis

Re: LM317 Power Supply for Small Amp...
« Reply #6 on: January 24, 2023, 06:06:35 AM »
The 18v is built around a 220VAC to 18vAVC, 25VDC.

I presume 18VAC secondary is rated at double the regulator pass current, at least.. :icon_wink:
"I'm getting older while being taught all the time" Solon the Athenian..
"I don't mind  being taught all the time but I do mind a lot getting old" Antonis the Thessalonian..

PRR

Re: LM317 Power Supply for Small Amp...
« Reply #7 on: January 25, 2023, 12:09:12 AM »
> This amp draws 200ma idle, ..., more while playing.

My car uses one gallon per hour idle, more when racing.

What is "more"?  202mA? 2,000mA?

Yes, it is hard to measure the dynamic power of an audio amp. For small stage-amps, you might fit the amp with a BIG speaker from a 50 Watt amp, put the guitar and amplifier into a bass feedback howl, then read current. That's about the absolute max, and stage amps may go there every night, though most "clean" audio won't.


  • SUPPORTER

Rob Strand

Re: LM317 Power Supply for Small Amp...
« Reply #8 on: January 25, 2023, 04:32:01 AM »
Quote
This amp draws 200ma idle, (25-18)v*0.2a=1.4w, more while playing.
If you tweak the 39 ohm resistor (or the other resistor in the divider) you could probably drop the idle current without affecting the sound.  It sets the VBE voltage of the output transistors.  Not all transistors have the same VBE's, not even the same part number.  Technically the bias voltage should be temperature compensated so the idle current doesn't creep-up when the amp is pushed.
Send:     . .- .-. - .... / - --- / --. --- .-. -

mac

Re: LM317 Power Supply for Small Amp...
« Reply #9 on: January 25, 2023, 07:37:53 AM »
Quote
What is "more"?  202mA? 2,000mA?

The power amp is Class A with a 4.7 ohm emitter resistor. DIY output tranny is at its best at about 150m to 200ma idle, ~18v. That's 0.75v to 1v across the 4.7 resistor.
I always measure the "instant voltage" :icon_rolleyes: while playing with my the cheap chinese DMM... playing clean hardly reaches 1.5v, 300ma... let's say 400ma as the DMM is slow.
That's below the 1.5A limit of the LM317... or not?
A better reading: I can touch the TIP41C even after a few minutes of full drive. My cat belly is warmer ;D

Quote
If you tweak the 39 ohm resistor (or the other resistor in the divider) you could probably drop the idle current without affecting the sound.  It sets the VBE voltage of the output transistors.  Not all transistors have the same VBE's, not even the same part number.  Technically the bias voltage should be temperature compensated so the idle current doesn't creep-up when the amp is pushed.

If you mean the regulator divider I have a 317 to experiment with.

Quote
The LM317 current limiting is probably kicking in on the peaks.  The way current limiting works is it drops the output voltage to the point where the current is maintained with the load.  You can imagine if the whole power rail is dipping down (to say 50% voltage) while you are playing it's going to do some weird stuff. 

This forgotten post made me put the 317 in the suspect lineup :icon_lol:

https://www.diystompboxes.com/smfforum/index.php?topic=53241.msg404047#msg404047

mac
mac@mac-pc:~$ sudo apt-get install ECC83 EL84

Rob Strand

Re: LM317 Power Supply for Small Amp...
« Reply #10 on: January 25, 2023, 03:21:36 PM »
Quote
If you mean the regulator divider I have a 317 to experiment with.

Actually it's my misunderstanding.  I thought you built a Deacy amp but you are actually talking about a class A amp.
Send:     . .- .-. - .... / - --- / --. --- .-. -

mac

Re: LM317 Power Supply for Small Amp...
« Reply #11 on: January 25, 2023, 04:11:04 PM »
Quote
Actually it's my misunderstanding.  I thought you built a Deacy amp but you are actually talking about a class A amp.

The 39r of the Mullard schematic, minutes after I replied to you it came to my mind  :icon_lol:

Quote
I presume 18VAC secondary is rated at double the regulator pass current, at least.. :icon_wink:

Checked |/

mac
mac@mac-pc:~$ sudo apt-get install ECC83 EL84

Rob Strand

Re: LM317 Power Supply for Small Amp...
« Reply #12 on: January 25, 2023, 04:28:02 PM »
Quote
The 39r of the Mullard schematic, minutes after I replied to you it came to my mind  :icon_lol:
Yes, that one  ;D    It tunes the idle current of the two output transistors.
Send:     . .- .-. - .... / - --- / --. --- .-. -