# Using fanshim-python with standard fan

**URL:** <https://forums.pimoroni.com/t/using-fanshim-python-with-standard-fan/19218>\
**Category:** Support\
**Created:** [March 31, 2022, 9:59am UTC](https://forums.pimoroni.com/t/using-fanshim-python-with-standard-fan/19218 "2022-03-31T09:59:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmonty14](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@cmonty14](https://forums.pimoroni.com/u/cmonty14)\
**Post date:** [March 31, 2022, 9:59am UTC](https://forums.pimoroni.com/t/using-fanshim-python-with-standard-fan/19218/1 "2022-03-31T09:59:54Z")

</div>

Hello,

I want to use the [fanshim-python](https://github.com/pimoroni/fanshim-python) script for a standard fan and a standard button.  
This means both the fan and the button will be connected with GPIO.

Can you please confirm which GPIO pins must be used for the fan and the button respectively?

THX

---

<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:** [March 31, 2022, 10:35am UTC](https://forums.pimoroni.com/t/using-fanshim-python-with-standard-fan/19218/2 "2022-03-31T10:35:27Z")

</div>

The fan needs control circuitry to be turned on off via a GPIO pin. If you try to run a standard 2 wire fan directly from a GPIO, other than the 5V pin, your going to damage that GPIO pin.

[Fan SHIM at Raspberry Pi GPIO Pinout](https://pinout.xyz/pinout/fan_shim)

---

<div class="post-metadata">

**Author:** ![cmonty14](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@cmonty14](https://forums.pimoroni.com/u/cmonty14)\
**Post date:** [March 31, 2022, 10:59am UTC](https://forums.pimoroni.com/t/using-fanshim-python-with-standard-fan/19218/3 "2022-03-31T10:59:13Z")

</div>

The fan is a standard 5V fan.  
Based on the Fan SHIM GPIO Pinout I would connect it to GPIO 18 and ground.  
The button would be connected to GPIO 17 and ground.  
Would this make sense?

---

<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:** [March 31, 2022, 11:04am UTC](https://forums.pimoroni.com/t/using-fanshim-python-with-standard-fan/19218/4 "2022-03-31T11:04:04Z")

</div>

It won’t work that way, if you do that you will damage GPIO 18. That GPIO Pin is only 3.3V when its a logic high, and has a low current limit. The fan is going to draw too much current and damage the Pi.

---

<div class="post-metadata">

**Author:** ![cmonty14](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@cmonty14](https://forums.pimoroni.com/u/cmonty14)\
**Post date:** [March 31, 2022, 11:17am UTC](https://forums.pimoroni.com/t/using-fanshim-python-with-standard-fan/19218/5 "2022-03-31T11:17:34Z")

</div>

I fear you are right.  
Actually the fan is mounted to a heatsink like [this](https://www.amazon.de/GeeekPi-Raspberry-L%C3%BCfter-Aluminium-K%C3%BChlk%C3%B6rper/dp/B07JGNF5F8).

I guess the only option to get a temperature controlled fan is by applying [this](https://www.instructables.com/PWM-Regulated-Fan-Based-on-CPU-Temperature-for-Ras/) solution.

---

<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:** [March 31, 2022, 11:39am UTC](https://forums.pimoroni.com/t/using-fanshim-python-with-standard-fan/19218/6 "2022-03-31T11:39:37Z")

</div>

Yes, you will need to add the extra control circuit to a stock fan.

---

<div class="post-metadata">

**Author:** ![cmonty14](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@cmonty14](https://forums.pimoroni.com/u/cmonty14)\
**Post date:** [March 31, 2022, 12:15pm UTC](https://forums.pimoroni.com/t/using-fanshim-python-with-standard-fan/19218/7 "2022-03-31T12:15:41Z")

</div>

I’ll try to sell this heatsink on ebay and buy Pimoroni Fan SHIM instead of adding this extra control circuit.
