Elecmetric

ADC Resolution and Sampling Formulas

ADC formulas: the size of one step from the bits and the reference, the count for a voltage, the ideal signal to noise ratio, ENOB and the Nyquist limit.

The formulas

To findFormula
Step size (LSB)LSB = Vref / 2ᴺ
Counts for a voltagecounts = V / LSB = V × 2ᴺ / Vref
Ideal signal to noise ratioSNR = 6.02 × N + 1.76 dB
Effective number of bitsENOB = (SINAD − 1.76) / 6.02
Sampling ratefs > 2 × fmax (Nyquist)

N is the number of bits, Vref the reference voltage and fmax the highest frequency in the signal. The step formula is for an ideal converter with a unipolar range of 0 to Vref. A real converter has offset, gain and noise errors that are on its data sheet, and the SINAD (the signal to noise and distortion ratio in dB) gives the effective number of bits. Frequencies above half the sampling rate fold back into the band, so a low-pass filter before the converter is needed, and the sampling rate is usually set well above the Nyquist limit.

Worked example: 12 bits and a 3.3 V reference

  1. LSB = 3.3 / 4096 = 0.8057 mV
  2. A reading of 1.65 V is 1.65 / 0.8057 mV = 2,048 counts, which is half scale
  3. SNR = 6.02 × 12 + 1.76 = 74 dB

Worked example: a 4 to 20 mA loop on 250 Ω with a 5 V reference

The loop gives 1 V at 4 mA and 5 V at 20 mA.

  1. LSB = 5 / 4096 = 1.221 mV
  2. 4 mA (1 V) is 819.2 counts and 20 mA is 4096, so the span uses 3,277 counts
  3. One count is 16 mA / 3,277 = 4.883 µA

Worked example: ENOB and the sampling rate

  1. A SINAD of 68 dB gives ENOB = (68 − 1.76) / 6.02 = 11 bits
  2. A signal with components up to 1 kHz needs fs above 2 kHz

Converters with a 3.3 V reference

ResolutionStepsLSBIdeal SNR
8 bit25612.89 mV49.92 dB
10 bit1,0243.223 mV61.96 dB
12 bit4,0960.8057 mV74 dB
16 bit65,5400.05035 mV98.08 dB
24 bit16,780,0000.0001967 mV146.2 dB

Frequently asked questions

Does more bits always mean better accuracy?

No. The noise, offset and gain error of the converter and its reference limit the accuracy, so the number of bits only gives the resolution. The ENOB shows what the converter can really do.

What is the Nyquist limit?

A signal must be sampled at more than twice its highest frequency to be rebuilt. Anything above half the sampling rate shows up as a false lower frequency.

Why use a low-pass filter before the ADC?

It removes the frequencies above half the sampling rate that would otherwise fold into the measurement as aliasing.

Can I measure a sensor that uses only part of the range?

Yes, but it uses fewer counts, so the resolution in the sensor units is worse, as in the 4 to 20 mA example. A gain stage that fills the range gives more counts.

Related

