Circuit fundamentals
ADC resolution
Also called: analogue-to-digital converter · quantisation step · LSB size · analogRead
Definition
An n-bit analogue-to-digital converter splits its reference voltage into 2^n steps; one step, the least significant bit, is the smallest change it can detect.
Picture it
An ADC is a ruler with 2^n marks. A 10-bit ADC on 3.3 V has marks about 3.2 mV apart, so any finer detail is lost. Reading a code back to volts means multiplying by the step size.
The maths
LSB = V_ref / 2^n V ≈ code × V_ref / 2^n (some ADCs use 2^n − 1)
| Quantity | Unit | Symbol |
|---|---|---|
| voltage | volt | V |
| information | bit | bit |
Worked example
A 12-bit ADC with a 3.3 V reference returns 2048. What voltage was measured, and what is the step size?
- 2^12 = 4096 steps
- LSB = 3.3 / 4096 = 0.000806 V ≈ 0.806 mV
- V = 2048 × 3.3 / 4096 = 1.65 V
AnswerAbout 1.65 V, with a step size of about 0.806 mV.
✓ The 2 numbers in this answer are recomputed from scratch by an automated test.
Common misconceptions
- Misconception: More bits do not make a noisy sensor accurate; they only make the ruler finer.
- Misconception: Inputs above V_ref read as the maximum code, and may damage the pin.