Serial at 9600 baudTap 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 doneMeasure the reference
Measure your 10 kΩ with the meter and type the value into RREF.
Build the divider
5V → reference → A0 → resistor under test → GND.
Test each resistor
Swap it in, press Enter, and also measure it with the meter.
Compare
Write both numbers in a table and spot the spread.
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
- Development BoardsBuyArduino Uno R3 × 1
- Tools & InstrumentsBuy
- PassivesBuyResistor 10 kΩ × 1Reference, ideally 1 %
- PassivesBuyResistor 1 kΩ × 10The ones you test
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| 5V | 10 kΩ reference to A0 | Top of divider |
| A0 | Resistor under test to GND | Bottom of divider |
| Multimeter | Across the resistor, out of circuit | Second 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.
| Check | Expected |
|---|---|
| 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 |
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 →
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.
