So, I had this little project where I needed to turn something on and off that needed a bit more power than my little microcontroller board could safely push out. You know how it is, try to run a beefy motor directly from a digital pin and you’re asking for smoke. Not doing that again. That’s when I remembered those MOSFET thingamajigs are pretty good for this kind of switching job.

Figuring Out What I Needed
First things first, I had to get my parts lined up. It wasn’t anything too fancy. I knew I needed the MOSFET itself, of course. I grabbed a common N-channel one, the kind that’s easy to get and usually does the trick for switching the negative side of the load. Then, I remembered reading somewhere that you really should have a resistor on the gate pin of the MOSFET. Something about protecting the microcontroller pin and the MOSFET itself. Sounded like a good idea.
- The MOSFET (I used an IRFZ44N, had a few lying around)
- A resistor, something like a 220 ohm or 1k ohm for the gate. I found a 1k.
- Another resistor, maybe a 10k ohm, for a pull-down. I’ll explain that bit later.
- The thing I wanted to control – in this case, a strip of LEDs that were way too bright for a direct connection.
- My trusty Arduino Uno to send the control signal.
- A breadboard and a bunch of jumper wires. Can’t do much without those.
- A separate power supply for the LED strip because, again, the Arduino USB power wasn’t going to cut it.
Putting It All Together
Alright, so I plonked the MOSFET onto the breadboard. These things usually have three legs: Gate, Drain, and Source. Had to quickly look up the datasheet for the IRFZ44N to make sure I knew which leg was which. Don’t want to mess that up.
The basic idea was simple: the Arduino tells the Gate when to open or close. When it’s “open,” current flows from the Drain to the Source, turning my LEDs on. For an N-channel MOSFET used in low-side switching, the Source usually goes to ground. The load (my LED strip) goes between the positive of its power supply and the Drain pin of the MOSFET. The negative of the LED power supply also connects to the Arduino’s ground and the MOSFET’s Source.
So, I wired the LED strip’s positive wire to its power supply’s positive terminal. Then, the LED strip’s negative wire went to the Drain pin of the MOSFET. The Source pin of the MOSFET, I connected straight to the ground rail of my breadboard. This ground rail was also connected to the Arduino’s ground and the negative of the LED power supply. Common ground is key, folks!
Next up, the Gate. I connected one end of my 1k ohm resistor to a digital output pin on the Arduino. The other end of that resistor went to the Gate pin of the MOSFET. This resistor limits the current going into the gate, which is a good habit.

Then I remembered about that pull-down resistor. Sometimes, if the Arduino pin connected to the gate is floating (like when the Arduino is just starting up or the pin isn’t set as an output yet), the MOSFET can kind of randomly turn on or off a bit. To stop that, I added that 10k ohm resistor between the Gate pin of the MOSFET and the ground rail. This keeps the gate firmly off unless the Arduino actively pulls it high.
Moment of Truth – Testing Time
With everything wired up, I double-checked all my connections. You know, measure twice, cut once, or in this case, wire twice, power once. I loaded a simple Blink sketch onto the Arduino, but instead of blinking the onboard LED, it would just set my chosen digital pin high for a second, then low for a second.
I connected the LED power supply, then plugged in the Arduino. Held my breath for a sec.
And it worked! The LED strip blinked on and off, nice and bright, perfectly in time with the Arduino’s signal. No smoke, no weirdness, just a clean switch. Felt pretty good, I tell ya. The MOSFET didn’t even get warm, which was good because this LED strip wasn’t pulling a massive amount of current, but enough that the Arduino couldn’t handle it alone.
What I Learned (or Re-Learned)
This little exercise was a good reminder of a few things:

- MOSFETs are super handy for controlling higher current or higher voltage loads with a low-power signal from a microcontroller. Way better than relays if you need fast switching or don’t want clicking sounds.
- That gate resistor? Yeah, probably a good idea to always use it. Peace of mind.
- The pull-down resistor on the gate is also a lifesaver for preventing weird behavior. I’ve been caught out by floating inputs before.
- Always, always double-check your MOSFET pinout (Gate, Drain, Source). They aren’t always in the same order on different MOSFETs.
- Common ground! If you have two power supplies (like the Arduino and the load’s power supply), they almost always need to share a common ground for this kind of circuit to work right.
So yeah, that was my little adventure into building a MOSFET switch circuit. Pretty simple once you get the connections right, and incredibly useful. I’ll definitely be using this setup in more projects. It’s just a solid way to get things done.