I attached the Fan Shim on my RPi 4b 4GB and installed the packages to run the service according to the guideline on the Pimonori website.
When I try to start the service by running the install-service.sh script, I cannot seem to get the services running properly and I cannot get the automatic script to run including the LED and auto start/stop for the fan. The fan is running constantly.
Although all requirements are met, the output that I get on command window cannot pass beyond the bold line below:
Checking for rpi.gpio >= 0.7.0 (for Pi 4 support) rpi.gpio >= 0.7.0 already installed Checking for Fan SHIM Fan SHIM already installed Checking for psutil >= 5.6.7 psutil >= 5.6.7 already installed
Installing service to: /etc/systemd/system/pimoroni-fanshim.service
I tried the following based on the proposed solutions for other support threads:
Checking the connection of the GPIO pinout and slightly bending the pins for better connection with fan shim; not working.
Uninstalled and re-installed the fanshim package; not working
Run the simple Python script to only operate the LED,button and fan manually to check; all working
By default, with no software installed, the fan will run continuously. A low on the fan control pin is what turns it off. Fan Shim BCM 18 Pin 12 Fan Control. It that contact doesn’t make contact with that GPIO pin the fan will never turn off.
As a test you can add this entry to your config.txt, and reboot. dtoverlay=gpio-fan,gpiopin=18,temp=55000
The fan “should” turn on at 55c and off again at 45c. If it then works, you know the hardware is OK, its an issue with the service / software.
I just fired up my Pi 4B that has a Fan Shim on it, and was just using the dtoverlay for control. It’s running Bullseye. I’m going to go through the install process and see what happens. I’ll post back when I’m done.
Thanks for taking the time and running the script.
Unfortunately, as it seems, my run cannot pass beyond the following printed line.
I tired to run through the automatic.py script and it seems to work fine with line-by-line debugging.
Once I inspect the install-service.sh script by executing line by line, the following line cannot be executed although it does not throw an error; it gets stuck (in a loop?)
I’m honestly not sure what your issue is? Might be worth while reinstalling Pi OS in case its just something that’s got corrupted or a permissions thing?
Thanks for the help in any case. Much appreciated @alphanumeric.
I should have used Docker or some some sort of containers in the beginning…I do not want to start from scratch just for this while I have quite a number of services with personalised/updated configurations.
I could live with the dtoverlay=gpio-fan,gpiopin=18,temp=55000 addition to the /root/config.txt to run the fan for the time being; which was a very useful hint!
You can change the 55000 to what ever you want, with in reason of course.
65000 is on at 65c and off at 55c. Its always 10c less for the off, that’s the downside. The service will give you more options.