chuckthetekkie
Posts: 2
Joined: Sat Jun 17, 2017 9:55 am

Control Mini Fan Power

Sat Jun 17, 2017 10:00 am

I installed a 2 pin case fan for my Raspberry Pi 3 B and when I initiate shutdown the fan still stays on until I unplug the power cable. Is there a way to have the fan turn off when the Pi is turned off using the shutdown command? If so how can I do it.

Right now the Fan pins are on 4 and 6 of the GPIO block like the instructions that came with the fan tell me to do.

pcmanbob
Posts: 8344
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Control Mini Fan Power

Sat Jun 17, 2017 12:21 pm

Hi.

So you currently just have you fan plugged in to the 5V and Gnd pins on the GPIO, there is no control on these pins as they are just 5v supply and Ground connections.
if you want to control your fan you need to add a transistor to control the fan using one of the GPIO pins.

The transistor you select depends on your fans current requirements.
try googling it there are many examples out there.
Last edited by pcmanbob on Sat Jun 17, 2017 12:48 pm, edited 1 time in total.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Ernst
Posts: 1286
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Control Mini Fan Power

Sat Jun 17, 2017 12:41 pm

http://elinux.org/RPi_GPIO_Interface_Circuits

I am using this to control a small 200 mA fan:
Image
The road to insanity is paved with static ip addresses

chuckthetekkie
Posts: 2
Joined: Sat Jun 17, 2017 9:55 am

Re: Control Mini Fan Power

Sat Jun 17, 2017 11:03 pm

Can you put that in laminas terms as I have no idea what any of that means?

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Control Mini Fan Power

Sun Jun 18, 2017 3:19 am

chuckthetekkie wrote:Is there a way to have the fan turn off when the Pi is turned off
connect the fan to a USB port ( like all laptop desktop stand fans are connected )

that USB port power is controlled by RPI ( boot / shutdown )

Return to “Beginners”