5v 3-Pin Fan On and Off with Nano

I have another little project, I'm sure it's probably simple. However, I've searched and searched. I simply want to control a 5v fan with a switch. The Arduino Nano will also be controlling a NeoPixel. The fan will be connected to an external power source. I would just like a little guidance on how to wire up the fan, and how to turn it on and off using a pushbutton and the Nano. Nothing fancy, no variable speed or temperature control. Just on and off.

Thanks!

Show us an image of the fan.

Not the PWM one... the 3 Pin one.

This will probably be a 12V fan.

Yellow RPM
Red +12V
Black 0V

Connect Red to 12V.

Black to a logic level N MOSFET to GND (0v)

Or Black to a relay contact then to GND.

If this makes sense, you probably have the skills to see if the wiring will work.

The kickback diode shouldn’t be needed.

It's a 5v fan. Here's the link https://a.co/d/g07cwnx

You can actually run this fan with a USB connected to your computer. :slight_smile:

The same circuit will work, use 5V instead.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.