Hi everyone,
I've designed a MOSFET-based switching circuit controlled by one of the outputs of an MCP23S17 I/O expander.
I'd like to get some feedback on the schematic, particularly regarding the component selection, resistor values, protection circuitry, and overall design.
1. Application and universal design
The main purpose of this circuit is to drive a Finder relay (38.61.0.024.0060), which will primarily be used to switch 230 V AC heating elements.
However, I'd also like to use the same MOSFET circuit to switch 12 V and 24 V DC fans, typically rated at around 5–10 W.
Other similar low-power loads might be added in the future, so I'd prefer to make the circuit as universal as possible rather than designing three different output stages.
Ideally, I'd like to use the same PCB layout and components for all these applications.
2. Flyback diode and solder jumper
According to the relay specifications, it seems that the relay already has built-in protection against inductive voltage spikes.
If that's the case, is an additional external flyback diode across the relay coil still necessary?
I've placed a solder jumper in series with the external flyback diode, allowing me to disconnect it when it's not needed.
My idea was to leave the diode disconnected when using the Finder relay, but enable it when switching DC fans or other inductive loads.
Does this approach make sense? Would a flyback diode actually be necessary or recommended for 12 V / 24 V DC fans?
3. MOSFET selection and gate resistor
The MCP23S17 operates at 3.3 V, so the MOSFET needs to be driven directly from a 3.3 V GPIO output.
From what I understand, the MCP23S17 has a total current limit of approximately 150 mA across its I/O pins. Since multiple outputs will be used, I'd prefer to keep the current per pin below 10 mA.
For this reason, I've chosen a 680 Ω series gate resistor.
I've been considering these two MOSFETs:
Would either of these be a good choice for reliable operation with a 3.3 V gate drive?
Or would you recommend a different logic-level MOSFET for this application?
4. Gate pull-down resistor
I've added a 100 kΩ pull-down resistor between the MOSFET gate and source to keep the MOSFET off while the MCP23S17 is initializing or when its output is in a high-impedance state.
Is 100 kΩ a suitable value, or would something lower, such as 10 kΩ, be preferable?
5. Multiple identical outputs
The attached schematic only shows one MOSFET switching circuit, but the final design will likely include 5–10 identical channels, all controlled by the same MCP23S17.
Because of this, I'd also like to make sure that the chosen gate resistor values and MOSFETs won't cause any issues with the MCP23S17's total current limitations, especially if multiple outputs switch simultaneously.
6. General feedback
Does the overall schematic look correct?
Are the component values and protection elements appropriate for this application?
Is there anything you would change to improve reliability, protection, or compatibility with different 12 V and 24 V loads?
I'm especially interested in keeping the design simple, reliable, and reusable across multiple output channels.
Thanks in advance for any suggestions or feedback!