hi,
i have a wemos d1 mini in place for checking room temperature and getting values from my powermeter (serial server).
now i want to control 3 fans by pwm in that room.
what is the simpliest way to achieve that? do i need external mosfets?
regards,
andre
Controlling 3 Fans with Wemos D1 Mini
Moderators: grovkillen, Stuntteam, TD-er
-
- Core team member
- Posts: 9921
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: Controlling 3 Fans with Wemos D1 Mini
Depends on what kind of motor you're using.
Usually the rpm of a DC motor is controlled by the voltage and the load.
This could be controlled via PWM, but I guess you may also need some capacitor to make sure it doesn't work as a brake.
Also don't forget to place a diode over the motor to protect the transistor and your power line.
Something like this (the 555 part can be seen as a PWM signal)

If the motor is an AC motor, you need to use a triac. But maybe better to use an existing controller and send the PWM signal isolated via an optocoupler?
Usually the rpm of a DC motor is controlled by the voltage and the load.
This could be controlled via PWM, but I guess you may also need some capacitor to make sure it doesn't work as a brake.
Also don't forget to place a diode over the motor to protect the transistor and your power line.
Something like this (the 555 part can be seen as a PWM signal)

If the motor is an AC motor, you need to use a triac. But maybe better to use an existing controller and send the PWM signal isolated via an optocoupler?
-
- New user
- Posts: 6
- Joined: 07 Mar 2021, 11:41
Re: Controlling 3 Fans with Wemos D1 Mini
the fans are 4-pin fans, DC, 12V, so they can be controlled completely by pwm as far as i underrstood.
it would be enough if alle 3 are running in parallel (same RPM / PWM). is it possible to connect them all to the same wemos-output-pin to control all fans at once?
i hope to get a simpler circuit.
it would be enough if alle 3 are running in parallel (same RPM / PWM). is it possible to connect them all to the same wemos-output-pin to control all fans at once?
i hope to get a simpler circuit.

-
- Normal user
- Posts: 107
- Joined: 29 Aug 2016, 22:03
- Location: Slovenia
Re: Controlling 3 Fans with Wemos D1 Mini
I have experience with controlling "Single room ventilation unit KWL EC 45" (https://www.heliosventilatoren.de/en/ne ... -kwl-ec-45) by using ESP8266.
Ventilation unit have 3 pons: +12V, GND and PWM.
PWM input defines how unit operate: if duty cycle is below 50% then fan blow air IN, if dutycycle is above 50% then air goes OUT. How much above or below 50% duty cycle is faster fan operates. if duty cycle is 50% then fan stops.
How I control it via ESP (I actually control 3 units, every unit in separate room, for each unit I use different GPIO on ESP) below is handwritten schema - basically you need external switching transistor to pull PWM input to GND.
There are also PC computer CPU fans which speed is controlled by PWM - principle is similar.
Ventilation unit have 3 pons: +12V, GND and PWM.
PWM input defines how unit operate: if duty cycle is below 50% then fan blow air IN, if dutycycle is above 50% then air goes OUT. How much above or below 50% duty cycle is faster fan operates. if duty cycle is 50% then fan stops.
How I control it via ESP (I actually control 3 units, every unit in separate room, for each unit I use different GPIO on ESP) below is handwritten schema - basically you need external switching transistor to pull PWM input to GND.
There are also PC computer CPU fans which speed is controlled by PWM - principle is similar.
You do not have the required permissions to view the files attached to this post.
-
- New user
- Posts: 6
- Joined: 07 Mar 2021, 11:41
Re: Controlling 3 Fans with Wemos D1 Mini
hi,
i simply connected pwm-pin of the fan with an output of my wemos d1 mini and gnd of the fan with gnd of wemos d1 mini.
that works for a short time (5s, sometimes 10s, ...).
edit: will using the 2n2222 as in your picture stabilize it?
regards,
andre
i simply connected pwm-pin of the fan with an output of my wemos d1 mini and gnd of the fan with gnd of wemos d1 mini.
that works for a short time (5s, sometimes 10s, ...).
edit: will using the 2n2222 as in your picture stabilize it?
regards,
andre
Who is online
Users browsing this forum: Anthropic Claude Bot [bot] and 3 guests