Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional fans #22

Open
B08Z opened this issue Jun 18, 2023 · 10 comments
Open

Additional fans #22

B08Z opened this issue Jun 18, 2023 · 10 comments

Comments

@B08Z
Copy link

B08Z commented Jun 18, 2023

Not sure this is an issue as I haven't actually started work on it. But I want to be able to connect 3 pwm fans and be able to read their rpm etc.

I have looked over the yaml and I assume I just copy the portion of code that specifies the ledc platform but change the gpio

If any one has a config for 2 or more fans that would be amazing.

@B08Z
Copy link
Author

B08Z commented Jun 28, 2023

Not sure this is an issue as I haven't actually started work on it. But I want to be able to connect 3 pwm fans and be able to read their rpm etc.

I have looked over the yaml and I assume I just copy the portion of code that specifies the ledc platform but change the gpio

If any one has a config for 2 or more fans that would be amazing.

Sorted it. Super easy.

Just wondering can I have variable PWM outputs. So rather than all 3 fans running the same they would have independent pwm input

@patrickcollins12
Copy link
Owner

Yea you can. Put the pwm on a separate gpio. You’ll need3 temp sensors too though. Copy the climate yaml to create 3 pid climates with the temp sensors and 3 ledc’s, give them all unique ids and names. home assistant will then see 3 different climate controllers.

@martinhoess
Copy link

Sorry for hijacking this but my question goes in the same direction.

Is the number of fans limited in any way other than by the power supply?
(Assuming they should all run at the same speed).

I have 5x3 12v 80mm and 2x 12v 120mm fans as ventilation for my small office rack.
It would be really nice if I could control the fans dynamically via HA (depending on the office/rack temperature). Means the DHT11 I would not necessarily (only as a backup).

@DunklesKaltesNichts
Copy link

DunklesKaltesNichts commented Jul 6, 2023

the number of fans is not really limited. the number of independently controllable fans depends on the number of GPIOs.

you can group all 80mm together and control the 120mm individually. it just depends on how you connect the PWM line of the fans.

in your case you need 5 GPIOS for the 80mm and 2 for the 120. so 7 GPIOs.

@martinhoess
Copy link

Thank you.

The plan was to make two units anyway (redundancy).
The 80mm are in groups of 5 (I wrote that the wrong way around). But they should all run the same speed anyway. But I will try that out soon :)

@martinhoess
Copy link

I played around with it yesterday/today. Works wonderfully.

Additional fans work without problems, although I have now connected mine together as a chain and not each individually (in my case the fans should all run the same speed and they have an extra port to connect together).

The only thing I did different is, I left out the buck converter, this ESP board (not all) can be directly powered by VIN with 7-12 volts so you can use the 12V directly and the temperature sensor is powered by the 3V3 from the board.

And the DHT11 I replaced by a DHT22 because the DHT11 has only an accuracy of +-2 degrees (the DHT11 should be banned, the price difference is so minimal that it has no reason to exist).

@martinhoess
Copy link

IMG_6468

So, here is my attempt.

3D printed enclosure. Two with DHT22 instead of DHT11 and two with Dallas DS18B20 (because the probe has a long cable and is easier to attach somewhere). And as mentioned above I left out the step down because this board can work with 12V and provides 3V for the probe. On each box there are 5x80mm fans (daisy chained).

I still have to make the integration/display in HA nicer and also watchdog if one of the boxes should fail. The nice thing is that the fans work even if the ESP should not respond / be broken.

Thanks to @patrickcollins12 for the groundwork and creation of this project.

@patrickcollins12
Copy link
Owner

Love the built in driver. Surprised the built in voltage regulator on the esp32 can handle 12v!! I'd heard it would only go up to 7v

The case and cabling look very professional.

I'm pleased to say my console fan is incredibly stable. I never have to touch it. Just works. When the kids play the PS5 or my macmini starts heating up the fan always responds and does its job.

@patrickcollins12
Copy link
Owner

image

This is my fan speed and cabinet climate over the last few hours. Doing it's job well.

@martinhoess
Copy link

Love the built in driver. Surprised the built in voltage regulator on the esp32 can handle 12v!! I'd heard it would only go up to 7v

image

Apparently not all boards can do this, but the ESP-WROOM-32 from aliexpress that I have can (they have VIN on the pin as a label) in case of doubt you have to look at the data sheet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants