Learn & build · Electronics · Chapter 5

Real parts

So far every resistor was exactly 1,000 Ω and every battery a perfect 9 V. Real parts are labeled in colors and codes, come only in certain values, are off by a few percent, have limits on heat and voltage, and sag under load. This chapter is the bridge from the simulator to the parts drawer: how to read them, choose them, and not cook them.

In plain words: every part has a value (what it does), a tolerance (how wrong the value may be), and ratings (how much it can take before it's damaged). A good design works across the whole tolerance and stays well inside the ratings.

1. Reading a resistor's colors

Resistors are too small to print numbers on, so they carry colored bands. Read them from the end with the bands bunched together: digit, digit, multiplier, tolerance. Black 0, brown 1, red 2, orange 3, yellow 4, green 5, blue 6, violet 7, grey 8, white 9 (one mnemonic: "Better Be Right Or Your Great Big Venture Goes Wrong"). Change the bands, or play the decoding game.

🎯 Challenge: set the bands to 4.7 kΩ, 5%.

The math, step by step

Two digits make a number from 10 to 99; the multiplier band says how many zeros follow, a power of ten:

\[ R = (10\,d_1 + d_2) \times 10^{m} \ \Omega \]

Yellow, violet, red: \((4, 7) \to 47\), red = 2 zeros, so \(47 \times 10^2 = 4{,}700\) Ω, written 4.7 kΩ or 4k7 (the letter replaces the decimal point, so a smudge can't move it). Gold and silver as multipliers mean ×0.1 and ×0.01, for values under 10 Ω. Precision resistors use five bands: three digits, then the multiplier.

Green, blue, brown, gold. What's the resistance?

Green 5, blue 6 → 56; brown = ×10¹ → 560 Ω, ±5% (gold).

You want 10 kΩ. Which bands?

10 × 10³ = 10,000 Ω. Orange = 3 zeros.

2. Why 4.7k and not 5k: the E-series

Shops don't sell every value. A resistor marked 1 kΩ ±10% could really be anything from 900 to 1,100 Ω, so making a 1,050 Ω part is pointless. Instead the values are spaced so that their tolerance bands just touch, covering every possible value with as few parts as possible. On a log scale (each step multiplies, so 1, 10, 100 are evenly spaced), those values are evenly spaced. Pick a series and move the target.

The math, step by step

The E\(n\) series puts \(n\) values in each decade (1 to 10), each one the same ratio times the one before:

\[ r = 10^{1/n}, \qquad \text{values} \approx 10^{k/n},\ k = 0, 1, \dots, n-1 \]

For E12, \(r = 10^{1/12} \approx 1.21\): 1.0, 1.21, 1.47, 1.78, 2.15, 2.61, 3.16, 3.83, 4.64, 5.62, 6.81, 8.25, rounded to two digits (with a few historic tweaks): 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2. A ±10% band around each reaches about halfway to its neighbor (the gap is 21%), which is exactly why E12 goes with 10% parts. E24 (\(r = 1.10\)) pairs with 5%, E96 with 1%.

In the E6 series, each value is how many times the previous one? (Two decimals.)

\(10^{1/6} \approx 1.468\): 1.0, 1.5, 2.2, 3.3, 4.7, 6.8. Those six are the values you'll see most in old kits.

Your calculation says 5.2 kΩ for a pull-up resistor. What do you buy, and does it matter?

The nearest E12 values are 4.7 kΩ and 5.6 kΩ; either works, because a pull-up's value is rarely critical (anything from 2k to 10k would do). When it is critical, like a precise divider, choose 1% parts from E96, or combine two resistors. Good designs are built so that standard values and their tolerances don't matter.

3. Power ratings: how hot does it get?

A resistor turns \(P = V^2/R\) into heat, and its body can only shed so much. The common small one is rated ¼ W: at that power it runs roughly 70–100 °C above the room. Choose the voltage and resistance, then a package.

🎯 Challenge: 12 V across 100 Ω. Choose the smallest package that stays under half its rating.

The math: thermal resistance

A part's temperature rise is proportional to the power it sheds: \(\Delta T = P \cdot \theta\), where \(\theta\) (theta, in °C per watt) is its thermal resistance, the heat version of Ohm's law. A ¼ W through-hole resistor has \(\theta\) around 300 °C/W in still air: 0.25 W → 75 °C above the room. That's why the rule of thumb is to run parts at half their rating or less: cooler parts last longer and drift less. The same law sizes heatsinks for regulators and MOSFETs.

12 V across 100 Ω. How many watts?

\(12^2 / 100 = 1.44\) W. A ¼ W resistor would burn; a 2 W one runs at 72% of its rating, still warm. A 3 W or 5 W part is the comfortable choice.

4. Capacitors aren't all alike

Ceramic (MLCC)Tiny, cheap, no polarity, pF to tens of µF. Great for decoupling and filters. Catch: high-value ones (X5R, X7R) lose much of their capacitance when you put DC on them.
Aluminum electrolyticLots of µF for the money, for power supplies. Polarized: the stripe is −, and backwards they bulge or pop. Some resistance inside (ESR), they dry out with heat.
FilmStable and accurate, for timing and audio, and for mains (X/Y safety types). Bigger for the same value.
TantalumCompact and stable, polarized. When they fail they can short and burn, so they're used with a margin on voltage.

Decoupling, the ceramic's main job: a chip draws its current in short gulps, nanoseconds long, each time its transistors switch. Its supply is centimeters of wire away, and a wire resists fast changes of current (a wire is a very small coil, chapter 3), so the voltage at the chip dips on every gulp. A 100 nF ceramic soldered right next to the chip's power pin is a small local bucket (chapter 2's stored charge, at nanosecond scale) that covers each gulp before the far supply can. That's why there is one beside nearly every chip on every board.

Ceramic and film capacitors are marked in a code like a resistor's, in picofarads: two digits and a number of zeros. "104" is 10 followed by 4 zeros pF = 100,000 pF = 100 nF = 0.1 µF, the most common capacitor in electronics.

Now the trap with ceramics. A 10 µF, 6.3 V X5R capacitor in a small package, at its rated voltage, can be down to 2–4 µF. Slide the DC voltage across it:

The curve is a typical shape for X5R parts; every datasheet has its own measured one, and it's worth looking at.

A ceramic capacitor is marked "473". How many nanofarads?

47 followed by 3 zeros = 47,000 pF = 47 nF.

An electrolytic capacitor is rated 16 V. Which supply is the right one to use it on?

Rule of thumb: use a capacitor at no more than about 50–80% of its rated voltage. Electrolytics last much longer that way.

5. Batteries sag

A battery is a perfect voltage source with a small resistor inside it. The more current you draw, the more voltage is lost across that inner resistor, and the more the battery warms up. Choose a battery and load it.

The math, step by step

\[ V_{\text{out}} = E - I\,r, \qquad P_{\text{inside}} = I^2 r, \qquad t \approx \frac{\text{capacity (mAh)}}{I\ (\text{mA})} \]

\(E\) is the battery's "open circuit" voltage, \(r\) its internal resistance. A CR2032 coin cell (3 V, about 15 Ω inside) drawing 100 mA loses 1.5 V inside: half its voltage gone. That's why coin cells run watches and sensors, not motors. A lithium-ion 18650 cell has about 0.05 Ω and can give 10 A while losing only 0.5 V.

Runtime from capacity is optimistic at high current: chemistry can't keep up, and usable capacity shrinks (Peukert's law). Datasheets give capacity at a gentle rate, like 20 hours.

A 9 V battery with 1.5 Ω inside powers a 1 A motor. What voltage reaches the motor?

\(9 - 1 \times 1.5 = 7.5\) V. The other 1.5 V is lost inside, as 1.5 W of heat in the battery. That's why 9 V batteries are a poor choice for motors.

A 2,000 mAh battery powers a circuit drawing 50 mA. About how many hours?

\(2000 / 50 = 40\) h, at that gentle current close to what you'd really get.

6. Wires have resistance too

A wire is a long, thin resistor: \(R = \rho L / A\), resistivity times length over cross-section. In thin wires over long runs, that adds up: LED strips at the end of a long run get dim, and a motor at the end of thin wire gets less than it should. Wire sizes in the US are AWG: every 3 gauges smaller number doubles the copper area.

A 12 V LED strip draws 4 A at the end of 10 m of 22 AWG wire (there and back: 20 m). Roughly what happens?

20 m × 0.053 Ω/m ≈ 1.06 Ω; × 4 A ≈ 4.2 V lost and about 17 W of heat in the wire. Use thicker wire (16 AWG: ≈0.26 Ω, 1 V) or feed the strip from both ends.

7. Reading a datasheet

Every part has a datasheet, and the two tables that matter first are these. Here's a typical red 5 mm LED:

Absolute maximum ratings (never exceed, not even for a moment)
parametervalue
continuous forward current30 mA
peak forward current (1/10 duty, 0.1 ms pulses)100 mA
reverse voltage5 V
power dissipation75 mW
operating temperature−40 to +85 °C
Electrical characteristics (at 25 °C, IF = 20 mA)
parametermintypmax
forward voltage VF1.8 V2.0 V2.4 V
luminous intensity200 mcd350 mcd—
peak wavelength—630 nm—

Absolute maximum is the edge of the cliff: the part survives up to there, but isn't promised to work well. Characteristics are what to design with, and the min/max columns, not "typical", are what a design must survive: some LEDs from the same bag will need 2.4 V.

You design for 20 mA from 5 V using the typical VF of 2.0 V: R = (5 − 2.0) / 0.020 = 150 Ω. What's the current through an LED with the maximum VF of 2.4 V?

(5 − 2.4) / 150 ≈ 17.3 mA. And with the minimum 1.8 V: 21.3 mA, still under 30 mA. A design that checks both ends of the range is a design that works with every part in the bag.

The LED is in a circuit where it may see 9 V backwards (say, a battery inserted the wrong way). What does the datasheet tell you?

LEDs are poor at blocking: most are rated for only 5 V reverse. A regular silicon diode (1N4148, 75–100 V reverse) in series protects it.

Design with the min and max columns, not the typical one, and run every part at half its rating or less.

Build any of these in the circuit lab: its resistors have power ratings and glow when overloaded, and its LEDs burn out above 30 mA. Next: the circuit-theory toolkit, how to solve any circuit by hand (Kirchhoff, Thevenin, and AC as spinning arrows).

Previous: Diodes and transistors · All chapters: Learn & build.

Last updated