# FanShim issue

**URL:** <https://forums.pimoroni.com/t/fanshim-issue/14414>\
**Category:** Support\
**Created:** [July 2, 2020, 11:31pm UTC](https://forums.pimoroni.com/t/fanshim-issue/14414 "2020-07-02T23:31:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![antant](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@antant](https://forums.pimoroni.com/u/antant)\
**Post date:** [July 2, 2020, 11:31pm UTC](https://forums.pimoroni.com/t/fanshim-issue/14414/1 "2020-07-02T23:31:11Z")

</div>

Hi,  
I installed the Fanshim on a PI4 8gb - I’ve tried both with an ubuntu and a raspbian but it seems that the behavior of the fan is quite erratic: while the LEDs respond to sw library, the fan seems not really affected by whatever I do using the library (i’m using the python examples); only if i tilt or move it a bit it either starts or stops.

For example, at the moment it’s running at full speed, noisily, while from the command line :

```auto
pi@raspberrypi:~/fanshim-python/examples $ sudo python3 automatic.py --verbose
Current: 32.13 Target: 55.00 Freq 1.50 Automatic: True On: True
Current: 31.64 Target: 55.00 Freq 0.60 Automatic: True On: False
Current: 30.18 Target: 55.00 Freq 0.60 Automatic: True On: False
Current: 31.64 Target: 55.00 Freq 0.60 Automatic: True On: False

```

more explicitly, the fan goes at full speed - noisily - if i do this:

```auto
>>> from fanshim import FanShim
>>> fanshim = FanShim()
>>> fanshim.get_fan()
0
>>> fanshim.set_fan(False)
False
>>> fanshim.get_fan()
0

```

Is there anything I can try to understand if it’s an hardware issue (of the fan or of the raspberry) ?

thank you,

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [July 3, 2020, 7:44am UTC](https://forums.pimoroni.com/t/fanshim-issue/14414/2 "2020-07-03T07:44:31Z")

</div>

It’s likely not making a good contact on all the pins. GPIO 18 is the Fan Control Pin.

> **[Fan SHIM at Raspberry Pi GPIO Pinout](https://pinout.xyz/pinout/fan_shim)**
>
> Mini cooling fan shim for Raspberry Pi

  
If you have a spare female GPIO header you could try plugging that in on top of it. It will hold it down nice and level.  
The fan control pin has to be pulled low (grounded) to turn the fan “off”. If it doesn’t get the turn off signal the fan will just run continuously. If you have a male jumper wire you could carefully ground the pad on the fan shim for GPIO 18. If the fan stops you know the hardware is working.

---

<div class="post-metadata">

**Author:** ![antant](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@antant](https://forums.pimoroni.com/u/antant)\
**Post date:** [July 7, 2020, 9:42am UTC](https://forums.pimoroni.com/t/fanshim-issue/14414/3 "2020-07-07T09:42:42Z")

</div>

Hey, thank you for your reply,  
after reading your comment I double checked and actually GPIO 18 was slightly bent and that was the cause of the false contact.  
Everything is fine now !!

thanks

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [July 7, 2020, 12:14pm UTC](https://forums.pimoroni.com/t/fanshim-issue/14414/4 "2020-07-07T12:14:27Z")

</div>

I like it when its an easy fix. =)
