A resistor converts electrical energy into heat in proportion to current squared. That is its entire physics, and it is why the power rating exists.
// 4-band: digit digit multiplier tolerance brown black red gold = 1 0 ×100 ±5% = 1000Ω = 1k red red brown gold = 2 2 ×10 ±5% = 220Ω 0 blk 1 brn 2 red 3 org 4 yel 5 grn 6 blu 7 vio 8 gry 9 wht
Honestly, most people stop decoding bands and measure with a multimeter or buy a kit in labelled compartments. Do the latter, and keep it sorted from day one — loose mixed resistors are a genuine time sink and the reason many kits go unused.
| Property | What to know |
|---|---|
| E12 series | Available values are 10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82 and their decades. There is no 237Ω — you round to 220Ω or 240Ω. |
| Tolerance | ±5% (gold) or ±1% (brown). Irrelevant for LED limiting; relevant in dividers and timing. |
| Power rating | 0.25W is standard and fine for logic-level work. Check P = I²R whenever current exceeds ~30mA. |
| SMD marking | Three digits: first two are significant, third is zeros. 103 = 10 followed by 3 zeros = 10kΩ. |
// dropping a 5V signal to 3.3V for an input pin R1 = 1.8k, R2 = 3.3k Vout = 5 × 3300 / (1800 + 3300) = 3.24V ✓
Replace one resistor with a variable one — a thermistor, LDR or potentiometer — and the output voltage tracks a physical quantity, ready for an ADC input.
Choosing the fixed resistor: pick a value near the sensor's mid-range resistance. An LDR that swings 1kΩ (bright) to 100kΩ (dark) pairs well with about 10kΩ — that places the useful range in the middle of the ADC's span rather than squashed at one end.
Without one of these, an unconnected input pin picks up stray charge and reads randomly — which looks exactly like a flaky sensor or a software bug. Most microcontrollers have internal pull-ups you can enable in one line of code; use them and save a component.
You build a 5V-to-3.3V divider with 1.8k and 3.3k, and use it to power a small 3.3V sensor module. The sensor behaves erratically. Why?
P = I²R, then pick a part rated at least twice that. Derating is not paranoia — a resistor at exactly its rating runs hot enough to discolour boards and shift its own value.