Diodes act like a check valve in plumbing. If you plug a battery in backward, a diode can block the current to protect your device from damage. Slide 9: The Transistor (Active)