Сделал простой скрипт для управления температурой кулера Raspberry Pi.
- Зачем? Их же полно готовых! Даже дефолтные инструменты есть.
Хотелось сделать этот велосипед по-своему 😁
▫️Пороговых температур две: Одна контролирует момент включения, другая выключения. Например, выше 80 - включаем. Остыл до 50 - выключаем.
▫️ Значения пороговых температур заипсывается в специальном файле и считывается каждый раз при проверке темературы без рестарта сервиса.
Исходники и схема.
https://github.com/paulwinex/rpi_fan_control
ЗЫ. В схеме присуствует сопротивление. Это требуется только если нужно уменьшить скорость вращения кулера. Мой на полных оборотах сильно гудит, пришлось поставить.
#sources#rpi
🌍 Nearly half of all quinoa grown worldwide comes from just two regions in the Andes Mountains of Bolivia and Peru, where unique high-altitude conditions make large-scale farming possible. ✨
#agriculture⚡#Andes⚡#crops⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 Bananas are the world’s most-exported fruit, yet nearly all commercial bananas are genetic clones. This makes plantations worldwide vulnerable to the same diseases spreading rapidly. ✨
#agriculture⚡#crops⚡#food⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 Wheat is grown on more land than any other crop worldwide. Over 215 million hectares—from Russian steppes to Canadian prairies—are covered with wheat fields each year. ✨
#agriculture⚡#crops⚡#food⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 Palm oil plantations now cover over 19 million hectares worldwide, mainly in Indonesia and Malaysia. This rapid expansion has made Southeast Asia the top global supplier of edible vegetable oil. ✨
#agriculture⚡#crops⚡#landuse⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels