kiteretro / Circuit-Sword

GNU General Public License v3.0
135 stars 27 forks source link

[Enhancement] Fan on/off temperatures not configurable #85

Open pgzh opened 5 years ago

pgzh commented 5 years ago

The temperatures for fan on and off are hard-coded to 60°C/55°. It would be nice to have this as a user-configurable setting somewhere. Maybe also only allow reasonable settings here, e.g. on temperature max 70/75°C and off temperature must be below on temperature at least 5°C.

timemaster5 commented 5 years ago

How is the fan wired, can I use a PWM on control pin? But anyway, configurable thresholds would be nice to have.

timemaster5 commented 5 years ago

Ok, if I am right, the fan is connected to rpi pin 35 and there is no pwm.

kiteretro commented 5 years ago

Correct, you can probably use a 1k potentiometer in line with VCC of the fan and adjust to suit speed.