Friday, June 7, 2013

How do I convert a signal of 3v to 2v to a signal of 0 to 5 v

How do I convert a signal of 3v to 2v to a signal of 0 to 5 v

I'm measuring input voltages between 2v and 3v (3v volts corresponds to a reading of 0 and 2v corresponds to a reading of 10,000) on the analogue in of my arduino. I would like to measure the voltage at the highest possible resolution of the arduinos A/D converters.Using an operational amplifier and common resistors how would I convert a voltage range of 3V - 2V to a coresponding 0v - 5v for the arduino inputs.
I tried Using the simplified methof on this page Scaling Voltages With Op amps
|Gain| = Output Range / (Vin.max รข€“ Vin.min) so gain would be 5
Gain = Rg / Rin so Rin = Rg/Gain picking a 10k resistor for Rg i get Rin as 2k
Voff = Vin.max * ( |Gain| / ( |Gain| + 1 )) so 3 * (5/(5+1) - this part confuses me, I would think that the offset is simply 2 becuase I know that the lowest voltage I need to measure is 2V
Voff = Rbot / (Rtop + Rbot) * Vref
and here is where I get lost

No comments:

Post a Comment