Skip to content

Slow down the server fan speed whilst still allowing extra cooling when needed and shutdown in case of fan failure

License

Notifications You must be signed in to change notification settings

damianmoore/hp-server-fan-controller

Repository files navigation

HP Server Fan Controller

I have a HP ProLiant MicroServer Gen 8 and in my opinion the fans were too noisy to be acceptable in the home. I replaced the 40mm power supply fan with a Sunon HA40201V4-0000-999 and the rear 120mm extractor fan with an Arctic BioniX F120. The silentpcreview site had some useful notes on replacing the main fan, given that HP use a non standard connector.

After this, things were improved but I still wanted to run the 120mm main fan at a lower (quieter) speed. There is a PWM speed control wire that the server uses to set the speed according to how hot it is. There is also a rotation detection wire that the server uses to check whether the fan is actually spinning and hasn't failed. In my machine it seems like the rotation detection mechanism stopped working but I could get it to stop complaining and boot up if I just pulled the voltage to ground.

I made my own board to intercept the speed control and rotation detection wires. I prototyped the circuit and code with an Arduino Uno first and then converted to a bare Atmega 328P once I had it working. The code is quite short and has comments so take a look.

Top side photo of boardBottom side photo of boardBoard wired up and mounted inside case

Speed control

I used the pulseIn() method to read the pulse width (in milliseconds) that the server was sending to set the fan speed. By printing this to the serial connection I was able to determine how long the signal was high during normal operation. Using this value, plus a bit of a buffer, I created a threshold. Below this I would be setting my own lower speed using analogWrite() and some trial and error. If the server instructs the fan to go faster with a pulse width higher than the threshold then I set the fan to a high value. This means that the fan will kick in when it has to.

Rotation detection

I don't think this works correctly on my machine (or at least as I expected to). Anyway, I can still use it to signal to the server that there is a fan failure so it can shut down. If I set it low (0V) then all is OK, and if I set it high (5V) then the server's light flashes red instead of being blue, it bleeps, shuts down. This is done with digitalWrite(alert_pin, LOW).

I read pulses from the fan for a fixed period of time using millis() and digitalRead(fan_pin) and expect to count the fan's signal as being high and low during the period. I confirmed this works by running the fan at a slow speed and sticking a piece of plastic into the rotors.

Files

  • hp_server_fan_controller.ino - Arduino sketch
  • hp_server_fan_controller.pro - KiCad project
  • hp_server_fan_controller.sch - KiCad schematic
  • schematic.pdf - Exported PDF version of the schematic

Releases

No releases published

Packages

No packages published

Languages