Passive Components
Lesson 6 of 6beginner
18 min read

Switches, Relays & Fuses

Mechanical & electronic switching, circuit protection

Theory

🎧 Listen to this lesson

Why Switches, Relays & Fuses Matter

Every circuit needs a way to be turned on and off, and every circuit needs protection against excess current. Switches give you manual control, relays let a small signal control a large load, and fuses sacrifice themselves to save the rest of the circuit. These are among the first components you'll use in any real project.

Mechanical Switch Types

Switches are described by the number of poles (independent circuits they control) and throws (positions they can connect to). The naming convention uses abbreviations like SPST, SPDT, DPDT.

  • β€’SPST (Single Pole, Single Throw) β€” the simplest on/off switch. One input, one output. Like a light switch.
  • β€’SPDT (Single Pole, Double Throw) β€” one input, two outputs. Can select between two circuits. Used for A/B switching.
  • β€’DPDT (Double Pole, Double Throw) β€” two independent SPDT switches in one package. Can reverse motor direction or switch stereo audio.
  • β€’Momentary β€” returns to its default position when released (e.g., push-button). Can be Normally Open (NO) or Normally Closed (NC).
  • β€’Latching (toggle) β€” stays in the position you set it to until you move it again.
Key Concept
NO (Normally Open) means the circuit is broken by default β€” pressing the button closes it. NC (Normally Closed) means the circuit is complete by default β€” pressing breaks it.

Physical Switch Styles

  • β€’Toggle switch β€” metal lever that flips between positions. Common in panel-mount applications.
  • β€’Push-button (tactile) β€” small PCB-mount button, great for microcontroller inputs. Very cheap and compact.
  • β€’Rocker switch β€” wide paddle that rocks back and forth. Common in power strips and appliances.
  • β€’Slide switch β€” slides between positions. Often used for mode selection.
  • β€’Rotary switch β€” knob that selects between multiple positions. Used for multi-way selection (e.g., range on a multimeter).
  • β€’DIP switch β€” tiny switches in a row, mounted on PCBs for configuration. Each switch is an independent SPST.

Contact Bounce (Debouncing)

When a mechanical switch closes, the metal contacts don't make a clean single connection. They physically bounce for a few milliseconds, rapidly opening and closing. A human doesn't notice, but a microcontroller counting pulses will see dozens of false triggers.

  • β€’Hardware debouncing β€” an RC filter (resistor + capacitor) on the switch output smooths the bounces. Typical values: 10 kΞ© + 100 nF gives about 1 ms time constant.
  • β€’Software debouncing β€” after detecting a state change, wait 10–50 ms before reading again. If the state is stable, accept it.
  • β€’IC debouncing β€” dedicated chips like the MAX6816 handle debouncing cleanly.
Warning
Always debounce switches connected to digital inputs. Failing to do so is one of the most common beginner mistakes in embedded projects.

Electromagnetic Relays

A relay is an electrically-operated switch. It uses a small current through a coil to create a magnetic field that pulls metal contacts together (or apart). This lets a low-voltage, low-current signal (e.g., 5 V from a microcontroller) control a high-voltage or high-current load (e.g., 230 V mains or a motor).

  • β€’Coil side β€” the control circuit. Typical coil voltages: 5 V, 12 V, 24 V DC. Draws 30–80 mA.
  • β€’Contact side β€” the switched circuit. Contacts are rated for a maximum voltage and current (e.g., 250 VAC / 10 A).
  • β€’NO contact β€” open when relay is de-energised, closes when coil is powered.
  • β€’NC contact β€” closed when relay is de-energised, opens when coil is powered.
  • β€’Changeover (SPDT) relay β€” has both NO and NC contacts plus a common terminal.

Flyback Diode Protection

