diodes

diodes are one-way valves for current. they set direction, clamp voltage, and glow (when they’re LEDs).

polarity

fact
current flows from anode → cathode (conventional). the package stripe marks the cathode.

flyback (inductive loads)

coils kick when turned off; the diode gives that energy a safe path.

caution
place the diode as close as possible to the coil; orientation: stripe to +.

common types