Case File: What the Stripes Say
A technician tips a box of mixed resistors onto the bench and has to sort them by value. A resistor is too small to carry a number, so its value is written in coloured bands: two or three digits, a multiplier and a tolerance. Decode four-band and five-band parts, including the gold and silver multipliers that give values below ten ohms, and work out the lowest and highest value that each part may really have. Run the decoder on lists that you cannot see. The parts are generated for you alone.
Sabi Logistics · Bench 1
What the Stripes Say
A tracker board was built with the wrong resistor in two places and the LEDs on forty units stayed dark
Bisi Field technician ·
Bisi. We built forty tracker boards last week and the status LEDs stay dark on all of them. I measured one: the resistor next to the LED is 4.7 kilohms, and the drawing says 470 ohms. Somebody read the stripes wrongly, or the box was mixed.
I have tipped out the whole box of loose resistors and listed the bands of each one. I need a small program that reads the bands for me, tells me the value, the tolerance, and the lowest and highest value that the part may really have, so that I can sort the box in a minute and never trust my eyes at the end of a long shift.
The brief
What you need to know first.
- Two kinds. A 4-band resistor has two digit bands, a multiplier and a tolerance. A 5-band resistor (the precise kind) has three digit bands, a multiplier and a tolerance. The way to tell: you read from the end where the bands are close together, and the last band is the tolerance.
- The colours. Digits: black 0, brown 1, red 2, orange 3, yellow 4, green 5, blue 6, violet 7, grey 8, white 9. The multiplier is the same colours as a power of ten (brown x10, red x100, orange x1000), plus gold x0.1 and silver x0.01. Tolerance: brown 1 percent, red 2, green 0.5, blue 0.25, violet 0.1, grey 0.05, gold 5, silver 10.
- The value. Join the digit bands into one number and multiply: yellow violet red is 47 x 100 = 4700 ohms. Yellow violet gold is 47 x 0.1 = 4.7 ohms. Round to 3 decimals.
- The range. The part may be anything from
ohms x (1 - tolerance/100)toohms x (1 + tolerance/100). A 5 percent 470 ohm part can measure from 446.5 to 493.5. - Fill in
decode(bands)returning{"ohms", "tolerance_pct", "min", "max"},decode_all(req),results,n_five_bandandtotal_ohms. The checks rundecode_allon lists that you cannot see: gold and silver multipliers, 5-band parts and an empty list.
The lab gives you the data for this case, invented and generated for you alone.
Preparing your data…
On the bench
The lab did the arithmetic with a script. These are the measurements that settle the question on a real board.
| You want to | Do this | What you see |
|---|---|---|
| settle a doubt about a resistor value | Set the multimeter to ohms, touch the leads to the part out of circuit | the real value, to compare with the bands and the tolerance range |
| check a part that is already soldered in | Lift one lead, then measure across the part | a reading that no parallel part can disturb |
| tell a 4-band part from a 5-band one | Find the end where the bands are close together and count them | three digit bands plus a multiplier means a 5-band part |
Work at low voltage only, and never open or probe mains-powered equipment.
Bisi: “The boards had 470 where 4700 was needed, so the bands were fine and the part was wrong. How do I stop the wrong part reaching the board at all?”
🔒 The debrief unlocks when you close the case. Finish the lab above.
The debrief
Bisi: “So reading the stripes is only half of it. The box and the machine need to agree.”
What a senior technician would do next. Measure, do not trust. A multimeter in resistance mode takes three seconds and settles any doubt: put the part on a breadboard or hold the probes on the leads, out of circuit, because other parts in parallel change the reading. Use reels and bags with labels, never a loose box. On a production run, check the first board against the drawing before the others are built, and use SMD parts, whose values are printed as numbers (a code such as 472 means 47 and two zeros, which is 4.7 kilohms). Remember the tolerance: a 5 percent part that reads 4 percent off is fine, and a part that reads 20 percent off is a different part. Colour blindness and bad lighting are real: the meter is the fair judge.
The trap. Reading the multiplier as a digit. Count the bands first: three digits and a multiplier is a 5-band part.
Write the resistor sorting note
Write the note for the field technician: how 4-band and 5-band resistors are read (digits, multiplier, tolerance, gold and silver), what the decoder found in the box (how many five-band parts, the total value), what the tolerance range means for a real measurement, why forty boards had the wrong part, and how to prevent it (measure out of circuit, labelled reels, checking the first board, SMD codes, a drawing that lists the colours).
🧪 Want to practise this on your own computer? See how to set up your lab →