In industrial automation, PLC programming, and advanced embedded systems, a bool switch refers to the physical electromechanical component—typically a relay or contactor—that translates a binary (True/False or 1/0) logic signal into a high-power physical switching action. To size and wire one correctly, you must match the coil voltage to your logic driver (e.g., 24VDC for PLCs, 5V for Arduinos) and ensure the contact rating exceeds your load’s inrush current, always checking the specific utilization category (like AC-3 for motors) rather than the general resistive rating.
This guide breaks down the exact rating tables, load-specific decision paths, and bench-testing procedures you need to deploy bool switches safely and reliably in 2026.
Decoding the Rating Table: Coil vs. Contacts
A bool switch has two entirely separate electrical circuits: the coil side (the boolean input) and the contact side (the physical load). The coil is an electromagnet that pulls the mechanical armature; the contacts are the metal pads that physically close to pass current. Treating these as a single circuit is the most common cause of fried microcontroller GPIO pins.
| Parameter | Typical Relay (e.g., Omron G2R-2) | Typical Contactor (e.g., Schneider TeSys D) | What It Governs |
|---|---|---|---|
| Coil Voltage | 5VDC, 12VDC, 24VDC, 120VAC | 24VDC, 120VAC, 240VAC | The logic-level 'True' signal required to energize the electromagnet. |
| Coil Power / Current | ~500mW / 40mA at 12VDC | ~5W to 15W / 20mA to 60mA | The current your PLC transistor or MCU GPIO must source/sink. |
| Contact Rating (AC-1) | 10A at 250VAC | 40A at 400VAC | Resistive loads (heaters, incandescent lighting). Not for motors. |
| Contact Rating (AC-3) | 3A at 250VAC | 18A to 32A at 400VAC | Squirrel-cage motor starting and breaking. |
| Breaking Capacity | 1x to 1.5x nominal current | 8x to 10x nominal AC-3 current | Maximum fault current the contacts can safely interrupt without welding. |
When wiring the coil side of a DC bool switch, the collapsing magnetic field generates a massive reverse-voltage spike (inductive kickback) when the logic signal goes 'False'. This will instantly destroy an ESP32 GPIO pin or a PLC transistor output. You must wire a flyback diode (e.g., 1N4007) in reverse parallel across the coil terminals (cathode to positive, anode to negative) to clamp this spike.
Selection Decision Path by Load Type
When looking at a datasheet, which rating column governs this load? The answer is the Utilization Category column, not the headline amperage. A relay rated for '10A' might only handle 3A if that load is an electric motor. Use this decision tree to select the right component.
| Load Type | Inrush Multiplier | Governing Rating Column | Recommended Component |
|---|---|---|---|
| Resistive (Heaters, LEDs) | 1.0x (No inrush) | AC-1 / DC-1 | Standard PCB relay or general-purpose contactor. |
| Inductive (Solenoids, transformers) | 2x to 5x | AC-14 / AC-15 | Heavy-duty relay with high breaking capacity; add RC snubber across contacts. |
| Motor (Compressors, pumps, fans) | 6x to 10x (Locked Rotor) | AC-3 / AC-4 | Motor-rated contactor (e.g., Schneider TeSys). Never use a standard PCB relay. |
| Capacitive (SMPS, LED drivers) | 10x to 50x | Contact welding limit | Relay with high I²t rating; use NTC thermistor to limit inrush. |
Overcurrent Protection: Fuses vs. Breakers
When protecting the contact side of your bool switch, you cannot treat fuses and circuit breakers as interchangeable. A fast-acting semiconductor fuse clears a short circuit in milliseconds, limiting the let-through current (I²t) before the relay contacts can melt or weld together. A thermal-magnetic breaker, however, relies on a time-current curve. If you use a standard Type C or Type D breaker, the magnetic trip might take 20-50 milliseconds to clear a dead short. During that window, thousands of amps can pass through a 10A relay, welding the contacts permanently closed and creating a severe fire hazard. Always match the fuse/breaker clearing time to the relay's short-circuit withstand rating (SCCR) per NFPA 70 (NEC) guidelines.
Wiring, Testing, and Maintenance Protocols
Proper wiring separates the low-voltage logic from the high-voltage load. Keep the coil wiring (often 24VDC or 120VAC control voltage) in a separate wire duct from the contact wiring (mains power) to prevent electromagnetic interference (EMI) from inducing ghost voltages in your PLC inputs.
How to Test Dead and Live
Troubleshooting a bool switch requires a systematic approach with a multimeter. Never guess if a relay is bad; measure it.
- Dead Testing (Power Off & Locked Out):
- Coil Check: Set your multimeter to Ohms (Ω). Measure across the coil terminals (A1 and A2). A healthy 24VDC relay coil typically reads between 1,000Ω and 3,000Ω. If it reads infinite (open) or near zero (short), the coil is burnt.
- Contact Check: Set to Continuity. Probe the Common (COM) and Normally Open (NO) terminals. It should read open (OL). Press the manual test button on the relay; it should beep (near 0Ω). Check COM to Normally Closed (NC) for the inverse.
- Live Testing (Energized - Use Extreme Caution):
- Coil Voltage: Set to AC or DC Volts. Measure across A1 and A2 while the PLC output is 'True'. You must read within ±10% of the nominal coil voltage. A 24VDC coil will fail to pull in reliably below 19VDC due to voltage drop in long control wires.
- Contact Voltage Drop: With the load running and contacts closed, measure the voltage across the COM and NO terminals. A healthy contact will show a voltage drop of less than 0.1V. If you read 2V or more, the contacts are pitted, carbon-fouled, and generating dangerous heat.
When to Repair vs. Replace
The decision to repair or replace depends on the component's physical size and cost. For standard DIN-rail or PCB relays under 20A (like the $8 Omron G2R series), always replace. The labor cost to troubleshoot exceeds the part cost, and internal arc chutes are not serviceable. For heavy-duty motor contactors over 30A (e.g., $150+ Schneider TeSys or Allen-Bradley 100-C series), you can replace just the contact pads or the coil if the main housing and arc chutes are intact. However, if the plastic housing shows heat blistering, or the arc chutes are cracked from repeated motor starting, replace the entire contactor assembly.
Bool Switch FAQ
How do I wire a bool switch to an ESP32 or Arduino digital output?
Never wire a relay coil directly to an ESP32 or Arduino GPIO pin. Microcontroller pins can typically only source 20mA to 40mA, while a standard 5V relay coil draws 70mA to 90mA. Instead, use the GPIO to drive the base of an NPN transistor (like a 2N2222) or a logic-level MOSFET (like an IRLZ44N). The microcontroller switches the transistor, and the transistor switches the relay coil. Remember to place a 1N4007 flyback diode across the relay coil to protect the transistor from inductive kickback when the GPIO goes LOW.
Why is my bool switch coil buzzing loudly on AC power?
An AC-powered contactor or relay uses a shading coil (a small copper ring embedded in the electromagnet's core) to maintain magnetic pull during the zero-crossings of the AC sine wave. If the shading coil is cracked, or if dirt, rust, or a mechanical misalignment prevents the armature from seating perfectly flat against the core, the magnetic field will chatter at 120Hz (on a 60Hz supply). First, clean the mating surfaces of the armature and core with electrical contact cleaner. If the buzzing persists, the shading ring is likely broken, and the coil or entire contactor must be replaced.
Can I use a solid-state relay (SSR) instead of a mechanical bool switch?
Yes, but with specific trade-offs. A Solid State Relay (SSR) uses an optocoupler and a TRIAC or MOSFET to switch the load, meaning it has no moving parts, no coil chatter, and can switch millions of times without mechanical wear. However, SSRs have a higher 'on-state' resistance, meaning they generate significant heat at high currents and require heatsinks. Furthermore, AC SSRs using TRIACs suffer from 'leakage current' (often 1-2mA) when turned off, which can cause small LED loads to ghost or glow faintly. Use mechanical contactors for high-inrush motor loads and heavy industrial environments; use SSRs for high-speed switching (like PWM temperature control) and clean-room environments where mechanical arcing is a hazard.






