Page 1 of 1

controlling a tiny cooling fan for raspberry pi 3

Posted: Mon Jun 12, 2017 10:41 pm
by 2Fat4U
Hi all, new to the forums and raspberry Pi's.

So I recently purchased my first raspberry pi because I thought I would be fun to tinker around with. I had also bought a case for it and it came with a small fan for cooling. I have everything assembled and the fan hooked up but it won't run. So my question is is there some kind of software or code that I could run that would allow me to control the fan?

P.S. I'm familiar with Linux based OS's but I'd still consider myself a novice.

Re: controlling a tiny cooling fan for raspberry pi 3

Posted: Mon Jun 12, 2017 11:41 pm
by runboy93
https://m.aliexpress.com/s/item/32801874371.html

There are some sample code on the item description, something what you looking for?

Re: controlling a tiny cooling fan for raspberry pi 3

Posted: Tue Jun 13, 2017 12:05 am
by klricks
2Fat4U wrote:Hi all, new to the forums and raspberry Pi's.

So I recently purchased my first raspberry pi because I thought I would be fun to tinker around with. I had also bought a case for it and it came with a small fan for cooling. I have everything assembled and the fan hooked up but it won't run. So my question is is there some kind of software or code that I could run that would allow me to control the fan?

P.S. I'm familiar with Linux based OS's but I'd still consider myself a novice.
How is the fan connected?

If it is just a raw 2 wire fan then it should just work by connecting to the 5V and a ground pin. In this case the fan will run continuously with no control.

If the fan has an input control module of some sort then there would be at least 3 wires to connect. 5V, GND and a GPIO to control the fan with software.

In either case the seller should have given detailed instructions including code if needed.

Re: controlling a tiny cooling fan for raspberry pi 3

Posted: Tue Jun 13, 2017 12:39 am
by 2Fat4U
klricks wrote:
2Fat4U wrote:Hi all, new to the forums and raspberry Pi's.

So I recently purchased my first raspberry pi because I thought I would be fun to tinker around with. I had also bought a case for it and it came with a small fan for cooling. I have everything assembled and the fan hooked up but it won't run. So my question is is there some kind of software or code that I could run that would allow me to control the fan?

P.S. I'm familiar with Linux based OS's but I'd still consider myself a novice.
How is the fan connected?

If it is just a raw 2 wire fan then it should just work by connecting to the 5V and a ground pin. In this case the fan will run continuously with no control.

If the fan has an input control module of some sort then there would be at least 3 wires to connect. 5V, GND and a GPIO to control the fan with software.

In either case the seller should have given detailed instructions including code if needed.

Thanks I went back to the products page and made sure it was connected properly but it still didn't work. I then connected it to a usb powered fan controller that has the exact same connectors and it still didn't work. So I think it may have come broken. Thanks anyway though.

Re: controlling a tiny cooling fan for raspberry pi 3

Posted: Tue Jun 13, 2017 4:44 pm
by pcmanbob
Looking at the wiki page it looks like you need to have a separate power input to run the fan and switched output on the connectors.
you also need to be running the fan code in SAMPLE CODE 3 to control the fan.

http://www.raspberrypiwiki.com/index.ph ... sion_Board

http://www.raspberrypiwiki.com/index.ph ... ecode3.zip