This project shows how to connect, controland read an 4 wire computerfan,

INTRODUCTION.
This is the first one of several little projects that i
intend to upload, they explain the working of usual
or undocumented parts that i experimented with.

 

To power the fan you need an external powersource, in this case i used a 12 volt 1,5Amp DC Adapter.
But any other source that meet the requierements ofthe fan wil do.

Hardware:
  Arduino UNO-R3
  External powersource 12volt DC 1,5 Amp
  Potentiometer 1 KOhm.
  4 wire fan

 

Wiring:
The wiring colorcode for fan i used is as follows.

      Nidec TA350DC  Nidec TA450DC

+ 12 volt  Red                      Red
- 12 volt   Black                    Black
PWM       yellow                  White
Sensor    Blue                     Blue

Make sure that -12volt eg Gnd is connected to the Arduino Gnd.

 

Libraries.
No aditional libraries are needed.

 

Output:

The output of the code is just on the serial port.
So after flashing, open the serial monitor for
reading the values.

 


Potentiometer:
The potentiometer can easely be replaced by any sensor, as long as the output on the PWM port is converted to 0 to 255.
For example with an Temp. sensor you can control the cooling of your tablefan, or the cooling of your campervan fridge.

 

Good Luck, Jay

Login to post a comment...

wwendorf 4 months, 4 weeks ago

You also had 12v for the fan doubling back into the arduino board, which just cost me an arduino board because it fried itself.

factotumindustries 11 months ago

Turns out my fan was very particular and needed 25kHz - others I have tried are OK. Note your code documentation refers to pin A3 which is incorrect - you mean (digital in / out) pin 3.

factotumindustries 11 months ago

This project will *read* a fan but won't control it. You have the PWM input of the fan connected to an analog output which won't do anything. PWM fans need a 25kHz PWM control signal...