this post was submitted on 02 Jul 2025
19 points (91.3% liked)

Selfhosted

46671 readers
1379 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

So I've got a couple of Mini PC's and a ODROID H4+ as a NAS, all just standing on my desk at the moment.

I'm going to build them into a 10" Rack and I'd like to have a good cooling solution.

My idea is to buy something like this https://www.alternate.nl/Noctua/NA-FH1-fancontroller/html/product/1917195 And wire it up with a ESP32 board and temperature probes, so that I can connect it all to a dashboard in Home Assistant.

Any advice on this project, or better alternatives would be appreciated.

top 8 comments
sorted by: hot top controversial new old
[–] jjffnn@feddit.dk 5 points 1 day ago (2 children)

I actually have a working'ish prototype of this project laying on my table right now.
It's a 120mm noctua fan being controlled by pwm i relation to the temperature. It also has an oled screen to show temp and fan speed. All controlled trough home assistant via esphome.
I say working'ish because the temp sensor i'm using (dht11) is unreliable and is messing up half the time, so i'm looking into buying a DS18B20 instead.
I'd be happy to share schematics and code if you'd like it.

[–] some_guy@lemmy.sdf.org 4 points 1 day ago (1 children)

You're pretty rad, y'know that?

[–] jjffnn@feddit.dk 4 points 1 day ago

Thanks. 😀
I had to use 4 different sources to make my project work.
It wouldn't be nice to force others to go trough the same amount of trouble when i already have the files.

[–] Ek-Hou-Van-Braai@piefed.social 2 points 1 day ago (1 children)

That would be amazing thanks, I've barely worked with Arduino but I just ordered a starter kit to play around with and learn.

[–] jjffnn@feddit.dk 2 points 1 day ago

I made a git repo with the schematic and yaml file for you, if you have any questions feel free to ask.
I may not know the answer, but i'll do my best to help.

[–] Zwuzelmaus@feddit.org 5 points 2 days ago (1 children)

If you want to do this as an ESP project anyway, you don't need the extra controller.

Fans take a simple PWM signal, which your ESP (or even one of the smallest Arduinos) can create easily.

Good point, I found this: Tutorial - How to control a PWM fan with an ESP32 and Home Assistant ( https://www.youtube.com/watch?v=9-AZF6udg-Q ) I'm just going to do that but with more fans

[–] hendrik@palaver.p3x.de 2 points 2 days ago* (last edited 2 days ago)

I think pretty much any mosfet / h-bridge / motor control board with pwm should do.
If you have those 4-wire fans with a pwm input that accepts 3V3 logic, you might even be able to attach them directly to the ESP:

But that's not all fans, I had some mixed results with that.