Increasing the Range of the Analog Input Voltage

Question:

I connected AIN2 to AGND and AIN3 to the voltage source. The GND of the voltage source is connected to AGND. I am trying to measure voltage from a 5V power supply to the EMANT300.

volt = DAQ.ReadAnalog(Emant300.AIN.AIN3, Emant300.AIN.AIN2)

The device is able to read voltages less than 2.5v but I am unable to read any higher voltage. I wish to read voltages from 0 to 5v.

Answer:

Your analog input range required is 0 to 5V whereas the Full-Scale Input Voltage Range of the EMANT300 USB DAQ module is 0 to 2.5V (PGA = 1 VREF = 2.5V Unipolar Input - see EMANT300 specs).

A workaround is to connect the AIN2 to REFOUT instead of AGND. Set the input to Bipolar. The voltage read is -2.5 to 2.5V. You will need to add 2.5 to your read voltage to convert the reading to 0 - 5V.

WARNING: Do not connect your Signal GND to AIN2 and REFOUT. Doing so will damage the EMANT300. Your Signal GND should still be connected to AGND.

Emant3001.Open()
DAQ.ConfigAnalog(2.5, Emant.Emant300.POLARITY.Bipolar, 100)
...
...
volt = DAQ.ReadAnalog(Emant300.AIN.AIN3, Emant300.AIN.AIN2)
volt = volt + 2.5
...
...
Emant3001.Close()

Click 5VInput.zip to download LabVIEW example.

A more general solution to the above problem uses the following schematic. (We are using AIN3 and AIN2 - any analog input pair can be used)

Using AIN2 and AIN3, the circuit measures input from +15V to -15V. The voltage is attenuated by 10 so the AIN3 voltage swing is 4V to 1V. The voltage is given by the following equation

Applying the same formula to V AIN2 and since R1 = R3 and R2 = R4 and simplifying, we obtain the following general equation

  • The voltage at the inputs should not be less than 0 or greater than 5V to avoid damage to the inputs. See Analog Input Range specification with Buffer On and Buffer Off
  • R2 = R4 should not be less than 2K to avoid loading VREF.
  • Don't forget to multiply the measured voltage with the inverse of the attenuation factor