Controlling PC fan speed

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
ajocius
Posts: 83
Joined: Mon Feb 19, 2018 6:31 am

Controlling PC fan speed

Post by ajocius » Tue Dec 10, 2019 12:41 pm

I would like to control PC fan speed using ESP32 adn Micropython. Fan will be cooling air in my mini greenhouse, once temperature reaches trigger level, measured by DHT22. It is 12V fan and I can run it on 100% speed by connecting two power cables. However, there is no need to run it on 100% of speed, might be too much of air movement, loud, etc
PC Fan has 4 connectors, two of which are 12V power supply. The other two are Signal (Fan RPM) and PWM (Digital control) according to google. Is there any way for me to connect one or both of those pins to ESP32 and control fan speed? If yes, would be great if you have link to some sample code. Is it controlled by sending RPM value? or percentage of maximum RPM? If this is not possible to control directly from ESP32, can this be done using some driver module attached to ESP32 ?

DJShadow1966
Posts: 60
Joined: Sun Jun 23, 2019 4:55 am
Location: Gateshead, Tyne and Wear

Re: Controlling PC fan speed

Post by DJShadow1966 » Tue Dec 10, 2019 2:27 pm

Hello

Have a look at this post viewtopic.php?t=3224

Regards Mike

ajocius
Posts: 83
Joined: Mon Feb 19, 2018 6:31 am

Re: Controlling PC fan speed

Post by ajocius » Tue Dec 10, 2019 3:37 pm

thanks, saw that one, but it didn't contain sample code, so not sure how to control PC fan...

User avatar
MostlyHarmless
Posts: 166
Joined: Thu Nov 21, 2019 6:25 pm
Location: Pennsylvania, USA

Re: Controlling PC fan speed

Post by MostlyHarmless » Tue Dec 10, 2019 5:05 pm

ajocius wrote:
Tue Dec 10, 2019 3:37 pm
thanks, saw that one, but it didn't contain sample code, so not sure how to control PC fan...
If the fan is controlled by an actual PWM signal, then the esp32's PWM module should work.


Regards, Jan

Post Reply