Print Page | Close Window

Gain formula?

Printed From: the12volt.com
Forum Name: Car Audio
Forum Discription: Car Stereos, Amplifiers, Crossovers, Processors, Speakers, Subwoofers, etc.
URL: https://www.the12volt.com/installbay/forum_posts.asp?tid=45379
Printed Date: May 11, 2024 at 7:33 AM


Topic: Gain formula?

Posted By: 97Pathy
Subject: Gain formula?
Date Posted: December 16, 2004 at 8:43 PM

What is that special math formula for setting gains properly?  And can you describe how everthing should be , like on the HU, and stuff. 

Thanks




Replies:

Posted By: Poormanq45
Date Posted: December 16, 2004 at 8:52 PM
First, put in a CD with music that you usually listen to, or turn on your favorite radio station(it's always best to tune to your own preferences)

I usually turn the HU to 75%~85%(never any higher the HU may start clipping), with the gain on the amp turned all the way down.

And then you turn the gain up slowly, until you start to hear distortion.

Then you turn the gain down slowly until the distortion goes away.

That's about it.

Oh, and if you are tuning the gain on an amp for a sub, I would suggest playing a CD with alot of bass in it after you finish tuning the gain. If you notice any distortion, turn the gain down until it goes away.

-------------




Posted By: 97Pathy
Date Posted: December 16, 2004 at 9:20 PM
Thats all fine and dandy if you like hunting in the dark, , but theres an actual formula i have seen on here a while back.  Im looking for that.   It has something do with measureing the voltage on the speaker outputs.




Posted By: Poormanq45
Date Posted: December 16, 2004 at 9:40 PM
Oh, lol. I thought you just wanted to know how to set the gain posted_image

I havn't really heard of a specific formula for setting the gain. The problem is that each individual amplifier may put out different voltages at equal power.

Well, I do know one thing that measuring the Voltage of the speaker outputs will tell you. You can find out when/if the amplifier starts/is clipping, as there will be a large voltage spike/dropposted_image

-------------




Posted By: haemphyst
Date Posted: December 17, 2004 at 12:40 AM
No such thing as a "formula"... 'cause if you set an output voltage for the RMS power, it may actually be overpowering the driver attatched to the amp outputs... example - say you have an amp rated 100 watts, which is 20 volts RMS. Let's say you have set the output voltage to 20 volts RMS, but you now attach a speaker rated only 50 watts... what's gonna happen? You're gonna BLOW THAT SPEAKER, if you try to run even CLOSE to the rated output of the amp - leaving you with the question - "But why did it blow? My DVM said it was set correctly..."

Take the above method - you'll be safer in the long run, because you will also be able to hear the speaker complaining, in case that might happen first... If you do not have an oscilloscope to actually VIEW when the gain stages are clipping, don't try using a DVM... you will NEVER be able to set the gain correctly with a DVM. Granted, you can set the output for the maximum RMS output of the amplifier, but that tells you nothing.

Using the front-to-back method of setting gain will also allow you the best possible signal to noise ratio, and maintain the minimum distortion through the system's entire signal path.

-------------
It all reminds me of something that Molière once said to Guy de Maupassant at a café in Vienna: "That's nice. You should write it down."




Posted By: Lizardking
Date Posted: December 17, 2004 at 12:54 AM

So many people have their amp gains set wrong, and to be honest setting them by ear is quite a crapshoot. Doing it properly with a multimeter is actually quite simple.

Here's how you do it:

Set head unit volume to 3/4 of maximum. Turn off all eqs/presets in the head unit.

DISCONNECT SPEAKERS

P = Power in watts
I = Current in amperes
R = Resistance in ohms (effectively the nominal impedance)
V = Potential in volts (Voltage)

Knowns:
Resistance (nominal impedance of your speakers)
Power (desired wattage)

Unknowns:
Voltage (we'll measure this)
Current

Formulas:
P = I*V (formula for power)
V = I*R (Ohm's law)

So after a little substitution to get Voltage in terms of simply power and resistance we get

V = square_root(P*R)

So, for example, say you have a 4 ohm load presented to a 150 watt amp.

V = square_root(150*4) = 24.5 volts

This means you should increase the gain until you read 24.5 volts AC on the speaker outputs of your amplifier.

As a source, use a sine wave recorded at 0db at a frequency within the range you intend to amplify. You can generate tones in cool edit or use a program such as NCH tone generator. (credit for NCH to imtfox, IIRC)

Additionally, you could use a scope to actually check if the signal is clipping, but I'm not going to get into that here as I doubt very few people have access to that type of equipment.





Posted By: kklagge
Date Posted: December 17, 2004 at 7:48 AM
So, if I understand what you just posted Lizardking (do you post on Ecoustics under a different name...this post looks somehwat familiar)...

If my amp will do 150 per channel RMS and I'm using 4ohm components I want to set the gains so that EACH speaker output will read 24.5 volts (will there be any slight difference between the 2 speaker outputs?)

Also, my sub amp will do 450 per channel @1ohm so I would need to do the same routine for that but I'll want to read 21.2 volts AC from those speaker outputs.

Is this correct?




Posted By: stevdart
Date Posted: December 17, 2004 at 7:52 AM

That was very well said, Lizardking.  97Pathy, all the responses above are correct.  In reality, it is a bit of a crapshoot either way.  But it's good to know the theory behind setting gain, and use the tools at your disposal to get the best results.  For one thing, the very first thing you do........setting the head unit volume output at 75%........is always a crapshoot.  There is a fine line there as well as everywhere else as to where clipping begins.  It's hard to hear, and difficult to test for.  In your own car, when you have the time to work on the system from time to time, you may want to go over these steps more than once.  For instance, one head unit may start sounding crappy at 2/3 volume while another is fine to 85%.  Finding that perfect stopping place would result in the best S/N ratio, giving you the best performance from your amplifier.  And keep in mind this is done using the deck's power alone.

Test tones:  a crapshoot if you record them yourself.  Less of a crapshoot if you buy a CD with professionally recorded tones.  A sine wave tone is necessary for a steady reading of volts;  with music sources, you will get every number in the book.

RMS output:  a crapshoot, as well.  Same goes for nominal impedance of the speaker load....close but not exact.

DMM that you are using:  has an internal resistance.  Touch probes to find the reading and add that to the number you are looking for.  My meter reads .8 ohms internally, so I have to consider that when doing precise measurements.

All in all, a good method to use is to use Lizardking's method of using the meter, then... use the 'by ear' method.  You will, remember, have used the 'by ear' method to select the loudest clean volume on the head unit to begin with.   The meter will help you pinpoint a voltage output, and later your ears will tell you if that is correct.  If it doesn't sound clean at the loudest volumes, the amp gain can be turned down (to a less sensitive setting).

https://www.jlaudio.com/tutorials is good visual help for setting gain using the meter.





Posted By: stevdart
Date Posted: December 17, 2004 at 7:56 AM
kklagge:  Yes, you are correct:  each set of speaker terminals.  And yes there usually is a slight difference between the two.  For sub amp, the set of speaker terminals that the sub is connected to.




Posted By: kklagge
Date Posted: December 17, 2004 at 8:01 AM
So if there is a slight difference in the 2 speaker terminals then set the gain so that neither one goes over that 24.5 volts?




Posted By: stevdart
Date Posted: December 17, 2004 at 8:03 AM
Right, to even the balance, err on the side of caution.




Posted By: kklagge
Date Posted: December 17, 2004 at 8:05 AM
Thanks for your help....I can just buy a multimeter at Radio Shack, right? Or is one brand better than another?




Posted By: stevdart
Date Posted: December 17, 2004 at 8:21 AM
DMM=digital multimeter.  I have one from Sears hardware, about $25 to $40.  Radio Shack should have a good selection, too.  These are not true RMS meters, which cost considerably more, but will get the job done and provide you a valuable tool for the toolbox.




Posted By: haemphyst
Date Posted: December 17, 2004 at 10:52 AM
OK, I'll give in... yep, everything everybody has said above is correct. I will continue to stand by my previous suggestion, and never blow a speaker. If you are overpowering you speakers (meaning, running a higher powered amplifier than the speaker is rated for) you ARE going to blow your speakers if you insist on setting the gains to "the RMS output voltage of the amplifer". If you do this, number one you will already be running beyond the speakers rating, but then, while the speaker is distorting due to overpowering, you are never going to hear the additional distortion of the amplifer clipping, if it gets that far... and we all know what this does to a speaker. The clipping, in addition to overpowering your speaker to start with, will leave you with the question of WHEN, not IF...

Also, even IF you buy an amplifer with the power exactly matched to the driver you will be connecting to it, and you are going to be amplifying your, say Diamond Components with one amp, AND your Eclipse 87000 series subwoofer with another amp, the efficiencies of these speakers will NOT be matched, the components will be louder... so as you turn up your volume, the gain curves will not be linear, the subwoofer amp will have to be a faster gain slope to reach RMS output at the same time the components do. Now, the sub amp will be putting out more power, even though it *IS* RMS power, the components are still likely to be louder, necessitating the user to "turn up the bass", or whatever - driving the sub amp into clipping, again, increasing the chance of early woofer failure. If you think about all of the points raised above, I think you will see I am right, and in a multi-amped system, the DMM method is TRULY a waste of time, and NOT the correct way to do it. Personally, I use an oscilloscope to discover the clipping point of the headunit, set the gain of the amplifier for the LEAST efficient speaker in the system, running the amp to JUST where the driver starts to complain at the resonant frequency of that driver, then I use an RTA to set the gains on the remaining drivers in the system. I also am a fan of overpowering a system, often running an amplifier rated for at LEAST twice the rated RMS power of the driver. Your RMS output voltage will change once you drop a speaker on the terminals. I do it this way, because a speaker is a highly reactive device, and you use the resonant frequency of the driver under test because this is where maximum mechanical motion occurs, with minimum power input. (I also tri-amp my existing system, AND soon will be quad-amping it... The DMM method would ABSOLUTELY GUARANTEE a blown driver...) But you guys go ahead and do it the way you want... I don't know what I'm talking about... While the DMM method is probably pretty safe, I still feel the ear is a far more sensitive measuring device, and will also give you FAR better warning as to when the amplifier or the speaker is driven to far.

-------------
It all reminds me of something that Molière once said to Guy de Maupassant at a café in Vienna: "That's nice. You should write it down."




Posted By: Lizardking
Date Posted: December 17, 2004 at 11:07 AM
I can't take the credit for that formula. I guy at www.sounddomain.com came up with it.. I used this formula and know my subs and full range sound so much better..




Posted By: DYohn
Date Posted: December 17, 2004 at 11:16 AM
... which is why I always recomend using loudspeakers rated for 2X to 3X the RMS power of the intended amplifier.  We call that a safety margin.  Matching levels by ear as haemphyst sugegsts is far preferable to simply setting up all amps to produce their maximum power levels and rolling (unless you have an RTA at your disposal or unless you have mathematically pre-matched all speakers and power ratings to create the proper blend before you even began the install.)

-------------
Support the12volt.com




Posted By: Poormanq45
Date Posted: December 17, 2004 at 1:42 PM
"... which is why I always recomend using loudspeakers rated for 2X to 3X the RMS power of the intended amplifier. We call that a safety margin. "

That does not really matter though. If the amplifier starts clipping, I can Guarantee you that you will blow most drivers.

-------------




Posted By: DYohn
Date Posted: December 17, 2004 at 6:59 PM

Poormanq45 wrote:

"... which is why I always recomend using loudspeakers rated for 2X to 3X the RMS power of the intended amplifier. We call that a safety margin. "

That does not really matter though. If the amplifier starts clipping, I can Guarantee you that you will blow most drivers.

Amplifier clipping has more to do with the installer and the system setup than anything else (except maybe very poorly made amplifiers)... but if the thermal rating of the loudspeaker voice coil is at least 2X the rated amplifier RMS output, there is no way the amp can "blow" the speaker.  A 100% clipped output (AKA square wave) is 1.414 times the voltage of the full clean RMS output, or approximately 2X the same power.  So, if your loudspeaker is rated for 200 watts and your amp is rated for 100 watts and you bone-headedly overdrive the amp into 100% clipping, the loudspeaker will be driven near its limits and will get hot and will make non-musical noises, but it will not blow.

Now to contradict myself, you could "blow" a poorly made speaker by driving it past its mechanical limits at its max power rating... but that's more a problem with some designs than a clipping issue. 

The most dangerous situation is using an amp with the exact power rating of a loudspeaker (and thinking you are safe) and then not being able to recognize and prevent clipping.  THEN you can toast a loudspeaker pretty quickly.  Of course using an over-powered amp can also destroy a loudspeaker with no clipping at all, but people who intentionally set up systems like this GENERALLY know what they are doing and don't overdrive them.



-------------
Support the12volt.com




Posted By: kfr01
Date Posted: December 17, 2004 at 7:16 PM
I agree with DYohn here. There's a nice article about this explaining why on www.bcae1.com. It is titled, "Too Little Power." Poormanq and others, check it out if you're interested.

I also agree 100% w/ haemphyst's gain setting method. Lizard, what are you doing listening to people at sounddomain for? ;-)

-------------
New Project: 2003 Pathfinder




Posted By: stevdart
Date Posted: December 17, 2004 at 7:46 PM

haemphyst wrote:

OK, I'll give in...

Now that'll be the day!   lol   Before I move to strike my testimony from the record, I will state that there are some basic presumptions involved.  Anybody who is so inclined to set his system up accurately (and we know that not everybody is) is presumed to also have first made sure that he isn't setting up a 600 watt amplifier for a 300 watt speaker!  So let's give our setup guy this benefit of the doubt...

...that a lot of people can't tell by ear what they can see on a meter.  Lack of time and experience, if you will...

...and if we also presume that a setup by this RMS voltage output would result in the highest amount of voltage allowed, not a level that can be increased but only decreased if or when clipping or distortion is later detected by ear (as I mentioned earlier...)

.....then if that much can't be allowed in this court, then I reckon I have spent about 14 hours over the past 10 months posting this same information on this forum and nobody told me to quit!

There, that makes me all better.   lol





Posted By: Lizardking
Date Posted: December 17, 2004 at 11:33 PM
All I know is I used the method and it worked for me!! My system sounds incrediable, of course I'm not using cheap components.




Posted By: Lizardking
Date Posted: December 17, 2004 at 11:35 PM

My specs for those wondering!!

"Eclipse Approaching Perfection"

04 Nissan Titan King Cab SE 4X4
Smoke/Graphite, Born on 11-05-2003
Options- RF With Bench, Off-Road Package, Utility Bed Package
Add On's- Nissan Bug Deflector, Nissan Splash Guards, Nissan All Season Mat's, Nissan Step Rails, Nissan Tow Hitch, Banks Monster Exhaust, Volant CAI, Garmin 2620 GPS, Astrostart 5204 Remote Start/Security, Kenwood Excelon KVT-915DVD, Kenwood Sirius Tuner, Eclipse Subs SW8122DVC 12's, Diamond Audio Components M661, Diamond Audio Coaxials M361I, Eclipse DA7232 2 Channel Sub Amp, Eclipse Amp 5422, 1.0 Farad Stinger Cap, 7inch LCD'S (Eigervision) In Headrests, Extreme Dynamat (all doors/roof/back wall)





Posted By: daze
Date Posted: December 17, 2004 at 11:41 PM
Wow I cant believe out of all those posts, there was no mention of an Oscilloscope !? That is the best way possible but not everyone has one off hand !




Posted By: Lizardking
Date Posted: December 17, 2004 at 11:49 PM
I think the issue is getting our hands on one!! lol




Posted By: stevdart
Date Posted: December 17, 2004 at 11:54 PM
daze, this would be a good thread, then, to describe setting gain using an oscilloscope...doncha think?  Can it be done without using the RTA that haemphyst and DYohn touched on?




Posted By: flynntech
Date Posted: December 19, 2004 at 3:16 PM

The best products for you mobile electronics guys would be the handheld O-scopes. They are comming down in price and easy to use.

The Fluke color triple trace is my favorite, but at $800-$1000 I won't be purchasing that anytime soon.

I have an old school HP dual trace scope and some old school 1960's sound generator. Both of these items put together take up a bit of space, I would need a cart to use them with a car. I use these to test amps inside for now, someday I will upgrade to something more compact and modern.





Posted By: haemphyst
Date Posted: December 19, 2004 at 9:43 PM
stevdart wrote:

haemphyst wrote:

OK, I'll give in...

Now that'll be the day!   lol  



Sweet... I made the list...

haemphyst wrote:

...Personally, I use an oscilloscope to discover the clipping point of the headunit, set the gain of the amplifier for the LEAST efficient speaker in the system, running the amp to JUST where the driver starts to complain at the resonant frequency of that driver, then I use an RTA to set the gains on the remaining drivers in the system.


I always use an o-scope, especially for the first gain stage, which is the head-unit, then I follow the above steps to set the rest of the gains in the system...

-------------
It all reminds me of something that Molière once said to Guy de Maupassant at a café in Vienna: "That's nice. You should write it down."





Print Page | Close Window