42. Dual-enable load switch

Circuit

Loading simulator…

Design Approach

The motor must run only when both MCU_RUN and ENABLE are HIGH. Two N-channel MOSFETs in series form a hardware AND function for the motor's ground return, so either LOW input interrupts current without software logic.

How the Circuit Works

  1. Create two switching conditions. The solution adds Q_RUN and Q_ENABLE in series between MOTOR and ground. Both devices are N-channel MOSFETs; neither alone can complete the load path.
  2. Drive the gates independently. RG_RUN = 330 Ω and RG_ENABLE = 330 Ω sit in series with their respective control inputs. PD_RUN = 100 kΩ and PD_ENABLE = 100 kΩ pull each gate to its local source node, keeping the MOSFET off when its control is LOW or disconnected.
  3. Check the ON state. With both inputs at 3.3 V, both MOSFETs conduct. With 0.1 Ω model on-resistance each, their combined 0.2 Ω drop is small relative to the motor model’s 100 Ω resistance, allowing V_MOTOR close to 12 V.
  4. Protect against motor transients. The added D_FLY provides a flyback path across the inductive motor when current is interrupted, reducing the voltage spike at the MOSFETs. With either control LOW, the motor’s path is open and V_MOTOR approaches 0 V.

Verify the Circuit

Test all four combinations of MCU_RUN and ENABLE at 0 V/3.3 V. Expect VMOTOR≤0.1VV_{\mathrm{MOTOR}} \le 0.1\,\mathrm{V} in magnitude for three OFF states and ≥11.8V\ge11.8\,\mathrm{V} when both are HIGH. Try dropping either input while the other remains HIGH.

Key Learnings

  • Series switches implement a reliable hardware interlock: every enable must be present.
  • MOSFET source-referenced gate drive, pull-downs, and flyback protection all matter for inductive load switching.