(06-28-2017, 12:57 AM)pfeerick Wrote: I couldn't quite justify a 90mm or 120mm fan this timeWell… I can imagine a 2Gb board with radiators on both sides of the PCB + a busy WiFi/BT POT probably with a heatsink of it's own + DC2DC converter for better power supply, all in one enclosure – this would be a Frankenstein of a pine64, but an 80+ mm cooler might be in order… just kidding :-)
(06-28-2017, 12:57 AM)pfeerick Wrote: I take it the magic is in this statement?Yes, this is the one that rolls the dice for turning the motor on. The one for turning it off is as follows:
Code:return random.randint(0,101) <= 100 * (higher_temp - high_mid_temp) / (TEMP_ON - high_mid_temp)
Code:
return random.randint(0,101) <= 100 - 100 * (higher_temp - TEMP_OFF) / (low_mid_temp - TEMP_OFF)
I hope you'll have fun with it!