Hi all,
Is there a way to control a pi fan to turn on when my raspberry pi hits a certain temperature instead of being always on?
I understand that this question has been asked a lot, and there are guides out there involving soldering pythons and coding transistors, but the folks over at raspberry pi have released an official case fan (Nov' 2020) that can be temperature controlled by Raspbian, and simply requires setting a few preferences in the performance tab of the GUI. Link to product and how to set it up:
This fan comes with a built in 3rd cable that connects to a GPIO pin where raspbian OS can ask which GPIO pin (default 14), and tell it when to turn on and off at a set temperature (default 80C). Perfect. The wrinkle is that this is controlled through the Raspbian OS GUI, and I don't have a GUI set up for Octopi, much less know whether octopi even has the functionality to control the GPIO pin.
Now I'm a complete noob at this, being my first 3D printer, first Pi, never coded, can't speak parceltongue (python), nor understanding the development history of Octopi or Octoprint; so my questions are extended to the below:
- As Raspbian OS has the functionality to temperature control the pi's cooling fan (at least from Nov 2020) does Octopi have this functionality?
- If yes to Q1, can it be set without a GUI? and how would I go about doing this?
- If no to Q1, is there another way that I can make this thing run? Will I need to install the full Raspbian OS, and then install octoprint over the top of that just to turn a fan on and off? I understand this is also a big undertaking.
- If the above works, then I've seen people discuss using SystemCommandEditor in Octoprint for camera on/off (though I've not tried it yet). Is this something that could be used to control the pi fan (on / off / temp controlled) if the sudo commands exist?
I'm running the following:
Octoprint Version 1.5.2
Octopi Version 0.17.0
Raspberry Pi 4 Model B Rev 1.2
any help would be greatly appreciated!
Beeacon.