Author Topic: Digital Potentiometer for specific gain values in op-amp circuit  (Read 2278 times)

0 Members and 1 Guest are viewing this topic.

Offline mdszyTopic starter

  • Supporter
  • ****
  • Posts: 291
  • Country: us
  • somehow has an ee degree
    • szy.io
I'm working on a design for something that takes a signal in which is approximately 0.6Vpp. My goal is to be able to vary the amplitude of this signal anywhere from 0.1Vpp to 5Vpp in 0.1V steps. My plan was to use a resistor divider to bring the signal from its original 0.6Vpp to 0.1Vpp and then use an opamp and a digital potentiometer to vary the gain from 1V/V - 50V/V.

My question is, is this feasible with an inexpensive (Hopefully ~$1/chip in small quantities) digital pot? I have a feeling it is, as long as I choose the right R1 and R2 values. However, it seems like a lot of digital potentiometers have strange resistance values for the taps, since the number of steps is a binary multiple number (64, 128, 256, 512...)

I've attached a schematic. I'd appreciate any pointers as to how to go about figuring out what resistance values I need for this to work.

Also, I based the schematic on this application note provided by Microchip.
« Last Edit: March 06, 2018, 02:46:12 pm by mdszy »
somehow allowed to be a Pixie Wrangler in Training
eBay Store | My site | Hackaday.io Projects | my mastodon.technology profile
 

Offline Evan.Cornell

  • Regular Contributor
  • *
  • Posts: 188
  • Country: us
Re: Digital Potentiometer for specific gain values in op-amp circuit
« Reply #1 on: March 06, 2018, 02:58:12 pm »
You could take a look at Variable or Programmable Gain Amplifiers:
http://www.ti.com/amplifier-circuit/pga-vga/overview.html
 

Offline schmitt trigger

  • Super Contributor
  • ***
  • Posts: 2344
  • Country: mx
Re: Digital Potentiometer for specific gain values in op-amp circuit
« Reply #2 on: March 06, 2018, 02:58:50 pm »
To figure out the actual gain, write the opamp gain formula in an Excell spreadsheet, then with the autoincrement drag function create a column with all the possible ohmic values, plot the results.
You could also use a SPICE simulator and utilize a .STEP function and do the same.

Beware! Be sure to also check out the digipot's end-to-end tolerance.
 

Offline mdszyTopic starter

  • Supporter
  • ****
  • Posts: 291
  • Country: us
  • somehow has an ee degree
    • szy.io
Re: Digital Potentiometer for specific gain values in op-amp circuit
« Reply #3 on: March 06, 2018, 03:08:06 pm »
To figure out the actual gain, write the opamp gain formula in an Excell spreadsheet, then with the autoincrement drag function create a column with all the possible ohmic values, plot the results.
You could also use a SPICE simulator and utilize a .STEP function and do the same.

Beware! Be sure to also check out the digipot's end-to-end tolerance.

Ah, right! I totally forgot excel existed, haha. Thank you, I'll give it a whack!
somehow allowed to be a Pixie Wrangler in Training
eBay Store | My site | Hackaday.io Projects | my mastodon.technology profile
 

Offline metrologist

  • Super Contributor
  • ***
  • Posts: 2251
  • Country: 00
Re: Digital Potentiometer for specific gain values in op-amp circuit
« Reply #4 on: March 06, 2018, 03:08:48 pm »
I modeled the attached. Changing the 1k to 166k gives +/-5V output.
 

Offline mdszyTopic starter

  • Supporter
  • ****
  • Posts: 291
  • Country: us
  • somehow has an ee degree
    • szy.io
Re: Digital Potentiometer for specific gain values in op-amp circuit
« Reply #5 on: March 06, 2018, 03:10:40 pm »
I modeled the attached. Changing the 1k to 166k gives +/-5V output.

Right. I understand how to get the top/bottom end gains. I just need to make sure that I can get a digital pot and choose my resistors such that I can get 1V/V, 2V/V, 3V/V ... all the way up to 50V/V. That's the issue I'm having.
somehow allowed to be a Pixie Wrangler in Training
eBay Store | My site | Hackaday.io Projects | my mastodon.technology profile
 

Offline ArdWar

  • Frequent Contributor
  • **
  • Posts: 698
  • Country: sc
Re: Digital Potentiometer for specific gain values in op-amp circuit
« Reply #6 on: March 06, 2018, 04:09:35 pm »
Pick a digital potentiometer with specific value. Use it as inverting amplifier feedback resistor in rheostat (variable resistor) mode. Pick input resistor that is 1/64 of the digital potentiometer resistance (might need trimmer), and you'll get 1v/v per step if 6bit or fraction of that if higher.

Of course that'll still subject to the digital potentiometer's linearity and stability (might not hold the same value at all signal voltages, frequencies and temperature, for example)
 
The following users thanked this post: mdszy

Offline mdszyTopic starter

  • Supporter
  • ****
  • Posts: 291
  • Country: us
  • somehow has an ee degree
    • szy.io
Re: Digital Potentiometer for specific gain values in op-amp circuit
« Reply #7 on: March 06, 2018, 06:20:21 pm »
Pick a digital potentiometer with specific value. Use it as inverting amplifier feedback resistor in rheostat (variable resistor) mode. Pick input resistor that is 1/64 of the digital potentiometer resistance (might need trimmer), and you'll get 1v/v per step if 6bit or fraction of that if higher.

Of course that'll still subject to the digital potentiometer's linearity and stability (might not hold the same value at all signal voltages, frequencies and temperature, for example)

Thank you so much! This is exactly what I was looking for. I was having a massive brain block, I knew there was a simple way about this, and this will work! Thanks again!
somehow allowed to be a Pixie Wrangler in Training
eBay Store | My site | Hackaday.io Projects | my mastodon.technology profile
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf