ADC raw count and voltage converter
Inputs
Outputs
Enter ADC settings to convert code and voltage.
Convert ADC raw counts to voltage and voltage to ADC counts with configurable resolution, Vref, denominator mode, offset, gain, and optional voltage divider scaling.
Enter ADC settings to convert code and voltage.
For an ideal unipolar ADC, voltage is rawCode / denominator × Vref. Common denominator choices are 2^N - 1 (max code) and 2^N depending on datasheet conventions.
For reverse conversion, expectedCode = (voltage / Vref) × denominator, then apply optional offset correction and clamp to valid code range.
LSB size estimates quantization step. Smaller LSB means finer ideal voltage resolution, but real accuracy still depends on ADC nonlinearity, noise, and reference quality.
A resistor divider lets you measure higher voltages at an ADC pin. Convert between ADC pin voltage and original input voltage using (Rtop + Rbottom) / Rbottom.
| Resolution | Vref | Raw code | Voltage | Notes |
|---|---|---|---|---|
| 10-bit | 5.0 V | 512 | 2.502 V | Arduino-style ADC midpoint |
| 12-bit | 3.3 V | 2048 | 1.650 V | Common MCU ADC midpoint |
| 12-bit | 3.3 V | 4095 | 3.300 V | Full-scale code |
| 16-bit | 3.3 V | 32768 | 1.650 V | High-resolution midpoint |
| 8-bit | 5.0 V | 255 | 5.000 V | Full-scale code |
Typical configurations include 10-bit 5 V Arduino ADC values and 12-bit 3.3 V MCU values. Use this tool for quick checks while debugging firmware telemetry.
Use voltage = rawCode / denominator × Vref. The denominator is usually 2^N - 1 for max-code scaling.
Many calculations use 1023 (2^10 - 1). Some references use 1024. Use the convention that matches your ADC datasheet and firmware implementation.
LSB size is the ideal voltage step per code count, usually Vref divided by the chosen denominator.
Use a resistor divider so the ADC pin stays within Vref range, then scale the pin voltage back to original input voltage.
Real ADCs include gain/offset error, nonlinearity, noise, and front-end attenuation behavior. This calculator uses an ideal ADC model for quick estimation.