ADC Fundamentals: Sampling the Analog World

2026-05-01

Last time we covered turning digital numbers into analog voltages with DACs. Now let's go the other direction: converting real-world analog signals into digital values your microcontroller can process. This is the job of the Analog-to-Digital Converter (ADC).

An ADC does two things: it samples the analog signal at discrete moments in time, and it quantizes each sample into a digital code. Both steps introduce limitations you need to understand.

Resolution and LSB size. An N-bit ADC divides its reference voltage into 2^N steps. For a 10-bit ADC with a 3.3V reference, each step (one LSB) is:

LSB = 3.3V / 1024 ≈ 3.22 mV

This means you can't distinguish voltage differences smaller than about 3.2 mV. If you're reading a thermistor circuit that produces 10 mV/°C, your temperature resolution is roughly 0.3°C — which may or may not be good enough. Upgrading to a 12-bit ADC (4096 steps) cuts the LSB to 0.81 mV and gets you to ~0.08°C resolution. This is exactly the kind of back-of-envelope math you should do before selecting an ADC.

Sampling rate and Nyquist. The Nyquist theorem says you must sample at at least twice the highest frequency present in your signal. In practice, sample at 5–10× the signal bandwidth to get clean reconstructions. If you're digitizing audio up to 20 kHz, a 44.1 kHz sample rate is the theoretical minimum — which is exactly why CD audio uses that rate. For a slowly varying temperature sensor, even 10 samples per second is overkill.

Common ADC architectures:

Practical tips for clean ADC readings:

Real-world example: You want to measure a 0–5V battery voltage with a 3.3V microcontroller's built-in 12-bit SAR ADC. Use a resistor divider (e.g., 10kΩ and 6.8kΩ) to scale 5V down to ~2.02V, well within the 0–3.3V input range. Add a 100 nF cap at the ADC pin to stabilize the reading. Your LSB is 0.81 mV at the ADC, which maps to about 2 mV at the battery — plenty of resolution for battery monitoring.

See it in action: Check out How Do ADCs Work? - The Learning Circuit by element14 presents to see this theory applied.
Key Takeaway: Choose your ADC based on the resolution and speed your signal actually demands — a 12-bit SAR handles most embedded tasks, while delta-sigma converters excel when you need precision at low sample rates.

All newsletters