Voltage scaling for ADC input
Scott4
Posts: 45
I am looking for an OpAmp circuit to scale the output of a pressure sensor.·The sensor voltage range of interest·is 2.6v to 4.2v. I would like to expand that·to a range of 0.2v to 4.8v to get better resolution from the ADC.
Any help would be appreciated. -Scott
Any help would be appreciated. -Scott
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Does this [noparse][[/noparse]attachment file] help?· Maybe someone can give better values for the resistor voltage dividers.
cheers, David
If you are just looking to scale the voltage using an Op-Amp, then you'll need two stages. First You need a difference amplifier with a voltage reference of 2.5V on the inverting input (V1)...
www.play-hookey.com/analog/difference_amplifier.html
...in the schematic above all resistors should be the same (100K), the Op-Amp should be powered with 5V-0V so that the Gnd connection is actually 0V and not Vdd/2.
This should bring the voltage on the output of the Op-Amp in the range of 100mV to 1.7V from a 2.6V to 4.2V input.
The next Op-Amp that you need should be a NON-Inverting amplifier.
www.play-hookey.com/analog/non-inverting_amplifier.html
...in this schematic Rz can be omitted and this input can be tied to the previous Op-Amp's output.
Gain = 1 + (Rf / Rin)
you basically want your gain to be 2.875 (4.6V(<--Desired Output Delta) divided by 1.6V(<--output Delta from first Op-Amp) = 2.875)
So...
2.875 = 1 + (Rf / Rin)
1.875 = Rf / Rin
If Rin = 100K ...
Rf = 187.5K
Now, the output of the Second Op-Amp should have the range you are looking for. You should still consider calibrating your readings with known input values.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 3/18/2010 8:30:39 PM GMT
I am a "cookbook engineer" when it comes to EE design. Will you take a look at the attached circuit and see if I have accurately captured your intent?
Should the 2.5v reference be an IC?
-Scott
Nope, that's about it... the 2.5V reference could be taken from two 1K resistors forming a voltage divider from the 5V supply powering the dual Op-Amp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Another thought. How about using an instrumentation amplifier? My favorite is the INA125; although I have not used it for an application such as yours.
The INA 125 has built-in voltage references, the 2.5 volts which could be used on the (-) input to set the minimum.
It also uses only one resistor for gain.
cheers, David
Plus, I am very interested in your application as I have been planning to do something similar. In this regard here are a couple of links which might also be of interest:
I like the TLC2543, 12 bit ADC, for the simple reasons that it is multichannel and that Dr. Tracy Allen has an extensive article on it's application to the Stamp:
http://www.emesystems.com/OL2tlc2543.htm
[noparse][[/noparse] I think Dr. Allen's articles should be required perusing prior to asking questions on the forum. :-) ]
Although the following should be placed under a new thread I would like to take this opportunity to offer a link in regard to your concern about noise. Software reduction of noise is covered under Dr. Allen's discussion regarding data smoothing:
http://www.emesystems.com/BS2math5.htm
Finally, although I have yet to tackle this problem, I wonder how you are going to convert barometric pressure to altitude? My thought is to divide the relationship curve into linear segments and use the lookup command for the slopes and intercepts. Any ideas?
cheers, David
Regarding the math, I am using the Micromega uM-FPU V3 ($20) 32 bit floating point processor. I'm using it to compute:
-Altitude
-Air Speed
-Water temperature (reading a thermistor sensor and computing temperature using the Steinhart-Hart equation)
-GPS (NMEA sentence parsing)
-Elapsed time calculation
-Distance between GPS waypoints (great-circle method)
-etc.
Given all it does, $20 seems like a bargan to me.
For the altitude, I gathered my equations and made a spreadsheet (screen shot in post above). This is how I discovered that one ADC count would give a resolution of ~7ft. I have not gotten to debug the FPU code yet as I am still struggling with the LCD. -Scott
www.play-hookey.com/analog/difference_amplifier.html
www.play-hookey.com/analog/non-inverting_amplifier.html
Could you re-post new links?
TIA,
Rob
http://www.play-hookey.com/analog/feedback_circuits/non-inverting_amplifier.html
(also if these links die, the internet archive has them https://web.archive.org/web/20111229150556/http://www.play-hookey.com/analog/difference_amplifier.html)