Closed rei-vilo closed 4 years ago
uname
$ uname -a
Linux myPiFour 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux
RPi.GPIO
>>> import RPi.GPIO as GPIO
>>> GPIO.VERSION
'0.7.0'
I'd be inclined to believe this is a contact/electrical issue, do you get fan response/LED output if you run these examples while gently tilting the Fan SHIM in an effort to get better GPIO contact?
Thank you for your suggestion. Indeed, gently titling the FanSHIM solves the issue, alas as long as I use my finder. How to get a permanent solution without requiring a finger?
Yes, I am having the same issue. The shim itself is advertised as being able to make contact via "friction fitting". However, I have to gently apply pressure to it in just the right way to get the fan to react as expected, i.e., turn on and off, get the led to respond appropriately.
A solution that does not require soldering would be ideal. But I can confirm the friction fitting is not working for me with an RPi4
UPDATE: I was able to fix the electrical contact issue, however...it is probably not a "recommended" solution. I don't suggest anybody really try this unless they proceed VERY carefully. With that out of the way...
I basically took the notch end of one of a spudger from the ifixit website and VERY gently hooked and bent pins 2, 4, 6, 8, 10, and 12 out just a little bit. I was aiming to bend each one out approximately 0.5 to 1 mm each. All the pins now make solid contact with the shim and it's working great!
Again, this is probably NOT recommended. But it worked for me. Proceed with caution.
On a separate note: This should absolutely NOT be what needs to be done to get the shim to work appropriately and the design of the contacts on the shim should probably be reconsidered.
Sometimes the Pi's GPIO can be bent by adding/removing HATs and correcting this can help.
Additionally, the manufacturing tolerance of the friction-fit header isn't perfect; we've shipped a lot of Fan SHIM units and issues are few and far between, but they happen. We're usually happy to try swapping your Fan SHIM out for another one if all else fails.
I had the same problem - bending the pins out very slightly fixed it. Thanks!
yeah...VERY slightly, right?!
I actually used a plant lens that I had sitting around to better see how much each was bent. I'd imagine if you had one of those fancy jeweler's lenses that can be worn on the face and used hands free would be the best.
Glad I could help
I too found the LED wouldn't work unless I fiddled with the pins (used a fingernail!) then the LED appeared. Can be a bit temperamental. The button and fan worked fine. Guess that's the drawback of being friction fit.
I tried FanShim on a Raspberry Pi 4 and it doesn't work as expected:
Despite launching the Python service with default parameters, ie.
--off-threshold 55 --on-threshold 66
, the fan is always on, even when temperature = 28 °CLED doesn't work, even when playing with the `python3 fanshim-python/examples/led.py example.
I went through #3, but how to configure the FanShim correctly for the Raspberry Pi 4?
I also checked #5, but UART isn't enabled (no
enable_uart=1
in my/boot/config.txt
).The product page advertises about the Raspberry Pi 4 but the Getting Started with Fan SHIM doesn't offer any specifics.
Thank you for your help.