Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cpanato/raspi-fan-control
Control external Fan to cool down your raspi cluster
https://github.com/cpanato/raspi-fan-control
go golang gpio kubernetes raspberry-pi-4
Last synced: about 1 month ago
JSON representation
Control external Fan to cool down your raspi cluster
- Host: GitHub
- URL: https://github.com/cpanato/raspi-fan-control
- Owner: cpanato
- License: apache-2.0
- Created: 2021-10-22T13:40:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T08:26:48.000Z (8 months ago)
- Last Synced: 2024-09-29T00:45:30.700Z (about 1 month ago)
- Topics: go, golang, gpio, kubernetes, raspberry-pi-4
- Language: Go
- Homepage:
- Size: 147 KB
- Stars: 12
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](./assets/hardware.png)