Сделал простой скрипт для управления температурой кулера Raspberry Pi.
- Зачем? Их же полно готовых! Даже дефолтные инструменты есть.
Хотелось сделать этот велосипед по-своему 😁
▫️Пороговых температур две: Одна контролирует момент включения, другая выключения. Например, выше 80 - включаем. Остыл до 50 - выключаем.
▫️ Значения пороговых температур заипсывается в специальном файле и считывается каждый раз при проверке темературы без рестарта сервиса.
Исходники и схема.
https://github.com/paulwinex/rpi_fan_control
ЗЫ. В схеме присуствует сопротивление. Это требуется только если нужно уменьшить скорость вращения кулера. Мой на полных оборотах сильно гудит, пришлось поставить.
#sources#rpi
🌎 The Patagonian "stone flower" fungus, living on roots in arid South America, mimics pebbles to avoid predation. Its camouflaged fruiting bodies slowly absorb moisture and burst after rare rains, releasing clouds of spores across the steppe. ✨
#fungus⚡#camouflage⚡#Patagonia
👉subscribe Interesting Planet
🌎 The Devil’s Cigar is a rare fungus found only in parts of Texas and Japan. When it opens, it releases visible clouds of spores with a faint hissing sound—one of the few mushrooms that “smokes” as it spreads its seeds! ✨
#fungus⚡#nature⚡#Texas
👉subscribe Interesting Planet
🌎 The leafcutter ant creates underground gardens by carrying fresh leaves to feed a special fungus, which is their true food. This farming partnership has evolved over millions of years, making these ants nature’s original farmers long before humans. ✨
#ants⚡#fungus⚡#agriculture
👉subscribe Interesting Planet