Using Picaxe To Turn On & Off PC Fan

j0563

New Member
If I were to use an 08M to turn on a 5v "PC-style" fan (like what you would find in a PC case), would I need to use a MOSFET or would a simple resistor between the 08M pin and the fan be sufficient?
 

westaust55

Moderator
NO, you cannot use the PICAXE output directly to turn on motors, relays etc.

A PICAXE output can supply (source) or sink a maximum of around 20mA.
That is okay to drive a LED with a series resistor but not much more.

Depending upon the exact fan (size, air flow etc) it could draw anywhere from 100mA up to 500mA

You will need that MOSFET transistor as a form of solid state switch to control the fan motor.
If it is a straight on off function then even a bi-junction transistors driven into saturation, so that it does not dissipate a lot of heat, could do the task.

Are you sure that that PC fan is 5Vdc? Some are, but many PC case fans are also 12Vdc.

Make sure you use a separate power supply for the fan motor with the 0V connection linked to the PICAXE 0V as a signal reference line. If you try to run the PICAXE and the fan motor from the same 5V supply when the motor starts there can be a significan drop in voltage which might reset the PICAXE so the program appears not to be running properly.
 
Last edited:

j0563

New Member
Thanks for the info, that was very helpful. I will keep those points in mind. The fan is 5v- its not actually a PC fan, just a small 40 or 60mm type fan. I just referenced the PC fans to give you an idea of what I'm talking about.

I'll start doing some reading up on the easiest way to do this.
 
Top