Replies: 4 comments
-
Are you connecting a fan directly to the ESP32 pin? What type of fan? |
Beta Was this translation helpful? Give feedback.
-
Also, why are you using analogWrite? HomeSpan has built-in PWM that properly scales and manages the duty-cycle for you. |
Beta Was this translation helpful? Give feedback.
-
You're right! Otherwise, my idea is to control the fan using a Speed controller for AC motors with a PWM input for the commutator motor in the fan. Unfortunately, I'm not a programmer and I'm kind of learning it myself. I am an electrician. I finally managed to solve it this way. `
` |
Beta Was this translation helpful? Give feedback.
-
Hi, I had a similar problem, I fixed it and I put the code I use here -> #815, so take a look, I tested myself and it works great. |
Beta Was this translation helpful? Give feedback.
-
Hello friends, I finally managed to create my own library for Fan PWM, but the problem is that at 100% load, only 1.2v appears on the given pin.
On the contrary, if I use a dimmable led diode with (DEV_DimmableLED) on the given pin as in the examples, a PWM signal of 3.3V normally appears at the output
Does anyone have any idea what it could be? It must be somewhere in the code.
Here is the library code.
Beta Was this translation helpful? Give feedback.
All reactions