Four Channel MOSFET IRF540 V4.0+ MOSFET Switch Module Arduino
$11.95 Inc. GST
You save (%)
- Description
- Code Examples
- Additional information
- Reviews (0)
Description
Details
This 4 channel MOSFET is suited to most microcontrollers including the Arduino and Raspberry Pi families.
MOSFETs are an electronic device with excellent switching characteristics.
They are widely used in circuits, such as power supplies switching , motor drivers, lighting dimmer and so on.
it feels like you are getting something for your effort. This particular device has LED’s which light up when switched so you get instant feedback.
It is a 4-channel MOSFET switch, so it has the ability to switch up to four groups of electronic DC circuits.
MOSFET switches can only be used to control DC circuits, this is why its great for motors and LED light strings, Fish tank pumps and filters etc.
Please keep AC away from this board.
Generally speaking MOSFET’s are also high power devices. The IRF540 is capable of switching up to 100V/33A DC.
If you want to go to this sort of high power, you may wish to investigate using heatsinks on the mosfets themselves.
These devices are quite safe to experiment with as they use a 4 port optocoupler to keep the nasty voltages and currents away from your precious microcontroller.
It’s recommended to switch over 9V with these devices, but I was able to quite happily switch 5V.
As always be careful when using electronics and measure any voltage before you apply it to your microcontroller or circuit.
Please not the terminal blocks might come in blue or green.
📌 Code Examples & Usage – 4-Channel IRF540 MOSFET Switch Module
📋 Overview
This 4-channel MOSFET switch module uses IRF540 N-channel MOSFETs to allow a microcontroller to control multiple high-current DC loads independently.
Typical applications:
-
Multiple DC motors or pumps
-
LED strips (multi-zone dimming)
-
Solenoids & valves
-
Heaters
-
Fans
-
Low-frequency PWM power control
Each channel operates as a low-side switch, sharing a common ground.
⚠ IMPORTANT – Read Before Use
🚨 DC LOADS ONLY
-
Suitable for DC loads only
-
NOT for AC mains
-
Load voltage and current must stay within module limits
-
IRF540 is not a true logic-level MOSFET
✔ Best performance with 5V Arduino logic
✔ ESP32 (3.3V) works for light to medium loads
⚙ Key Features
-
MOSFET: IRF540 × 4
-
Control voltage: 3.3V – 5V
-
Supports PWM control
-
Screw terminals for secure wiring
-
Common ground design
-
Ideal for multi-output projects
🔌 Pin & Terminal Overview
Control Side (Low Voltage)
| Pin | Function |
|---|---|
| IN1 | Channel 1 control |
| IN2 | Channel 2 control |
| IN3 | Channel 3 control |
| IN4 | Channel 4 control |
| GND | Logic ground |
| VCC | Logic supply (if required by module) |
Load Side (Per Channel)
| Terminal | Function |
|---|---|
| V+ | Load positive (external supply) |
| OUT- | Switched negative (MOSFET drain) |
📌 All channels share a common ground.
🔌 Typical Wiring – Multiple 12V Loads
Example for four 12V loads:
-
Arduino D5 → IN1
-
Arduino D6 → IN2
-
Arduino D9 → IN3
-
Arduino D10 → IN4
-
Arduino GND → MOSFET GND
-
External 12V+ → Load +
-
Load – → OUT-
-
External 12V- → MOSFET GND
⚠ MCU ground and load supply ground must be connected together
🧪 1️⃣ Arduino Example – Independent ON / OFF Control
✔ Good test sketch
✔ Confirms all four channels work
🧪 2️⃣ Arduino Example – PWM Control (Brightness / Speed)
✔ Ideal for:
-
LED strip dimming
-
Fan speed control
-
Heater power modulation
🧪 3️⃣ ESP32 Example – Multi-Channel PWM (LEDC)
⚠ ESP32 outputs 3.3V, which reduces MOSFET gate drive
✔ Fine for moderate loads
✔ Use logic-level MOSFETs for heavy loads
⚡ Inductive Load Protection (CRITICAL)
If switching motors, pumps, solenoids, or valves, you MUST add flyback diodes.
Recommended:
-
1N4007 (general)
-
Schottky diode (faster response)
Diode wiring (per channel):
-
Stripe (cathode) → V+
-
Non-stripe (anode) → OUT-
This prevents voltage spikes that can destroy MOSFETs.
🧠 IRF540 Logic-Level Warning
The IRF540:
-
Fully enhanced at ~10V gate
-
Partially on at 5V
-
Marginal at 3.3V
✔ Works well for:
-
LED strips
-
Small pumps
-
Fans
❌ Not ideal for:
-
Very high current loads
-
ESP32 heavy PWM applications
👉 For best performance, consider logic-level MOSFET modules (IRLZ44N, AO3400, etc.)
🧠 Tips & Best Practices
✔ Use external power for loads
✔ Add heatsinks for sustained high current
✔ Keep load wiring short and thick
✔ Avoid long PWM cables
✔ Do not exceed per-channel current ratings
Additional information
| Weight | 100 g |
|---|---|
| Dimensions | 260 × 160 × 20 mm |
Only logged in customers who have purchased this product may leave a review.































Reviews
There are no reviews yet.