HW-197 MOSFET4 IRF540N module with two blue screw terminal blocks and a 3-pin signal connector

IRF540N MOSFET Switch Module, 1 Channel, 9 to 24V DC Loads

$6.49 NZD
Save 5% at 3+
Skip to product information
SKU: MOD-IRF540-1CH

IRF540N MOSFET Switch Module, 1 Channel, 9 to 24V DC Loads

$6.49 NZD
Availability:
Order before 7:30am (12pm weekends) for same-day dispatch Dispatch 7 days a week, excluding public holidays

NZ Post: 1-2 days urban · 2-4 days rural

Shipping from $5.99 urban / $9.99 rural, or free pick-up in Te Awamutu.

Buy more, pay less Prices shown are per unit. Add enough of this item and the lower rate applies on its own at checkout. There is no code to enter and you do not need to buy a pack. Choosing a tier here just sets the quantity for you. Larger quantities go out in the same bag, so packing, handling and postage cost us less per unit. We pass that saving straight on to you, so you can buy more for less.

Easy 30-day returns · 12-month warranty

Add these too
Add $50.00 for Free Urban delivery ($88.00 for Rural)
Urban $50 Rural $88

A single MOSFET switch on a small board for turning a 12V or 24V DC load on and off from an Arduino, ESP32 or Raspberry Pi Pico. It suits LED strips, pumps, fans, small motors and solenoids, and it takes PWM, so you can dim a strip or set a motor's speed with analogWrite.

Your signal lights an optocoupler, and the optocoupler turns on the IRF540N from the load supply. So a 3.3V or 5V pin is all it needs, but the load supply has to be 9V or more. On a 5V LED strip or a 6V motor the MOSFET only half turns on and gets hot, so use our 1-channel 5V relay module for low voltage loads. It carries 3A continuously in open air at up to 24V. For bigger motors, or to run one in both directions, our BTS7960 motor driver is the step up.

Specifications

SwitchIRF540N N-channel MOSFET on the load's negative side
Load supply9 to 24V DC, 12V or 24V suits it best
Load current3A continuous with no extra cooling, 5A for a few seconds
Control signalS pin, HIGH turns the load on, 3.3V or 5V logic
Control connector3-pin latched header S, +, - (2.54 mm)
Load connectionsTwo 2-way screw terminals: LOAD -, LOAD +, IN -, IN +
PWMUp to about 1 kHz, so analogWrite on an Uno is fine
Also fittedDiode across the load terminals for motor and coil kickback, indicator LED
Board size47.9 x 30.4 mm, four 3 mm mounting holes

Datasheets

Wiring & getting started

Wiring diagramArduino Uno
MOSFET switch module wired to an Arduino Uno: S to D9, + to 5V, - to GND; a 12V supply to IN - and IN +; the load to LOAD - and LOAD +
Tap the drawing to open it full size.
  1. Connect the load and the supply

    The terminals aren't labelled on the board, so hold it with the screw terminals at the top. The left pair is the load: LOAD - then LOAD +. The right pair is the supply: IN - then IN +. Use a 9 to 24V DC supply and tighten the screws firmly.

  2. Connect your controller

    The header reads S, +, - from left to right. S goes to an output pin (D9 on an Uno), + to 5V (or 3.3V on an ESP32 or Pico) and - to GND. Three female jumper wires push straight on.

  3. Load the test code

    Upload this sketch to an Uno. It switches the load on and off, then fades it up with PWM.

    Example Arduino codeArduino C++
    // IRF540N MOSFET switch module test (MOD-IRF540-1CH).
    // Module S to D9, + to 5V, - to GND on the Uno.
    // Load supply 9 to 24V DC on the screw terminals.
    const int SIG = 9;  // a PWM pin, about 490 Hz on an Uno
    
    void setup() {
      pinMode(SIG, OUTPUT);
    }
    
    void loop() {
      digitalWrite(SIG, HIGH);  // load on
      delay(2000);
      digitalWrite(SIG, LOW);   // load off
      delay(2000);
      for (int duty = 0; duty <= 255; duty += 5) {  // fade up
        analogWrite(SIG, duty);
        delay(40);
      }
      analogWrite(SIG, 0);
      delay(1000);
    }
  4. Check it works

    The load should come on for 2 seconds, go off for 2 seconds, then fade up. If it only glows dimly or the MOSFET gets hot, check the supply is 9V or more. With the load off, LOAD - still reads close to the supply voltage against IN -. That's normal, because the board switches the negative side, so measure across the load instead.

Note: DC only, 24V maximum. Never connect it to household power.

Frequently Asked Questions

Answers to the questions buyers ask most.

Will it work from a 3.3V ESP32 or Pico pin?
Yes. The S pin only lights an optocoupler, and the MOSFET gets its gate drive from the load supply, so a 3.3V or 5V output switches it fully. Connect + to your board's 3.3V or 5V pin and - to GND.
Can I use it with a 5V LED strip or a 5V motor?
Not well. The MOSFET is turned on from the load supply, so below about 9V it only half turns on, gets hot and the load runs dim or slow. Use it with 12V or 24V loads. For a 5V load, a relay module or a logic-level MOSFET board is the better choice.
How much current can it handle?
Plan on 3A continuous at 9 to 24V with the board in open air, and up to 5A for a few seconds, such as a motor starting. The IRF540N itself is rated far higher, but only with its case on a heatsink. On this board it has no heatsink, so if the MOSFET gets too hot to touch, the load is too big.
Can I dim an LED strip or control motor speed with PWM?
Yes. analogWrite on an Uno runs at about 490 Hz on pins 3, 9, 10 and 11, or about 980 Hz on pins 5 and 6, and both work well. Keep the PWM frequency under about 1 kHz. Faster PWM leaves the MOSFET half on for longer on each switch and it runs warm.
Which screw terminal is which?
They aren't labelled on the board. Hold it with the screw terminals at the top. The left pair is the load: LOAD - then LOAD +. The right pair is the supply: IN - then IN +. The 3-pin header at the other end reads S, +, - from left to right.
Why does my meter show 12V on the output when the load is off?
That's normal. The board switches the load's negative wire, so with the load connected and switched off, LOAD - sits close to the supply voltage when you measure it against IN -. Measure across the load itself: it reads 0V when off and the full supply when on.
Do I need to solder anything?
No. The load and supply go into the screw terminals, and three female jumper wires push onto the header pins for the S, + and - connections.

Have a Question About This Product?

Send it through and we will get back to you by email.

Why Buy from NZN

Useful parts, fair prices and someone local to help.

I'm Lukas, an engineering student and maker based in Te Awamutu. NZN grew out of a CNC build that dragged on for months because every missing cable, bolt or electronic part meant another overseas order. I started the shop so Kiwi makers can spend more time building and less time waiting for the next parcel.

  • Stocked here in New Zealand

    Orders are picked and packed in Te Awamutu and dispatched within 24 hours every day, excluding public holidays. NZ Post target delivery is 1-2 days urban and 2-4 days rural. In Te Awamutu and Kihikihi you can choose local delivery at checkout: same day if you order before 8am, otherwise next day.

  • Fair prices, clearly shown

    Prices are kept competitive and quantity discounts are shown upfront. Free delivery starts at $50 for urban addresses and $88 for rural addresses.

  • 30-day returns and 12-month warranty

    Get in touch if something is not right and we will help sort it.

  • Practical product support

    Ask a product question and get help from a real person in New Zealand who knows the range.

You may also like