attenuator dB to reistance calculation

Status
Not open for further replies.
Hi!

I have a project in which I'd like to use this pot:

http://www.partsconnexion.com/prod_pdf/tkd_cp600.pdf

There is a list of attenuations in dB that I'd like to convert to a pair of resistances (series and shunt) so I can plug them into a simulator. I don't have a pot on me, but it seems that this can be done using some math. However, I'm not sure how to do it.

Perhaps someone might be able to steer me in the right direction?
 
dB = 20 log ( R2 / (R1 + R2) ), where R1 is series resistor and R2 is shunt resistor. Potential divider theory, plus definition of voltage ratio dB.

Starting from dB, divide by 20, take the antilog. This gives you the ratio R2/(R1+R2). You then pick one resistor and some trivial algebra gives you the other resistor.
 
The pot value would be your 10k, or whatever. That means R2 = 10k -R1. Plug that into the equation DF96 gave you, and you can calculate R1. R2 of course follows then.

Edit: so for say a 6db step, you know that log (R1/(R1+R2)) = 6/20 = 0.3
W7 calculator tells me that in this case, R1/(R1+R2) = 0.523 or thereabouts.
Since R2 = 10k - R1 (your choice), R1/(R1 + 10k - R1) = 0.523 which gives us R1 = 5.23k. Thus R2 = 4.77k.

Reality check: we know that -6dB is about half voltage -> result seems to be correct.

jan
 
Last edited:
janneman said:
Edit: so for say a 6db step, you know that log (R1/(R1+R2)) = 6/20 = 0.3
W7 calculator tells me that in this case, R1/(R1+R2) = 0.523 or thereabouts.
Since R2 = 10k - R1 (your choice), R1/(R1 + 10k - R1) = 0.523 which gives us R1 = 5.23k. Thus R2 = 4.77k.

Reality check: we know that -6dB is about half voltage -> result seems to be correct.
Jan, I think you need to buy a new battery for your calculator. -6dB is a voltage ratio of 0.5012, not 0.523. As -6dB is almost exactly half voltage we ought to expect resistor values which are almost equal, not 5% up and down. Your reality check needs a reality check!
 
Thanks guys! First, so does the 0 degree / 0 decibel on the datasheet in post #1 mean the spot when the knob is fully counter-clockwise and there is 0dB attenuation, or does that mean the resulting signal is 0dB? I'd suspect the values to be negative if it's the former, but I'm a bit confused. This changes how I situate the pot below, so perhaps this is something I need to figure out.

Regardless, I need a little more guidance. I calculated the values and I'm not positive how to situate the attenuator. I'm trynig a shunted pot configuration, so the wiper and one leg are tied together. The goal is as the attenuator is turned clockwise to increase the volume. I also want max volume to result in as little attenuation as possible.

Here's the portion of my circuit we're concerned with. The input signal in the second image is taken to the left of the series resistor R83 and R84.

The values in the A variable are supposed to represent turning the knob to the right. On the graph, the first value in A is the lowest blue curve. As you can see, the green curve is somewhat affected by the loading of the attenuator. Now, if I tie the wiper to the other leg, then I get (10K - A) as the resultant resistance. I'm not sure if this is what I want.

Also, R83 and R84 seem to be important, if you set these too big then your minimum attenuation doesn't equal to the input signal (as desired).

Ideally, the attenuation would be equally spread out over the input curve.
 

Attachments

  • atten.png
    atten.png
    32.6 KB · Views: 611
  • atten-1.png
    atten-1.png
    41.1 KB · Views: 594
Status
Not open for further replies.