Has anyone gotten the official Raspberry Pi 4 fan working on OpenWRT, with active third-pin control using a temperature-monitoring daemon a la Raspbian?
3 Likes
Self-answering - yes, it can be done rather trivially.
You'll need the following modules installed:
kmod-hwmon-core
kmod-hwmon-gpiofan
kmod-i2c-core
and (assuming a standard official Pi 4 fan on GPIO 14) an entry in /boot/config.txt that looks thusly:
dtoverlay=gpio-fan,gpiopin=14,temp=80000
(these are the Raspberry Pi Foundation defaults, obviously adjust gpiopin if you've moved yours and temp to taste)
Reboot and enjoy the thermally-dynamic active cooling!
9 Likes
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.