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.
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.
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
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.
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.
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.