Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winkidney/PIFanTuner
RaspberryPI CPU fan tuner with a s8050 Triode
https://github.com/winkidney/PIFanTuner
Last synced: about 2 months ago
JSON representation
RaspberryPI CPU fan tuner with a s8050 Triode
- Host: GitHub
- URL: https://github.com/winkidney/PIFanTuner
- Owner: winkidney
- License: mit
- Created: 2016-09-19T09:51:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T10:47:19.000Z (over 7 years ago)
- Last Synced: 2024-01-29T18:01:09.464Z (5 months ago)
- Language: Python
- Size: 93.8 KB
- Stars: 39
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-raspberry-pi - PiFanTuner - CPU-fan-tuner daemon, just enables your fan as necessary. ![Supports Raspberry Pi 3](/media/badges/rpi-3.png) (Projects)
- awesome-raspberry-pi - PiFanTuner - CPU-fan-tuner daemon, just enables your fan as necessary. ![Supports Raspberry Pi 3](/media/badges/rpi-3.png) (Projects)
- awesome-raspberry-pi - PiFanTuner - CPU-fan-tuner daemon, just enables your fan as necessary. ![Supports Raspberry Pi 3](/media/badges/rpi-3.png) (Projects)
- awesome-raspberry-pi-zh - PiFanTuner - CPU风扇控制程序. ![Supports Raspberry Pi 3](/media/badges/rpi-3.png) (目录)
- awesome-raspberry-pi-zh - PiFanTuner - CPU风扇控制程序. ![Supports Raspberry Pi 3](/media/badges/rpi-3.png) (目录)
README
# PIFanTuner
RaspberryPI CPU fan tuner with a s8050 triode.This project enables a daemon which manage a CPU fan for you, it will start
after system bootstrapping automatically.It enables CPU fan while its temperature
is more than 45°(or defined by you), else the fan will be turned off.You can also view your cpu temperature within this project or turn on/off
a given GPIO port by simple commandline tool.# How to
## Requires
Hardware+ A Fan that works under 5v Voltage
+ A NPN triode(such as s8050)Software
+ Python 2.6+
+ Raspbian(optional)## Hardware Setup
At first , follow the diagram below and connect your triode and fan together.Your triode may be like this one:
![s8050](resources/s8050.jpg)
The circuit diagram is like this one:
![circuit-diagram](resources/circuit_diagram.jpg)
About Raspberry Pi PIN number
Use `gpio readall` to get map like following image.
![screenshot](resources/gpio_readall_screenshot.jpg)
## Software Setup
### General
Enter console of your Raspberry Pi then start with```
git clone https://github.com/winkidney/PIFanTuner.git
```Or just download the zip file zipped by Github.
Then enter the project directory:
```
sudo python setup.py install
```Now use following command to run fan-control daemon:
```
➜ ~ pi-fan-tuner fan simple --debug
DEBUG:root:Temperature 45.084 CPU fan on.
```### Raspbian
With raspbian or any system works well with systemd, you can use systemd
service script to make `pi-fan-tuner` a daemon which automatically manage
your fan.After installation of the python package, you could run
```
./install-systemd-file.sh
```to setup the systemd script for `pi-fan-tuner`.
## Advanced
Monitoring CPU temperature
```
pi-fan-tuner cpu-show --loop
```For other usage, please run:
```
pi-fan-tuner --help
```