https://github.com/artivis/pi_fan_ctrl
Fan control for the Raspberry Pi
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.8%) to scientific vocabulary
Keywords
Repository
Fan control for the Raspberry Pi
Basic Info
- Host: GitHub
- Owner: artivis
- Language: Python
- Default Branch: master
- Size: 3.91 KB
Statistics
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
- Releases: 0
Topics
Metadata Files
README.md
pifanctrl
Yet another variable fan controller for the RaspberryPi.
This script is based on the instructable tutorial of Aerandir14 available at this link.
The main differences are: - set/get-able parameters - the fan speed value ([0-100] %) is written to a file (optional) - packaged as a snap for easier distribution
Installation
bash
$ sudo snap install pi-fan-ctrl
You should then connect the snap interface,
bash
$ snap connect pi-fan-ctrl:hardware-observe
$ snap connect pi-fan-ctrl:gpio pi4-devel:bcm-gpio-21
Parameters
The parameters are all set/get-able through the commands:
bash
snap get/set pi-fan-ctrl <parameters>
The available parameters and their default values are as follows,
```yaml
Fan control configuration
gpio: 21 # BCM used to drive transistor's base fanmin: 20 # [%] Fan minimum speed. sleep: 1 # [s] Time to wait between each refresh pwmfreq: 25 # [Hz] Change this value if fan has strange behavior
hyst: 1 # Fan speed will change only of the difference of temperature is higher than hysteresis
fanspeedout: True # Whether to write the fan speed to a file or not
!!! Not yet configurable !!!
Configurable temperature and fan speed steps
temp_steps: [50, 55, 60, 65, 70] # [C]
speed_steps: [30, 47.5, 65, 82.5, 100] # [%]
```
Finally, if fan_speed_out: True the fan speed will be written to a file
in the snap. To retrieve the current fan speed simply issue,
bash
$ cat /var/snap/pi-fan-ctrl/common/fan_speed
45
Owner
- Name: Jeremie Deray
- Login: artivis
- Kind: user
- Location: France
- Company: @CanonicalLtd
- Website: https://artivis.github.io
- Repositories: 117
- Profile: https://github.com/artivis
Roboticist / Software Developer, ROS(2) / C++ enthusiast.
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Flint4 (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- RPi.GPIO *
- pyyaml *