Things used in this project

Hardware components:
3-Wire PC Fan
×1
A000066 iso both
Arduino UNO & Genuino UNO
×1
Mfr 25frf52 10k sml
Resistor 10k ohm
×1
Software apps and online services:
Ide web
Arduino IDE

Schematics

Fritzing
PC_Fan_Sensor.fzz

Code

Sample SketchArduino
#include <Arduino.h>
#include "FanMonitor.h"

// ***
// *** Pins
// ***
#define FAN_MONITOR_PIN 5

// ***
// *** Define the FanMonitor instance to monitor
// *** the 3-wire fan.
// ***
FanMonitor _fanMonitor = FanMonitor(FAN_MONITOR_PIN, FAN_TYPE_BIPOLE);

void setup()
{
  // ***
  // *** Initialize the serial port.
  // ***
  Serial.begin(115200);

  // ***
  // *** Initialize the fan monitor.
  // ***
  _fanMonitor.begin();
}

void loop()
{
  // ***
  // *** Get the fan speed.
  // ***
  uint16_t rpm = _fanMonitor.getSpeed();

  // ***
  // *** Print the speed to the serial port.
  // ***
  Serial.print("Speed = "); Serial.print(rpm); Serial.println(" RPM");
  
  // ***
  // *** Delay 1 second.
  // ***
  delay(1000);
}

Credits

Mysocialphoto
Daniel Porrey
48 projects • 187 followers
I lead a software development team for a large Chicago based organization. I also develop applications personally.
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog