To safely trip a 24VDC shunt-trip circuit breaker from a 3.3V or 5V microcontroller, use an interposing relay topology driven by a logic-level N-channel MOSFET. Direct-drive topologies (where the MOSFET switches the shunt coil directly) frequently fail due to inductive kickback and high inrush currents. By isolating the microcontroller from the breaker’s trip coil via an electromechanical relay, you ensure reliable fault-clearing in 24V DC solar, LiFePO4 battery, and telecom panels without frying your control board.
Topology Overview: The Shunt-Trip Interposing Relay
When integrating a Battery Management System (BMS) or an ESP32-based energy monitor with a main DC disconnect, the microcontroller must trigger a circuit breaker relay mechanism—specifically, a shunt-trip accessory attached to a DIN-rail DC breaker.
The topology consists of two isolated domains: the 5V logic domain and the 24VDC trip domain. Here are the specific node labels and signal flow for the control circuit:
- VCC_MCU (5V): Powers the microcontroller and provides the logic-high reference.
- GPIO_TRIP: MCU output pin (e.g., ESP32 GPIO 26). Drives HIGH to initiate a trip.
- R_GATE (1kΩ): Limits gate inrush current to protect the MCU pin.
- Q1 (2N7000): N-channel logic-level MOSFET. Acts as the low-side switch.
- K1_COIL (Omron G2R-1-E-DC24): Interposing relay coil (24VDC, 1150Ω, 21mA).
- D_FLY (1N4148): Flyback diode across K1_COIL to clamp inductive kickback.
- VCC_SHUNT (24VDC): Independent 24V supply for the breaker trip circuit.
- K1_NO (Relay Contact): Normal-Open contact that routes 24V to the shunt coil.
- SHUNT_POS / SHUNT_NEG: Terminals on the breaker’s shunt-trip accessory (e.g., Eaton FAZ-XAA or Schneider A9A26946).
Shunt trip coils are highly inductive and require a massive mechanical inrush current (often 2A to 5A for a few milliseconds) to physically slam the breaker’s trip latch. If you drive this directly with an IRLZ44N MOSFET, the inductive kickback upon turn-off ($V = L \cdot di/dt$) can exceed the MOSFET’s avalanche rating, causing it to fail short-circuit. A failed-short MOSFET means the breaker trips immediately upon power-up and cannot be reset. The interposing relay handles the 24V inductive abuse via robust mechanical contacts, while the 2N7000 only switches a benign 21mA load.
Component Selection & Behavior Matrix
Selecting the right components ensures the breaker trips within the 50ms fault-clearing window required by NFPA 70 (NEC) guidelines for DC systems. Below is the exact bill of materials and design rationale.
| Component | Part Number / Value | Key Parameter | Design Rationale |
|---|---|---|---|
| Driver MOSFET (Q1) | 2N7000 | Vgs(th) = 2.0V max, Id = 200mA | Logic-level threshold ensures full enhancement at 3.3V/5V GPIO. 21mA relay coil is well within its 200mA continuous limit. |
| Gate Resistor (R_GATE) | 1kΩ (1/4W) | Limits Ig peak to ~3.3mA | Protects ESP32/Arduino GPIO pins from exceeding their 40mA absolute max rating during gate capacitance charging. |
| Interposing Relay (K1) | Omron G2R-1-E-DC24 | Coil: 1150Ω / 21mA. Contacts: 16A | Sealed SPDT relay. 16A contact rating easily handles the 300mA-500mA steady-state draw of a 24VDC shunt coil without pitting. |
| Flyback Diode (D_FLY) | 1N4148 | Fast switching, 300mA forward | Clamps the 24V relay coil kickback. Fast recovery prevents the relay from staying engaged too long after GPIO goes LOW. |
| Contact Snubber | 100Ω + 0.1µF (Series) | RC time constant | Placed across K1_NO contacts to suppress arcing when breaking the inductive shunt coil circuit, extending relay life. |
Understanding how component drift or substitution affects the circuit is critical for troubleshooting in the field. The behavior matrix below maps element changes to system outcomes.
| Element Changed | Modification | Resulting Circuit Behavior |
|---|---|---|
| R_GATE | Increased to 10kΩ | MOSFET turn-on time slows to >100µs. Relay chatter may occur if GPIO signal is noisy; breaker trip delay increases slightly. |
| D_FLY | Removed entirely | Inductive kickback from K1_COIL spikes to >60V. Q1 avalanches and degrades. After 10-20 trips, Q1 fails short, locking breaker open. |
| VCC_SHUNT | Drops to 18VDC | Shunt coil may not generate enough magnetic force to pull the breaker latch. Breaker fails to trip during a BMS fault condition. |
| K1 (Relay) | Swapped for 5V reed relay | Reed relay contacts will weld together instantly due to the high inrush current of the shunt coil, permanently tripping the breaker. |
Failure Mode Analysis: Extremes and Faults
In protective relay design, you must analyze what happens when components fail. According to All About Circuits guidelines on inductive loads, flyback diode orientation and MOSFET failure modes are the most common culprits in burned control boards.
Extreme 1: Q1 Fails Short (Drain-to-Source)
The Fault: Q1 suffers thermal runaway or avalanche breakdown and shorts internally.
The Result: The Omron relay energizes permanently the moment 24VDC is applied to the panel. The main circuit breaker trips instantly and cannot be manually reset because the shunt coil remains energized, holding the mechanical latch open.
The Fix: Replace Q1 and D_FLY. Verify the shunt coil hasn't burned out from continuous duty (shunt coils are typically rated for intermittent duty only; they burn up if held for >5 seconds).
Extreme 2: D_FLY Installed Backwards
The Fault: The 1N4148 cathode (stripe) is accidentally pointed toward GND instead of VCC_SHUNT (24V).
The Result: When Q1 turns on, it creates a dead short from 24VDC directly to GND through the diode. The 2N7000 will instantly vaporize, breadboard traces will melt, and the 24VDC power supply will either brown out or trip its own internal protection.
The Fix: Always verify diode polarity with a multimeter's diode-test mode before applying power. The stripe must face the positive voltage rail.
Extreme 3: Shunt Coil Open Circuit
The Fault: The wire to the breaker's SHUNT_POS terminal breaks or the internal coil burns out.
The Result: The MCU sends the trip signal, the relay clicks, but the breaker stays closed. The BMS logs a "Trip Failure" if it monitors breaker auxiliary contacts, but the battery remains connected to a fault.
The Fix: Implement a supervisory circuit that reads the breaker's auxiliary (AUX) contact to confirm physical state change within 200ms of the GPIO_TRIP signal going HIGH.
Breadboard Testing Procedure
Before wiring this into your DC subpanel, validate the logic and relay switching on your workbench using a safe, low-current dummy load.
- Wire the Logic Domain: Place the 2N7000 on the breadboard. Connect the Source to GND. Connect the Gate to your ESP32/Arduino GPIO via the 1kΩ resistor. Leave the Drain floating for a moment.
- Wire the Relay Coil: Connect the Omron G2R-1-E coil pins across the 24VDC supply rails. Insert the 1N4148 in parallel with the coil, ensuring the cathode stripe points to the +24V rail. Connect the Drain of the 2N7000 to the negative side of the relay coil.
- Create the Dummy Load: Instead of the actual breaker shunt coil, wire a standard red LED in series with a 1kΩ resistor. Connect this series pair across the 24VDC supply, but route the positive side through the relay’s NO (Normal Open) and COM (Common) contacts. This LED simulates the shunt coil drawing ~20mA, safely within breadboard limits.
- Power Up and Verify Logic: Apply 5V to the MCU and 24V to the relay/shunt domain. Upload a simple sketch that pulses the GPIO HIGH for 200ms every 5 seconds. (Shunt trips only require a 100ms-200ms pulse; continuous HIGH will burn the coil).
- Observe the Switching: You should hear the Omron relay click sharply every 5 seconds, and the dummy-load LED should flash in sync. If the LED stays dimly lit, your 2N7000 is likely damaged or wired backward.
- Measure the Kickback (Optional but Recommended): Connect an oscilloscope probe to the Drain of the 2N7000. Trigger on the falling edge of the GPIO pulse. You should see the Drain voltage spike to roughly 24.7V (24V + 0.7V diode drop) and clamp immediately. If you see ringing exceeding 30V, your flyback diode is too slow or has poor breadboard contact resistance.
Once validated on the bench, mount the Omron relay and 2N7000 on a proper PCB or DIN-rail terminal block setup inside your panel. Connect the relay contacts to the actual breaker shunt trip terminals, ensuring you use 18 AWG wire for the 24V trip circuit to handle the inrush without excessive voltage drop. Always verify the main bus is de-energized and locked out before terminating the breaker's main power lugs.






