Sign inSign up

user4711/rpi-pid_fan

By user4711

Updated over 1 year ago

PID-Controller for a 4-pin PWM-Fan on a RaspberryPi

Image
Internet of things
Monitoring & observability
0

10K+

user4711/rpi-pid_fan repository overview

PID-Controller for a 4-pin PWM-Fan on a RaspberryPi

GitHub repository The Docker Image is based on Pythons slim Image.

Dependencies:

Generic badge Generic badge

Configuration:

The container needs access to the device: /dev/gpiomem This can either be accomplished by adding it as a device, or by adding it as a Volume, if you are running this image in a swarm.

Variables:

The following Docker Environment Variables can be set:

VariableDefaultDescription
FAN_START_PERCENTAGE50value at which the Fan should start
FAN_OFF_PERCENTAGE0.0Percentage at which the fan is stopped
FAN_MIN_PERCENTAGE1.0Percentage minimum controllable value.
FAN_MAX_PERCENTAGE100.0Percentage up to which the fan should be controlled
FAN_TACH_IN_PIN24GPIO Pin that is connected to the fans TACH-output
FAN_TACH_PULSE_PER_REV2How many TACH-pulses are provided per revolution of the fan
FAN_TACH_REFRESH_TIME1Time between fan-speed measurements
FAN_TEMP_OFF35.0Temperature lower of which the fan should be turned off
FAN_TEMP_TARGET40.0Temperature that should be reached
PWM_FREQUENCY25PWM-frequency in kHz
PWM_OUT_PIN18GPIO-Pin that the Fan is connected to
PWM_REFRESH_TIME1.0Time between temp-measurements & fan-speed calculations
PID_P_VALUE5.0P constant for the PID-controller algorithm
PID_I_VALUE5.0I constant for the PID-controller algorithm
PID_D_VALUE5.0D constant for the PID-controller algorithm

Support

Docker-rpiFan is a free docker image powered by other open source. I am not able to provide full support, however if you find any bugs or if you need a new feature you can create an issue. If you want to support my work you can do this through my ko-fi page:

https://ko-fi.com/dumpname

License

GPLv3 license

Tag summary

Content type

Image

Digest

sha256:9d2fb616f

Size

147.8 MB

Last updated

over 1 year ago

docker pull user4711/rpi-pid_fan