this post was submitted on 02 Oct 2025
22 points (100.0% liked)

Linux

58873 readers
422 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

I'm making a small cluster where I want one SBC in charge of the fan. the fan will pull across 2 chambers to cool everything. I want to be able to use standard linux tools to read and control fan speed but the orange pi I'm planning to put in charge of this function doesn't have a typical PC fan header. I have USB ports and GPIO pins I can break out into a microcontroller or some other adaptor or board but I wanted this to be visible to linux with standard tools.

I saw there are various pi PWM boards out there, but they all seem to cover the top of the boards and blow directly down with their own fan. I'm building a case with a single large fan and ducting that pulls air past passive heatsinks so that wont work.

I could just hardwire the fan and let it run full speed all the time, but thats louder and pulling in more dust than it needs to and wont warn me if the fan dies. Surely someone has already solved this problem but I haven't been able to figure out how.

top 7 comments
sorted by: hot top controversial new old
[–] digdilem@lemmy.ml 3 points 1 week ago

I've recently done almost exactly this, although I used an ESP8266 running esphome. That powers two 120mm fans that have various speed settings (including 0 rpm via PWM) depending on both the power state of various devices in the cupboard where it's housed, as well as temperature. All speeds and controls are exposed to linux via the Home Assitant API, and of course that has its own alerts and dashboards. I wanted to run this fully independently of the machines its cooling.

Not worth pursuing if you don't already have an HA install, but if you do then perhaps worth a thought of a different approach.

[–] Oisteink@lemmy.world 2 points 1 week ago

I would probably go with a microcontroller and something like this: https://learn.adafruit.com/emc2101-fan-controller-and-temperature-sensor/overview But your orange pi can drive it too

[–] muusemuuse@sh.itjust.works 1 points 1 week ago (1 children)

I wonder, would something like an Adafruit EMC2101 be visible to linux?

[–] SteveTech@aussie.zone 2 points 1 week ago

The EMC2101 is a slightly modified clone of the LM63, so if you connect it to your board's I2C bus and instantiate the lm63 driver to the right address, it should show up in lm-sensors like a normal PC fan. Or there's userspace python drivers, if you don't need a kernel hwmon interface or can't get it to work.

[–] frongt@lemmy.zip 1 points 1 week ago (1 children)
[–] muusemuuse@sh.itjust.works 2 points 1 week ago

dont those use special software that lm-sensors and hwmon and such wouldnt see?

[–] BCsven@lemmy.ca 1 points 1 week ago

Is the Orange pi like the RPi where 3 of the gpio pins can vary the fan speed?