ToolSphere
All perfboard layouts

MOSFET LED Strip Driver Perfboard Layout

An N-channel MOSFET on the low side of a 12 V LED strip lets a 5 V Arduino pin switch it on and off, or dim it with PWM. The strip's + goes to +12V, its − goes to the MOSFET's drain, and the source goes to ground.

MOSFET LED strip driver perfboard layoutQ1 IRLZ44NR1 220RR2 10kJ1 INJ2 STRIPJ3 12V IN
Open this layout in the simulator Connection check: no shorts, 5 named nets

Red wires carry power, white is ground, yellow and blue are signals. Every hole is an isolated pad; connections are the wires shown. In the simulator you can move parts, add your own and re-run the check.

Parts list

As an Amazon Associate, ToolSphere earns from qualifying purchases.

How it works

A logic-level MOSFET such as the IRLZ44N turns fully on with 5 V on its gate. Its on-resistance is about 0.025 Ω at that gate voltage, so a 2 A strip wastes only

P = I² × R = 2² × 0.025 = 0.1 W

and needs no heatsink. A standard MOSFET such as the IRF540 needs about 10 V on the gate and only half turns on from 5 V, so it gets hot; use a logic-level part.

R1 (220 Ω) in series with the gate limits the current spike when the pin switches the gate's capacitance. R2 (10 kΩ) from gate to ground keeps the MOSFET off while the microcontroller boots, before the pin is configured, so the strip doesn't flash on at power-up.

For dimming, analogWrite(pin, 0…255) on a PWM pin sets the brightness. Join the 12 V supply's ground to the Arduino's ground, or the gate has no reference and the MOSFET won't switch. From a 3.3 V board, pick a MOSFET specified at 2.5 V gate drive (for example AO3400).

Building it, step by step

  1. Run +12V along the top row and GND along the bottom; bring the 12 V supply in on its terminal.
  2. Fit the IRLZ44N with gate, drain and source in that order from the left (check the datasheet).
  3. Fit R1 220 Ω from the GPIO input to the gate, and R2 10 kΩ from the gate to GND.
  4. Wire the source to GND and the drain to the strip's − terminal; the strip's + goes to +12V.
  5. Join the Arduino's GND to this board's GND, then test with digitalWrite before using PWM.

Tools for this build

Frequently asked questions

Which MOSFET can an Arduino drive directly?

A logic-level N-channel MOSFET whose on-resistance is specified at 4.5 V or 5 V gate drive, such as the IRLZ44N. For 3.3 V boards choose one specified at 2.5 V.

Why does my MOSFET get hot?

Usually it is not fully on: a standard MOSFET needs about 10 V on its gate. Use a logic-level part, and check the gate actually reaches 5 V.

Do I need the 10 kΩ pull-down?

It keeps the MOSFET off while the microcontroller starts up and if the wire comes loose. Without it the strip can flicker or turn on by itself.