cpanato / raspi-fan-control

Control external Fan to cool down your raspi cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fan control for Raspberry Pi

This is a small project that I build in order to cool down my raspi home cluster

The case I use have some external fans to cool down the pies when it is too hot. However, sometimes the temperature is ok and we can shutdown the fans.

You can deploy this as a binary and run directly in the raspi or if you use the raspis in a cluster using k3s you can deploy that as a daemon set.

The service expose prometheus metrics, one for the current temperature of the system and another to check if the fan is on or off.

Hardware

In other to use the GPIO pins to control your external fan you need to build a very small hardware to trigger the fan

Bill of material:

  • 1 resistor 1k Ohms
  • 1 resistor 100 Ohms
  • 1 IRLZ44N transistor

hardware

About

Control external Fan to cool down your raspi cluster

License:Apache License 2.0


Languages

Language:Go 83.3%Language:Makefile 14.8%Language:Dockerfile 1.9%