Projects / Resistor tolerance explorer

Resistor tolerance explorer

Beginner30 minGuided buildReviewed
Arduino Uno5VA0GND10 kΩ referenceUnder test1012 ohm +1.2 % insideResult
Serial at 9600 baud

Tap a part to see what it does.

Tap the parts to see what each one does. A teaching simulation, not a circuit simulator.

Build it step by step

0 of 4 done
  1. UNO

    Measure the reference

    Measure your 10 kΩ with the meter and type the value into RREF.

  2. UNO

    Build the divider

    5V → reference → A0 → resistor under test → GND.

  3. UNO

    Test each resistor

    Swap it in, press Enter, and also measure it with the meter.

  4. UNO

    Compare

    Write both numbers in a table and spot the spread.

In short

How do you build a resistor tolerance explorer?

Measure ten resistors of the same value with a multimeter and with an Arduino divider, then see how far each is from its marked value and whether it is inside its tolerance band. You need Arduino Uno R3, Digital multimeter, Resistor 10 kΩ, Resistor 1 kΩ × 10 and Breadboard 830 Tie Points. It takes 4 steps and about 30 minutes.

Level
Beginner
Time
About 30 min
Parts
5

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
5V10 kΩ reference to A0Top of divider
A0Resistor under test to GNDBottom of divider
MultimeterAcross the resistor, out of circuitSecond opinion

Code

No libraries. Put the 10 kΩ on top and the unknown on the bottom: R = Rref × a / (1023 − a). For values near 1 kΩ, a 1 kΩ reference gives better resolution.

Runs on a virtual Arduino Uno in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

const float RREF = 10000.0;   // measure your reference with the meter and type it here
const float MARKED = 1000.0, TOL = 0.05;

void setup() { Serial.begin(9600); Serial.println("Press Enter for each new resistor"); }

void loop() {
  if (!Serial.available()) return;
  while (Serial.available()) Serial.read();
  long sum = 0;
  for (int i = 0; i < 32; i++) sum += analogRead(A0);
  float a = sum / 32.0;
  float r = RREF * a / (1023.0 - a);
  float err = (r - MARKED) / MARKED * 100;
  Serial.print(r, 0); Serial.print(" ohm, "); Serial.print(err, 1); Serial.print(" % ");
  Serial.println(fabs(err) <= TOL * 100 ? "inside 5 %" : "OUTSIDE 5 %");
}

What the serial monitor should show

Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual Arduino Uno with its sensors at their default values. Your numbers will follow your real readings, but the format should match.

Press Enter for each new resistor

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
A 1 kΩ 5 % resistorBetween 950 and 1050 Ω
Meter vs ArduinoWithin about 2 to 3 % of each other
Ten resistorsMost cluster near the marked value

If it does not work

Reads about 1023

Unknown resistor missing (open).

Reads 0

A0 shorted to GND.

Arduino far from meter

Check RREF and that 5V is really about 5 V.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the resistor tolerance explorer?

Arduino Uno R3, Digital multimeter, Resistor 10 kΩ, Resistor 1 kΩ × 10 and Breadboard 830 Tie Points. Resistor 10 kΩ: Reference, ideally 1 %. Resistor 1 kΩ × 10: The ones you test.

How long does the resistor tolerance explorer take to build?

About 30 minutes for a beginner maker, in 4 steps.

How do I know the resistor tolerance explorer works?

A 1 kΩ 5 % resistor: Between 950 and 1050 Ω. Meter vs Arduino: Within about 2 to 3 % of each other. Ten resistors: Most cluster near the marked value.

Reads about 1023: what should I check?

Unknown resistor missing (open).

Reads 0: what should I check?

A0 shorted to GND.

Arduino far from meter: what should I check?

Check RREF and that 5V is really about 5 V.