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.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.