I am running a rpi 3b+, with Recommended Raspbian installed, and also with a Noctura NF-A4x10 5V, mounted on the lid, with vent holes, of the official rpi case. I will eventually turn this model into a game emulation center, but for now i am just using it to program an sd card for my rpi 3b model project of using ladder programming with a relay module. I have played around and and failed at achieving my goals, I usually try to avoid asking questions online ad search for the answers instead but for some reason I'm really struggling this time. For the purposes of being ready to try again I have reinstalled a fresh Raspbian and am now going to start on a separate sd card and keep trying.
Program the GPIO pins 4(5v) & 6(gnd), which my 5v Fan is plugged into, to firstly either delay or at a slower speed that default(100%?), and secondly have it run at a variable speed based on temperature of the rpi. Due to the rpi not having enough power at startup to power everything at once, which then I lose ethernet, usb or hdmi, which is only restored once I unplug the fan then plug it back in. The variable speed wasn't my original goal but now that I have stumbled into the possibility, I think that i should since it will prolong the fans life and I have read that with heat sinks the fan is unnecessary but I cant imagine other than my power issue that the fan can be a bad thing, plus I do plan to stress its emulating capabilities.
I have gone through what I could find online and all use mosfets, trasistors, etc, but my fan works perfectly now, and I believe that those electronic components are unnecessary, as long as it is possible to program specific instruction into the GPIO pins and also with my lack of experience with programming and Raspbian I struggle to understand provided coding (how to enter it, whether to enter it in python or cmd, if any parameters need to change before being enters, and how they need to change for my situation).
Partially Solved! I salvaged a electronic board that had my electrical components needed for a safe start up and shut down on the pi. The fan is long story short powered through the pi's USB port instead of the 5v rail. My fan has a third wire which is yellow and the manufacturer labels has a non pmw, rpm signal cable.
So what I am after now is code based off of gpio 18 (#12 pin), which the yellow wire is plugged into (the only wire on the gpio pins at all), but only once I learn what rpm signal's purpose is and whether or not I can just simple read its speed or control it.
What can I do with Noctua's rpm signal wire? What is the code for doing these such possibilities?