This script measures temperature of cpu and turns on/off cooler if necessary. Should work with any OrangePI.
WiringOP was used to access GPIO of Orange pi zero.
git clone https://github.com/invictus737/opizero-fan-ctrl.git
cd opizero-fan-ctrl
sudo sh install.sh
- Cooler
- Transistor npn
- Some wires
Fan 5V | OrangePI 5V |
Fan GND | Transistor Collector (C) |
GPIO 2 | Transistor Base (B) |
GND | Transistor Emitter (E) |