PALMATOWN/ tools / library Open the app ▸

Components · Relays

Relays - Level 2: How Relays Work in Your Rig

Driving a coil with a transistor, the flyback diode, latching relays, relay bypass in pedals, switching speakers safely, and relays in amps.

Read it in the app ▸

Level 1 covered what a relay is and how to read one. This level is about using relays: driving the coil, protecting the driver, relay bypass in pedals, switching speakers safely, and relays in amps.

Driving the Coil

A transistor driving a 9 volt relay coil, with a base resistor and a flyback diode across the coil

A relay coil draws real current: a 9 V coil commonly takes 30 to 60 mA, and a large power relay more. That is more than a logic chip, a microcontroller pin or a simple footswitch circuit should supply directly. The standard arrangement:

Why the Flyback Diode Matters

A coil resists any change in its current. When the driver switches it off, the collapsing magnetic field produces a sharp voltage spike, often tens or hundreds of volts, that can destroy the transistor at the first switch-off. The diode gives that energy a path to circulate harmlessly through the coil. It does nothing in normal operation and costs a few cents. Every DC relay coil needs one. A 1N4148 suits small relays; a 1N4001 suits larger ones.

Latching Relays

A latching relay stays in whichever position it was last moved to, with no coil current, until it gets another pulse. Single-coil latching relays flip one way or the other depending on the pulse's polarity; dual-coil types have one coil for each direction. They save power and remember their state, but need a slightly more involved driver.

Relay Bypass in Pedals

Relay bypass: a soft-touch footswitch feeds a toggle circuit and driver that switch a DPDT relay carrying the audio

In a relay-bypass pedal, a soft-touch momentary footswitch tells a small toggle circuit (a flip-flop, or a microcontroller) to flip a DPDT signal relay, which does the actual true-bypass switching:

The trade-offs: it needs power, and a relay switching an audio signal can make a small click. Better designs mute the output for a few milliseconds while the relay moves, or use a relay with low bounce.

Switching Speakers

A relay switching an amp between two speaker cabinets, with a 330 ohm resistor across each output so the amp is never fully unloaded

A relay is a natural fit for remote speaker switching: a footswitch or MIDI system sends a few milliamps to the coil, and the relay's contacts carry the speaker current. Three things decide whether it is safe:

  1. The contacts must be rated for the speaker current. A 100 W amp into 4 Ω puts about 5 A through them, with higher peaks. A power relay rated 10 A to 16 A is the usual choice; a small signal relay is not.
  2. A tube amp must never see an open circuit. Most relays are break-before-make: for a few milliseconds while the armature moves, the common is connected to neither output. A resistor across each output, commonly 330 Ω rated 3 to 5 W in metal oxide, means the amp is never completely unloaded during that gap, or if a cabinet is unplugged. Switching with the amp quiet, or muted, adds a second layer of protection.
  3. Every position must give the amp a safe load. Match the amp's output tap or step up, never down. The Output Transformers series explains why, and the Cab Builder works out the load of each cabinet or combination.

A relay's coil can run from a standard 9 V pedal supply, and an LED driven alongside the coil shows which cabinet is selected.

DANGER: LETHAL VOLTAGE. Relays inside a tube amp, and relays that switch the mains, sit next to lethal voltages. Speaker switching is low voltage by comparison, but an amp's speaker output can still deliver a nasty shock at high power. Unplug the amp before working on anything connected to it, and leave work inside the chassis to someone trained for it. The Cap Drain & Bleeder Calculator explains how filter caps are made safe.

Relays in Amps

Amps often run their relays from a small separate supply of 12 V or 24 V.

When a Relay Beats a Switch, and When It Doesn't

Use a relay when Use a switch when
the control is remote: a footswitch cable, MIDI, a circuit you are standing at the box and turning a knob is fine
one action must switch several circuits at once one circuit is all you need
the current is too heavy for the footswitch and its cable the current is small
quiet, long life and fail-safe bypass matter simplicity and no power supply matter

Common Mistakes

Try It

In Build a Circuit, load Relay-Switched LED and switch the relay between energized and de-energized in the Inspector. Then add a Relay with two poles and wire an LED to each of its NC and NO contacts, so one LED lights in each state, the same idea as a cabinet indicator.

Level 3 covers the numbers: coil current and power, pull-in and drop-out voltages, contact ratings and materials, timing and bounce, life ratings, testing, and choosing a relay.

Next: Relays, Level 3: The Numbers, Testing and Buying ▸

Read it in the app ▸