Author Topic: ADC and/or Programmable Gain Amplifier Help  (Read 6787 times)

0 Members and 1 Guest are viewing this topic.

Offline rs20

  • Super Contributor
  • ***
  • Posts: 2320
  • Country: au
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #25 on: May 21, 2016, 03:55:11 am »
SPI is straightforward, you have the data lines to and from the chip, the clock, and the chip select pin. It should be self-evident how these line up between the ADC and the MCU.

Your circuit looks good, except you must add a resistor between the op-amp output and the ADC input. A C by itself will do nothing but stress out the op-amp (and possibly make it go unstable). You want an RC filter.

If you had differential inputs, you'd use a resistor on each line, and a capacitor bridging the two ADC pins (like the 1uF and 500 ohm resistors shown in the diagram you sent). Extra caps (like the 0.1uF caps shown in the diagram) may be useful to, but less so that the differential capacitor.
 

Offline tyguy2Topic starter

  • Supporter
  • ****
  • Posts: 303
  • Country: us
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #26 on: May 21, 2016, 04:50:11 pm »
So this is what a differential input would look like? (I'm using the 1uf cap (c7) for decoupling)
[Sarcastic comment] clever joke [/sarcastic comment]
Bitcoin:
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
 

Offline rs20

  • Super Contributor
  • ***
  • Posts: 2320
  • Country: au
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #27 on: May 21, 2016, 11:41:03 pm »
You've got the 1uF cap on the wrong side of the 500 ohm resistors. It goes input, resistor, capacitor || output.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 28013
  • Country: nl
    • NCT Developments
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #28 on: May 22, 2016, 12:54:13 am »
I'd look for an ADC with an internal PGA. TI has several of these (but not cheap). Using external opamps will most likely cause all kinds of problems with offsets and noise.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline tyguy2Topic starter

  • Supporter
  • ****
  • Posts: 303
  • Country: us
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #29 on: May 22, 2016, 12:59:58 am »
I'd look for an ADC with an internal PGA. TI has several of these (but not cheap). Using external opamps will most likely cause all kinds of problems with offsets and noise.
The amplitude of the input signal will range between 0v and 1mv
The device needs to be as accurate as possible (little noise)
The resolution can be anything above 10 bits
The sample rate is trivial, my device will only sample at 500hz

The MCP3421 is a wonderful part, I've used it with great success in the past, but the bit depth/sample rate tradeoff doesn't work for your specs. 12-bit mode only samples as 240 SPS, and the LSB at 8x gain and 12-bit mode is 125uV -- which means that with a maximum signal swing of 1mV, you'll only have three "actual" bits. The MCP3421 can't operated at 500 Hz under any circumstances.

18-bit mode could give you ~2uV LSB, which corresponds to 9 actual bits in your usecase, but only gives 3.75 SPS (yes, less than four readings per second).

To clarify, when you say the resolution must be about 10 bits, do you mean you want the LSB to be 1uV or finer? It's a little clearer if you state resolution as a minimum step size.

For the record, I'd endorse an analog stage with a bandwidth of 1 kHz and a gain of 1000 or so (using some sort of chopper amp or similar). Fortunately it's not at all difficult to get a gain of 1000 at such a low bandwidth. At that stage you have a 1V signal that you want to sample with 1mV resolution, which is totally easy with all manner of different ADC technologies.

We already went over this. The analog solution can give me a higher resolution for cheaper. If you can find something that has a high resolution at 1mv, please tell me, because it would be way easier.
« Last Edit: May 22, 2016, 01:03:30 am by tyguy2 »
[Sarcastic comment] clever joke [/sarcastic comment]
Bitcoin:
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
 

Offline tyguy2Topic starter

  • Supporter
  • ****
  • Posts: 303
  • Country: us
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #30 on: May 22, 2016, 01:08:16 am »
Perhaps something like this, but smaller? http://www.ti.com/lit/ds/sbas661b/sbas661b.pdf
[Sarcastic comment] clever joke [/sarcastic comment]
Bitcoin:
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
 

Offline tyguy2Topic starter

  • Supporter
  • ****
  • Posts: 303
  • Country: us
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #31 on: May 22, 2016, 07:31:44 pm »
Also, if I'm measuring negative voltages, would a simple DC offset work (ADC doesn't do negative voltage, and I don't want to create a negative voltage ref), or would that introduce too much noise?
[Sarcastic comment] clever joke [/sarcastic comment]
Bitcoin:
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #32 on: May 22, 2016, 11:26:53 pm »
You are basically asking for 1 uV resolution or better, and I assume you have a
common mode environment to deal with.

Here are some ap notes dealing with noise and basics of PCB issues -

https://www.dropbox.com/s/2h96beh1fbvz4e2/noise_notes.zip?dl=0


https://www.dropbox.com/s/ruaf9booe17jk8n/PCB%20Layout.zip?dl=0

My first instincts to do this would be to examine low noise instrumentation amps.

Noise tools -

http://www.analog.com/en/design-center/interactive-design-tools/adi-diffampcalc.html



Regards, Dana.
« Last Edit: May 22, 2016, 11:32:16 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline tyguy2Topic starter

  • Supporter
  • ****
  • Posts: 303
  • Country: us
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #33 on: May 22, 2016, 11:30:34 pm »
So what about the DC offset? How would I measure these negative voltages.
Edit:
Nevermind, it looks like the chip has the integrated in it.
« Last Edit: May 22, 2016, 11:32:35 pm by tyguy2 »
[Sarcastic comment] clever joke [/sarcastic comment]
Bitcoin:
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #34 on: May 22, 2016, 11:34:59 pm »
What are you measuring ? A bridge type sensor, a ground referenced sensor ?


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline tyguy2Topic starter

  • Supporter
  • ****
  • Posts: 303
  • Country: us
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #35 on: May 22, 2016, 11:35:53 pm »
I'm measuring the human heat beat/ muscle signals.
[Sarcastic comment] clever joke [/sarcastic comment]
Bitcoin:
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #36 on: May 22, 2016, 11:58:29 pm »
Then for sure this is a differential measurement because of the high CM environment. This tool
also helps to pick an IA for the application in terms of input CM range and output saturation.

http://www.analog.com/en/products/amplifiers/instrumentation-amplifiers.html

Use the analog tool to evaluate the noise previously.


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #37 on: May 23, 2016, 12:14:25 am »
Also at analog.com look at the 24 bit DelSig A/Ds. Some of them have a cm range that includes
50 mV below ground.


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline tyguy2Topic starter

  • Supporter
  • ****
  • Posts: 303
  • Country: us
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #38 on: May 23, 2016, 08:28:55 pm »
So what would you recommend? Should I use the Instrumentation Amplifiers to amplify the signal going into the ADC? I don't see any ADC's on Analog.com that can detect 50 mV below ground. All of the products they offer are just modulators. Also, all of these chips use CMOS to communicate, not SPI or I2C. Maybe I'm missing something...
[Sarcastic comment] clever joke [/sarcastic comment]
Bitcoin:
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
 

Offline andy1

  • Contributor
  • Posts: 25
  • Country: fi
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #39 on: May 24, 2016, 08:52:46 pm »
You mentioned that the application is ECG/EMG  so have you looked at TI ADS1298 (or even ADS1299 for lower noise) they are designed just for this application and it has 16/24b adcs , frontend PGA:s etc integrated. Samplerates go up to kiloherz range and default is actually 500. I am using the 8 channel ADS1298 for ECG capturing and it works really well, there are smaller models with less channels also but similar performance etc.
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: ADC and/or Programmable Gain Amplifier Help
« Reply #40 on: May 24, 2016, 09:40:53 pm »
Delta Sigma selection guide -


http://www.analog.com/en/parametricsearch/10825?mtuid=bd62016050314188bdabc76d71314342#/p1746=1.25|10000000&p4364=Sigma-Delta


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf