https://github.com/garugaru/breeze
Smart, lightweight temperature based fan controller for raspberry pi using gpio written in go
https://github.com/garugaru/breeze
cooling fan-control gpio raspberry-pi rpi4 rpi4b temperature
Last synced: about 2 months ago
JSON representation
Smart, lightweight temperature based fan controller for raspberry pi using gpio written in go
- Host: GitHub
- URL: https://github.com/garugaru/breeze
- Owner: GaruGaru
- License: gpl-3.0
- Created: 2020-01-06T22:44:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-08T11:04:12.000Z (over 3 years ago)
- Last Synced: 2023-10-20T19:57:08.189Z (over 1 year ago)
- Topics: cooling, fan-control, gpio, raspberry-pi, rpi4, rpi4b, temperature
- Language: Go
- Size: 6.06 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Breeze
[](https://goreportcard.com/report/github.com/GaruGaru/breeze)
Smart, Temperature based fan controller for raspberry pi using gpio written in go
## Schema for fan control using transistor
[Schema (using gpio 12)](https://4.bp.blogspot.com/-iiFMc_3jrdU/XGDhy20-EbI/AAAAAAAAAlc/wJ_u3oXGZqkkS8kh9VBjhQdyrmaXKpRdQCK4BGAYYCw/s1600/gpio-fan.png)## Usage
example:
When the detected temperature reaches the *target-temperature* (60°) the gpio pin n.12 will be set to HIGH until the detected temperature
is 15% lower than the target-temperature```bash
breeze controller --gpio-pin=12 --target-temperature=60 --temperature-cooldown-percent=15
```## Deploy
### Docker
```bash
docker run --privileged -v /dev/gpiomem:/dev/gpiomem -v /sys/class/gpio:/sys/class/gpio garugaru/breeze:arm-latest controller
```### kubernetes
```bash
kubectl apply -f https://raw.githubusercontent.com/GaruGaru/breeze/master/kubernetes/0_namespace.yml
kubectl apply -f https://raw.githubusercontent.com/GaruGaru/breeze/master/kubernetes/1_deployment.yml
```