Skip to content
If this is your first visit, please click here to learn about shipping and delivery.
If this is your first visit, please touch here to learn about shipping and delivery.
Labelled surface-mount resistor sample book with selectable package sizes

Designing an ADC Voltage Divider with 0805 Resistors: Ratio, Loading and Error

Two resistors can reduce a voltage to a range a microcontroller can measure. That simple circuit becomes less simple when you need trustworthy readings: resistor tolerance changes the ratio, the ADC loads the divider and startup conditions may differ from normal operation.

This guide works through a low-voltage measurement example. It is not a mains-voltage measurement circuit. The resistor package affects assembly and ratings, but the complete divider and ADC determine the result.

Define the highest input voltage first

Start with the highest voltage that can actually reach the measurement connector, including normal supply tolerance and expected operating excursions. A supply described as nominally 12 V is not necessarily limited to exactly 12 V.

Then read the ADC's usable input range, reference requirements and absolute maximum limits. These are not always identical. Allow margin below the usable upper limit so component tolerances and small errors do not immediately clip the reading.

PMD Way's 0805 resistor collection includes prototype assortments. The selectable SMD resistor sample book has an 0805 option; confirm that package when ordering. Its stated tolerance does not establish a universal power or working-voltage rating for every resistor series.

Calculate the nominal ratio

Call the resistor from the input to the sensing node Rtop, and the resistor from the sensing node to ground Rbottom. With no significant output loading:

ADC voltage = input voltage × Rbottom ÷ (Rtop + Rbottom).

For an illustrative input that is genuinely limited to 12.0 V, choose 33 kΩ above the node and 10 kΩ below it. The nominal divider ratio is about 0.2326, producing approximately 2.791 V at the ADC node.

This example leaves some nominal headroom for an ADC whose usable range includes that voltage. It is not automatically suitable for every 3.3 V board, reference configuration or power sequence. Confirm those details before connecting it.

Calculate tolerance in the unfavourable directions

For the highest divider output, the top resistance decreases while the bottom resistance increases. If both example resistors have independent ±1% tolerance, use 32.67 kΩ and 10.10 kΩ. The resulting output at 12 V is about 2.834 V.

For the lowest output, use 33.33 kΩ and 9.90 kΩ, giving about 2.748 V. The ratio error is therefore roughly ±1.5% in this example, before ADC, reference and temperature errors. It is not simply the tolerance printed on either resistor.

Vishay's discussion of divider accuracy explains why relative tolerance and temperature tracking matter. A matched resistor network can be useful when the ratio must remain stable, but its guaranteed ratio specifications need to be checked explicitly.

Separate ratio from resistance scale

A 330 kΩ and 100 kΩ pair has the same nominal ratio as 33 kΩ and 10 kΩ, but it behaves differently as an ADC source. The higher-value pair draws less current and is more sensitive to loading and leakage.

The original 43 kΩ total draws about 279 µA at 12 V. Its top resistor dissipates about 2.57 mW. These values are modest, but still compare them with actual component ratings and temperature derating. Working voltage must also be checked independently of power.

The divider's source resistance, for an ideal low-impedance input supply, is Rtop in parallel with Rbottom. For 33 kΩ and 10 kΩ this is about 7.67 kΩ. That is the resistance the ADC sees looking back into the divider, not 43 kΩ.

Allow the ADC input to settle

Many ADC inputs charge an internal sampling capacitor during an acquisition interval. A high source resistance can prevent that capacitor from settling accurately before conversion. The effect can become more obvious after changing channels or increasing sample rate.

Microchip's discussion of tracking time and source impedance illustrates this relationship. Use the limits and timing controls for your actual ADC; there is no single maximum divider resistance that applies to every microcontroller.

Possible solutions include reducing resistance, increasing the acquisition time where supported or using a suitable buffer. A capacitor at the sensing node can help provide local charge and filtering, but its value changes response time and must be considered with the ADC's sampling behaviour.

Texas Instruments' SAR ADC input-design material works through these relationships. Adding a very large capacitor and hoping for the best can make a voltage monitor slow to respond to a real change.

Check loading and leakage paths

Any additional resistance from the sensing node to ground changes the effective bottom resistance. This includes test equipment, protection components and other connected circuits. A divider that reads correctly with one instrument can shift when a lower-impedance device is attached.

Input leakage causes an error related to source resistance, and leakage can change with temperature. Flux residue or contamination around a high-impedance node can add another unwanted path. Keep the PCB clean and route the sensing node away from noisy switching connections.

Place labelled test points at the input, sensing node and measurement ground. They make it possible to distinguish an incorrect divider voltage from an ADC conversion or software-scaling problem.

Plan for power-off and overvoltage conditions

Consider what happens if the measured source is present while the microcontroller is unpowered. The ADC pin may conduct through internal protection structures or feed a supply rail. A divider selected only for normal running voltage does not automatically make this condition acceptable.

Analog Devices' ADC input-protection article explains why clamp paths and the rails receiving that current must be considered. Design protection to the actual device limits, including leakage and its effect on accuracy. Do not treat internal protection diodes as general-purpose voltage regulators.

Verify the measurement chain

Before connecting the ADC, apply several known low-voltage inputs and measure the divider output. Then connect the ADC and repeat, using the intended acquisition settings and channel sequence. Compare measurements at low, middle and high points within the permitted range.

If the ratio is consistently offset, calibration may correct an initial gain error. It cannot fix clipping, inadequate settling or unsafe input conditions. Record the fitted resistor values, reference configuration and calibration method with the board revision. That makes a simple divider a measurement circuit you can explain and reproduce.

Previous article Battery Power for Arduino Projects: Voltage Range, Runtime and Regulator Heat