4-20 mA Loop FormulasOp-Amp FormulasRC Filter FormulasElectronics and instrumentation calculatorsThree-Phase Power FormulasPower Factor and the Power TriangleAC Circuit Formulas: Reactance and ImpedanceVoltage Drop Formulas for CablesTransformer Formulas: Current and Fault LevelInduction Motor FormulasLighting Formulas: Lux, Lumens and CandelaBattery Formulas: Capacity and RuntimeSolar PV Formulas: Array Size and StringsCapacitor Formulas: Energy and RC Time ConstantEarthing Formulas: Earth Rod and Fault LoopCable Size Formulas: Current and Short-CircuitEnergy and Cost Formulas: kWh and PaybackGenerator Formulas: kVA, Current and FuelUPS Formulas: kVA, DC Current and BatteryHarmonics Formulas: THD and True Power FactorShort-Circuit Formulas: Fault Level by MVAUnbalance Formulas: Voltage and Neutral CurrentResistor Formulas: Series, Parallel, DividerMotor Starting Formulas: DOL, Star-DeltaCircuit Breaker Formulas: Rating and TripCooling Formulas: Airflow and Heat LoadHeating Formulas: Energy and Heater PowerPer-Unit Formulas: Base Values and ImpedanceLED Formulas: Resistor Value and PowerConduit Fill Formulas: Percent Fill and SizeLightning Protection Formulas: Rolling SphereTransformer Efficiency and Regulation FormulasPump Formulas: Hydraulic, Shaft and Motor PowerFan Formulas: Air Power and Affinity LawsInductor Formulas: Energy and L/R Time ConstantRMS, Peak and Average Value FormulasResonance Formulas: Frequency, Q, BandwidthMotor Efficiency Formulas: Input and SavingsDemand, Load and Diversity Factor FormulasCable Tray Fill Formulas: Area and Cable CountConductor Resistance Formulas and TemperatureTransmission Line Formulas: Drop and LossesStar-Delta Conversion Formulas for ResistorsCable Loss Formulas: Power and Annual Cost555 Timer Formulas: Frequency and Duty CycleThévenin and Norton FormulasWheatstone Bridge Formulas: Balance and OutputConductor Force Formulas: Short-Circuit ForcesCT Burden Formulas: Lead Resistance and VAGear and Belt Drive Formulas: Speed and TorqueSkin Effect Formulas: Skin DepthRectifier Ripple Formulas: Capacitor FilterBuck and Boost Converter Formulas: Duty CycleHeat Sink Formulas: Junction TemperatureBattery Pack Formulas: Series and ParallelMotor Acceleration Time FormulasZener Regulator Formulas: Series ResistorBJT Bias Formulas: Voltage Divider BiasPt100 RTD Formulas: Resistance and TemperatureNTC Thermistor Formulas: Beta EquationFusing Current Formulas: Wire Fuse EstimateFlywheel Formulas: Stored EnergyLinear Regulator Formulas: Power and EfficiencyMOSFET Loss Formulas: Conduction and SwitchingRelay Coil Formulas: Current and ResistorTransformer Inrush Current FormulasBattery Charge Time FormulasWind Turbine Power Formulas: Betz LimitDetuning Reactor Formulas: Capacitor BanksTransformer Tap Changer FormulasCable Pulling Tension FormulasInsulation Resistance Formulas: PI and DARPower Transfer and Power Angle FormulasSolar Panel Temperature Derating FormulasVoltage Change and Flicker FormulasSoft Starter and VFD Sizing FormulasEarth Fault Loop and RCD FormulasBattery Internal Resistance FormulasBusbar Size and Short-Circuit FormulasCapacitor Switching Inrush FormulasCable Charging Current FormulasSolar DC to AC Ratio FormulasMeasurement Uncertainty FormulasParallel Transformer Load Sharing FormulasPeukert Law and Battery Runtime FormulasCapacitor Discharge Time FormulasHydraulic Power and Cylinder Force FormulasThermocouple Voltage FormulasTransformer Vector Group FormulasPower Supply Hold-Up Time FormulasHoist and Lift Power FormulasCompressor Power FormulasRectifier Bridge Sizing FormulasPCB Trace Width and Current FormulasHeat Pump COP FormulasSound Level and dB Addition FormulasDuty Cycle and RMS Load FormulasSupercapacitor Energy FormulasStep and Touch Voltage FormulasContactor Sizing FormulasInverter-Fed Motor Cable FormulasPneumatic Cylinder Force and Air UseBusbar Temperature Rise FormulasMotor Temperature Rise FormulasBattery Storage Round-Trip EfficiencyThermal Time Constant FormulasSolar Charge Controller Sizing FormulasPoint Illuminance FormulasGenerator Droop and Load Sharing FormulasTwo-Wattmeter Method FormulasVFD Braking Resistor FormulasLoad Bank Test FormulasTransformer Cooling Class Rating FormulasEnergy Meter Multiplier FormulasOvercurrent Relay Curve FormulasSingle-Tuned Harmonic Filter FormulasCable Sheath Circulating Current FormulasDifferential Protection Slope FormulasEarth Electrode Spacing FormulasSolar Array Row Spacing FormulasDC Lighting Voltage Drop FormulasTransformer Loss of Life FormulasMotor Start Voltage Dip in the Cable FormulasNeutral Earthing Resistor FormulasCable I²t Withstand Check FormulasMotor Locked-Rotor Code Letter FormulasSynchronous Speed and Pole FormulasBattery C-Rate and Cycle Life FormulasEV Charging Time FormulasConveyor Belt Power FormulasParallel Plate Capacitor FormulasSolenoid and Coil Inductance FormulasPower Factor Correction Payback FormulasTransformer Through-Fault Current FormulasTransformer EMF Equation FormulasDelta-Star Resistor Conversion FormulasCurrent Shunt Resistor FormulasSolar Energy Yield and Degradation FormulasElectrolysis and Faraday’s Law FormulasAGL Series Circuit Load and CCR Sizing FormulasAGL Maximum Fittings on a CCR FormulasAGL Isolating Transformer FormulasAGL CCR Input Power and Energy FormulasAGL Brightness Step FormulasAGL Lamp Life FormulasComplex Number Formulas: Polar and RectangularPhasor Addition Formulas: Sum and DifferencePercentage Error Formulas for MeasurementsTrigonometry Formulas for Electrical EngineersMean and Standard Deviation FormulasQuadratic, Logarithm and Power FormulasPercentage, Ratio and Rounding FormulasProbability, Combinations and Binomial FormulasConversion Centre

Tell us how to improve this page

This opens your email app. Nothing is sent until you press send.