A relay coil is an inductor. When you suddenly cut power to it, the collapsing magnetic field generates a large voltage spike (Lenz's Law) that can destroy your transistor or microcontroller pin. A flyback diode (also called snubber diode or freewheeling diode) placed across the coil in reverse absorbs this spike.

Warning
Always place a diode (e.g., 1N4001 or 1N4148) across a relay coil with the cathode on the positive side. Without it, the back-EMF spike can be hundreds of volts.

Solid-State Relays (SSR)

A solid-state relay uses semiconductor switching (typically a TRIAC for AC or a MOSFET for DC) instead of mechanical contacts. SSRs have no moving parts, so they don't suffer from contact bounce, are silent, switch much faster, and last longer. However, they have a small voltage drop when on, generate heat under load, and can't handle inrush currents as well as mechanical relays.

Fuses

A fuse is a sacrificial component designed to break the circuit when current exceeds a safe level. Inside the fuse is a thin wire or metal strip that melts when too much current flows, permanently opening the circuit and protecting the rest of the system from damage or fire.

  • β€’Fast-blow β€” melts quickly when rated current is exceeded. Used for sensitive electronics.
  • β€’Slow-blow (time-delay) β€” tolerates brief surges (like motor starting current) but blows on sustained overcurrent. Used for inductive loads.
  • β€’Key ratings: Current rating (e.g., 2 A), voltage rating (e.g., 250 V), and breaking capacity (maximum fault current it can safely interrupt).
  • β€’Glass cartridge fuses β€” transparent body, easy to visually check. Common sizes: 5Γ—20 mm (metric) and ΒΌΓ—1ΒΌ inch (American).
  • β€’Blade fuses β€” colour-coded, used in automotive. Each colour = a current rating.
  • β€’PCB fuses β€” small through-hole or SMD fuses soldered directly onto circuit boards.

Resettable Fuses (PTC Thermistors)

A PTC (Positive Temperature Coefficient) resettable fuse β€” often called a polyfuse or PolySwitch β€” is a polymer device whose resistance skyrockets when it heats up past a threshold. When overcurrent flows, it heats itself, resistance jumps to thousands of ohms, and current drops to a trickle. Once the fault is removed and it cools down, it resets automatically. Great for USB ports, battery protection, and situations where you don't want to physically replace a fuse.

Circuit Breakers

A circuit breaker performs the same function as a fuse but can be reset (flipped back on) instead of replaced. The two main types are thermal (bimetallic strip bends from heat) and magnetic (electromagnet trips a latch on high current). Most home electrical panels use thermal-magnetic breakers that combine both mechanisms. Circuit breakers are more expensive than fuses but more practical for high-power systems.

Choosing the Right Protection

  • β€’For hobby PCBs β€” PTC resettable fuse (convenient, reusable) or small glass fuse.
  • β€’For power supplies β€” Fuse rated slightly above the expected maximum current (e.g., if circuit draws 1.5 A max, use a 2 A fuse).
  • β€’For motors β€” slow-blow fuse to handle startup surge.
  • β€’For mains wiring β€” circuit breaker in the electrical panel.
  • β€’For sensitive equipment β€” fuse + TVS diode for overvoltage protection.
Warning
Never replace a fuse with a higher-rated one or bypass it with wire. The fuse is there to protect wiring and components from fire. If a fuse keeps blowing, find and fix the fault.

Formulas

Interactive Diagram

Interactive Circuit Diagram

9.0V100Ξ©I = 90.0mAP = 810.0mW

Calculator

V=IΓ—RV = I \times R

Enter any 2 values to calculate the rest

Circuit Challenges

Challenge 1 of 2
Fuse Selection

A circuit draws a maximum of 4 A in normal operation. Using the 1.25Γ— rule, what is the minimum fuse rating you should select?

Ifuseβ‰ˆ1.25Γ—ImaxI_{fuse} \approx 1.25 \times I_{max}
+βˆ’24V?FuseA
4A
? A

Calculate & fill in:

A

Knowledge Check

Question 1 of 5

What does SPDT stand for?