0
\$\begingroup\$

Computer Science major here, I have some idea but not really sure about it.

I have a bunch of analog voltage readings. I need to convert them to digitized values (in volts). I am getting a 'Digital Value' through an online converter, which is in range 0 - 15. Assuming it has to do something with [2^4(bits) - 1 = 15]

Is there a formula to convert the 'Digital Value' into an output voltage (output through ADC)?
Some sample analog voltages: -4.3, 1.2, 3.1

\$\endgroup\$
  • \$\begingroup\$ You should be able to derive the equation yourself - it's pretty straight forward. Your ADC's analog input is broken up into 16 equal voltage ranges. \$\endgroup\$ – mike65535 Sep 24 '18 at 1:14
0
\$\begingroup\$

You're thinking of a 4-bit resolution and wishing for a decimal number to represent a voltage value. In that case, consider this equation:

\$\displaystyle \frac{\textrm{Resolution of ADC}}{\textrm{System Voltage}}=\frac{\textrm{ADC Reading}}{\textrm{Measured voltage}}\$

So for an example, you have a 10-bit resolution on a 5v channel and you're reading 2.12v on your multimeter. The decimal value would be:

\$ \displaystyle \frac{2^{10}-1}{5}=\frac{x}{2.12}\$

Your ADC would read 434 once you solve for \$x\$. These types of numbers are good for microcontrollers like the Arduino that can read the voltage this way and you can make conditions based on the voltage it was reading, i.e. from sensors.

As far as receiving negative numbers from a ADC, you might have to refer to the datasheet of your ADC. I'm not too familiar with negative voltage readings from an ADC unless you do some clever programming on your part using some type of differential mode.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.