For 1A to 5A DC bench projects, the definitive short circuit protector topology pairs an LM393 dual comparator with a P-channel MOSFET (like the IRF9540N). Unlike simple BJT current limiters that dissipate massive heat and drop voltage during a fault, this comparator-driven solid-state breaker trips in under 5 microseconds, exhibits milliohm-level on-resistance during normal operation, and auto-resets when the fault clears. Below is the complete design walkthrough, behavior matrix, and breadboard verification sequence for a 12V, 2A system.
The Verdict: Choosing Your Short Circuit Protector Topology
Before wiring components, you must match the protection topology to your load profile. Relying on a linear regulator's internal thermal shutdown is too slow for inductive kickbacks, while dedicated hot-swap ICs are overkill for simple LED drivers. Use this decision path to select your approach.
| Load Profile & Constraint | Topology Choice | Concrete Part / Pick |
|---|---|---|
| < 500mA, fixed 5V/3.3V, cost is paramount | Linear Regulator with internal thermal/current limit | LM7805 or AMS1117 |
| 1A – 5A, 5V – 24V, requires fast microsecond trip | Comparator + P-MOSFET High-Side Breaker | LM393P + IRF9540N (Default Pick) |
| > 5A, requires strict latching, UVLO/OVLO, and reverse polarity | Dedicated Hot-Swap / Electronic Fuse IC | Analog Devices LTC4368 or TI TPS2553 |
Default Recommendation: For the vast majority of DIY robotics, Arduino/ESP32 peripheral buses, and 12V LED arrays, the LM393 + IRF9540N topology is the correct pick. It costs under $1.50 in discrete parts, fits on a standard solderless breadboard, and avoids the complexity of programming a microcontroller-based ADC fault loop.
Topology Deep-Dive: High-Side Comparator Breaker
This circuit sits on the high side of your load, meaning it interrupts the positive voltage rail while the ground remains common. This is critical for microcontroller projects; breaking the ground return can cause floating grounds and back-feed current through GPIO pins, instantly bricking an ESP32 or Arduino.
Node Labels and Signal Flow
- VIN: Unregulated or regulated DC input (e.g., 12V).
- V_GATE: The junction between the LM393 output, the gate pull-up resistor, and the MOSFET gate.
- V_SENSE: The node between the current-sense resistor and the load. This voltage rises proportionally with load current.
- V_REF: The fixed reference voltage fed to the comparator's non-inverting input, setting the trip threshold.
- VOUT: The protected output rail feeding the load.
- GND: Common system ground.
Why This Over a BJT Pass Transistor?
The classic alternative is a BJT current limiter (e.g., a TIP32C PNP pass transistor driven by a 2N3904 sense transistor). While simpler, the BJT topology has a fatal flaw for modern electronics: it operates in the linear region during a fault. If your 12V load shorts, the BJT drops the remaining voltage across its collector-emitter junction, turning into a 12W+ heater that requires a massive heatsink and still allows a 'foldback' current to trickle through. The LM393 + MOSFET design operates as a true switch. When V_SENSE exceeds V_REF, the comparator snaps the MOSFET gate high, cutting off the channel entirely in microseconds with zero continuous heat dissipation.
Behavior Matrix: How Component Shifts Alter Trip Points
Understanding how individual component drift or substitution affects the system is crucial for debugging. Here is how the circuit reacts when one element changes.
| Element Changed | Modification | System Result |
|---|---|---|
| R_SENSE (0.22Ω) | Increases to 0.33Ω | Trip current drops from 2.0A to 1.33A. Normal operation voltage drop increases. |
| V_REF Divider (R_TOP) | Resistance increases | V_REF voltage drops. Comparator trips earlier, reducing the maximum allowable load current. |
| Gate Pull-up (10kΩ) | Decreases to 1kΩ | MOSFET turns off faster during a short, but LM393 must sink more current (12mA vs 1.2mA) to hold it off. |
| Load | Shorts to GND (0Ω) | V_SENSE spikes to VIN. LM393 pulls V_GATE low. IRF9540N turns off. VOUT drops to 0V. |
Design Walkthrough: Sizing a 12V / 2A Protector
Let's size the exact components for a 12V nominal supply that must trip precisely at 2.0A. We are using the TI LM393P (DIP-8 package) and an IRF9540N P-channel MOSFET (TO-220 package, Vds = -60V, Vgs max = ±20V).
1. Sizing the Sense Resistor (R_SENSE)
We need a voltage drop that the LM393 can reliably read without being swamped by its own input offset voltage (which can be up to 5mV-7mV). A 0.2V to 0.5V drop is ideal.
- Target Trip Current (I_trip): 2.0A
- Target Sense Voltage (V_sense): 0.44V
- Resistance: R = V / I = 0.44V / 2.0A = 0.22Ω
- Power Dissipation: P = I² × R = 4 × 0.22 = 0.88W. Use a 2W or 3W ceramic power resistor to keep it cool.
2. Setting the Reference Voltage (V_REF)
The LM393's inverting input (Pin 2) connects to V_SENSE. The non-inverting input (Pin 3) connects to V_REF. We need V_REF to be exactly 0.44V. We derive this from the 12V VIN using a voltage divider.
- Let R_BOTTOM = 1kΩ.
- V_REF = VIN × [R_BOTTOM / (R_TOP + R_BOTTOM)]
- 0.44V = 12V × [1000 / (R_TOP + 1000)]
- R_TOP ≈ 26.2kΩ. Use a standard 27kΩ resistor in series with a 1kΩ trimpot to dial in the exact 0.44V threshold on the bench.
3. Gate Drive and Pull-Up
The IRF9540N turns ON when its gate is pulled sufficiently below its source (VIN). The LM393 features an open-collector output. It can sink current to GND, but it cannot source current. Therefore, we need a 10kΩ pull-up resistor from V_GATE to VIN. When the LM393 output is high-impedance, the 10kΩ pulls the gate to VIN, keeping Vgs at 0V (MOSFET OFF). When the LM393 triggers, it sinks the gate to GND, applying -12V Vgs and snapping the MOSFET ON.
Extreme Failure Modes: What Breaks at the Limits
A protector is only as good as its failure modes. Here is the failure-mode contrast when critical elements open or short.
- R_SENSE Shorts (0Ω): Catastrophic failure. V_SENSE drops to 0V. The LM393 never triggers. The IRF9540N remains fully ON, passing the full short-circuit current of your power supply until the MOSFET exceeds its 18A continuous drain limit and melts, or the upstream power supply catches fire.
- R_SENSE Opens (Infinite Ω): Safe failure. V_SENSE floats or drops to 0V depending on leakage. The load loses power. The LM393 output stays high-impedance, keeping the MOSFET off. The circuit safely refuses to power the load.
- LM393 Output Shorts to GND: Catastrophic failure. V_GATE is permanently pulled to GND. The IRF9540N is locked in the ON state. The circuit acts as a dumb wire with zero short-circuit protection.
- Gate Pull-Up Resistor Opens: Safe failure. The gate floats. The MOSFET may chatter or remain off due to parasitic capacitance. The load will not power up reliably, preventing unseen hazards.
Step-by-Step Breadboard Verification
Do not connect your load until you have verified the control logic. Follow this exact sequence to avoid frying your comparator.
- Build the V_REF Divider: Wire the 27kΩ and 1kΩ (plus trimpot) between VIN and GND. Power the rail to 12V. Use your DMM to measure the junction. Adjust the trimpot until you read exactly 0.440V.
- Wire LM393 Power: Connect Pin 8 to VIN (12V) and Pin 4 to GND. Do not skip this; the LM393 will not function on phantom power from the input pins.
- Verify Comparator Logic: Connect V_REF (0.44V) to Pin 3 (IN+). Temporarily connect a 1kΩ resistor from Pin 2 (IN-) to VIN. Measure Pin 1 (OUT). It should read near 0V (LM393 is sinking). Disconnect the 1kΩ from VIN and tie Pin 2 to GND. Pin 1 should now float high (pulled up to 12V by the 10kΩ gate resistor).
- Integrate the MOSFET: Connect the IRF9540N Source to VIN, Drain to one side of the 0.22Ω R_SENSE. Connect the Gate to the LM393 Pin 1 and the 10kΩ pull-up to VIN. With Pin 2 tied to GND, measure the Drain. It should read ~12V (MOSFET is ON).
- Simulate a Fault: Move the Pin 2 connection from GND to VIN (simulating V_SENSE > V_REF). The LM393 should instantly pull the Gate low. Measure the Drain; it should drop to 0V (MOSFET is OFF).
- Live Short Test: Connect a 10Ω dummy load (drawing ~1.2A) to VOUT. Verify normal operation. Finally, take a thick jumper wire and briefly short VOUT to GND. You should hear a faint click from the breadboard contacts, and the DMM on VOUT should read 0V. Remove the short; the 12V output should auto-reset instantly.
By terminating your design decisions with this specific comparator-MOSFET pairing, you eliminate the thermal runaway risks of BJT limiters and the programming overhead of MCU-based ADC monitoring. For loads exceeding 5A, transition to a dedicated hot-swap controller like the LTC4368, but for the 1A–5A workbench sweet spot, the LM393 topology remains the undisputed standard.






