How to cotrol fan with Arduino

I have two things:

  1. Arduino UNO V3
  2. Two Wire (black and white wire) Fan which i took out from my cooling pad controlled via USB power
    Specification on the box of cooling pad:

i) Voltage 5V DC
ii) Fan Speed(adjustable) 750-1500rpm
iii) Power Input 2W
iv) Curent: 0.4(MAX)

So here are my questions:

Can i connect my fan to my board because it is 5V and arduino can provide 5V
How i will connect two wires of fan with my arduino board
How i will control fan speed
Thanks Arduino.

Looks like the fan draws 400ma, you need an external 5V power supply.

You will need a power driver to control the fan.

The driver would be driven by a PWM output from the Arduino.

davidkhan:
I have two things:

  1. Arduino UNO V3
  2. Two Wire (black and white wire) Fan which i took out from my cooling pad controlled via USB power
    Specification on the box of cooling pad:

i) Voltage 5V DC
ii) Fan Speed(adjustable) 750-1500rpm
iii) Power Input 2W
iv) Curent: 0.4(MAX)

So here are my questions:

Can i connect my fan to my board because it is 5V and arduino can provide 5V
How i will connect two wires of fan with my arduino board
How i will control fan speed
Thanks Arduino.

First answer, no the Arduino can provide the 5v but not the current. (Look up Arduino specs)
Second answer, any output pin that will do PWM and is connected to a motor driver circuit.
Third answer, control using Pulse Width Modulation providing the fan can be run using this method.

Now you have some things to look up.

Daz

So lets just leave the controlling the speed of the fan for now what i have to do if i just want to turn on the fan how to connect these two wires
Thanks

Second answer, any output pin that will do PWM and is connected to a motor driver circuit.

davidkhan:
what i have to do if i just want to turn on the fan how to connect these two wires

You will need a transistor (either n-mosfet or npn bjt), to switch the external supply already mentioned in #1 and #2. This example shows a mosfet, but the bjt set up is similar.

Have a look at this.

controlling a motor

Daz

Daz1712:
Have a look at this.

controlling a motor

Daz

That's not a good example for this case: although it uses a transistor, it uses it to switch the Arduino's 5V supply to the motor, which is not what OP needs with a 400mA motor.

Sorry no more examples from me.

Hi,
What are you going to use as a power supply for your fan?

Tom.... :slight_smile:

Daz1712:
Sorry no more examples from me.

Come on, don't sulk :wink:

Can i apply this example for controlling my fan instead of motor
Motor has also two wires and my fan also has two wires

He is using 9v battery and which one i will use for my fan...Will it be 5v ?

Not going to run around the internet looking at various links.

9V is not 5V.

You need 5V rated at least 500ma (1 amp would be better).

You will have to determine which wire goes to positive.

The 2N7000 mosfet in he video (datasheet) might not be enough for your fan.

Your fan is 400mA max, which presumably is the stall current, so only for brief periods like at start up. That's within the mosfet's maximum allowable "pulsed" current of 500mA, but might be a bit close especially if your fan actually does stall for any time longer than a "pulse", whatever that might be.

Then the fan specs don't say what the no-load current is; the mosfet continuous current is 200mA, but there's no way to say right now if that's enough.

If I were you I'd measure the current your fan draws when it's running and see if it's below 200mA. Remember that to measure current your meter goes in series with the load (ie, break the circuit and put the meter in the gap) as shown here; use a meter scale that will accommodate the 400mA maximum.

2n7000 current.GIF

2n7000 current.GIF

So which transistor and battery do you suggest to control my fan 5v and 0.4amp current and 2w power input ?

So i take it you do not want to read any of the posts above and would like people to just give you the circuit and all the part numbers.

There is a board where people will do everything for you. Ask around.

Good Luck With 'Your Project'.

Daz