Toolvito

Works on this device

Sensor Resolution Calculator

The resolution of a measurement is the smallest change it can show. For a sensor read by an analog-to-digital converter (ADC), it is one step of the converter turned back into the unit of the sensor. This calculator works it out from the sensor range, the gain and the converter, finds the bits you need, and gives the step of a digital sensor.

Enter your values

The smallest change of the measured value that moves the converter reading by one code.

Your values

For example 0 for a sensor that reads 0 to 100 °C.

Only a label for the results.

From the data sheet of the sensor, for example 0.5 V.

Type 1 if the sensor drives the converter directly. An amplifier has a gain above 1, a voltage divider a gain below 1.

For example 10, 12, 16 or 24 bits.

Usually the reference voltage of the converter.

More options

Usually 0 V.

Most ADC data sheets use range ÷ 2^N. Some texts divide by 2^N − 1. Choose the one your data sheet or course uses.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose what you want: the resolution of a chain, the bits you need, or the resolution of a digital sensor.
  2. Enter the sensor range: the measured value and the sensor output at the bottom and at the top, for example 0 °C = 0.5 V and 100 °C = 4.5 V.
  3. Enter the gain between the sensor and the converter (1 if there is none), the number of bits and the converter range.
  4. Choose Calculate. Under More options you can set the bottom of the converter range and how one step is defined.

The formulas

  • Sensitivity = (output at the top − output at the bottom) ÷ (value at the top − value at the bottom).
  • Step of the converter: LSB = converter range ÷ 2^N (or ÷ (2^N − 1) in some texts). This is the same rule as in the Adc Resolution Calculator.
  • Resolution = LSB ÷ (sensitivity × gain).
  • Bits needed: N = log2(converter range ÷ LSB), taken up to a whole number, where LSB = resolution × sensitivity × gain.
  • Digital sensor: resolution = (top − bottom of the range) ÷ 2^N, and the sensitivity is 2^N ÷ (top − bottom) LSB per unit.

Worked examples

A 0 to 100 °C sensor with a 0.5 to 4.5 V output, read by a 12-bit converter with a 0 to 5 V range: the sensitivity is 4 V ÷ 100 °C = 40 mV per °C. One step is 5 ÷ 4096 = 1.2207 mV, so the resolution is 1.2207 ÷ 40 = 0.0305 °C. The sensor uses 80% of the converter range, about 3,277 codes.

Bits for 0.1 °C with the same sensor: one step may be at most 0.1 × 40 mV = 4 mV, and log2(5 ÷ 0.004) = 10.29, so 11 bits.

A ±2 g accelerometer with 16 bits: 4 g ÷ 65,536 = 0.000061 g (0.061 mg) per step, which is 16,384 LSB per g.

Limits you should know

  • The chain is ideal and linear. Noise, offset, gain error and the accuracy of the sensor make the real resolution coarser, and accuracy is not the same as resolution.
  • A gain that pushes the signal past the converter range makes readings stick at the first or last code. The tool tells you when the signal does not fit.
  • For the step size, SNR and ENOB of a converter alone, use the Adc Resolution Calculator. To shift and scale a sensor voltage into a converter range, use the Sensor Voltage Scaling Calculator.

Related tools