Electronics for Building Things · Lesson 11 · Components in Depth

Diodes in Depth

The one-way valve — and the three jobs it quietly does in your projects.

A diode does one simple thing: it lets current flow one way and blocks the other. That simplicity hides three genuinely useful tricks — including one that can save your board from a backwards battery.

The one win You can read a diode's direction, and you know when to add one: protecting against coil spikes and against reversed power.

The one-way valve

A diode conducts when current flows from its anode (the flat side of the triangle symbol) to its cathode (the bar). Push the other way and it blocks (SparkFun: Diodes).

anode (+) cathode (−) = banded end current flows this way only →
On a real diode, a painted band marks the cathode — the end the bar points to. Current flows toward the band, not away.

Two facts to carry: a conducting diode "uses up" a small fixed voltage — about 0.7 V for an ordinary silicon diode, or ~0.3 V for a Schottky (a fast, low-loss type). And the band marks the cathode — that's how you orient one.

Job 1 — Flyback protection (you've met this)

From Lesson 6: when you switch off a coil or motor, it kicks back a high-voltage spike. A flyback diode placed across the coil (band toward +) gives that spike a harmless loop to die in, protecting your transistor. This is the diode you'll add most often.

Job 2 — Reverse-polarity protection

Plug a power supply in backwards and you can instantly destroy a project. A single diode in series with the incoming + blocks current entirely if the supply is reversed — cheap insurance, at the cost of that ~0.7 V drop (use a Schottky to lose less).

Rule of thumb Switching a coil/motor? Add a flyback diode (or use a relay/motor module that has one). Building something powered by a battery or barrel jack you might insert wrong? Consider a series protection diode.

Job 3 — Rectification (good to recognize)

Because diodes pass only one direction, they convert alternating current (AC) into one-directional (DC) — the first step inside every wall adapter. You rarely build this yourself, but now the symbol on a power-supply schematic makes sense.

The family, briefly

Check yourself

Read this next (primary source) SparkFun — Diodes. Covers the symbol, the types, and the protection circuits in beginner terms.
I'm your teacher — ask me anything. Not sure which way a diode goes, or which type to buy for a job? Send me the part number or the task and I'll point you the right way.

See also: Glossary · Component field guide · Rules of thumb