Hello all! I have just gotten my first ESP32 and to be perfectly honest I am a complete newbie around ESPs… But I at least managed to install ESPhome on Hassio and also I flashed my ESP32 so it connected on the network so, jay, so far so good.
The setup I want to achieve is actually just like this, except this is ESP8266 and I have ESP32:
Just put the integration in on Home Assistant and the high-medium-low works out of the box. Tried with a lower frequency first but it made no sense. At 10000Hz it works just as I hoped.
Thanks, yes I might do that, but now I need to get my “installation” fan and build the component and then I can fine-tune. How easy it was with ESPHome! #impressed
I have attempted exactly the same way you have it setup and not able to get it work. Only difference is I am using a Amperage: 12V DC 1A 1 Amp 1000mA 12W power supply. Does it need more power? Amp?
Thanks in advance.
How did you work out the frequency for this?
I have the same MOS Module and I have 2 x 12v Fans connected and everything works great.
The problem I have is I want to control a 12v DC water pump that pulls 8A max. I purchased a XY-MOS that supports 400w 15A (https://www.robotics.org.za/XY-MOS) but I’m just not sure what Frequency to use in esphome or how to work it out. Google is telling me 0 - 20 Mhz supported signal frequency. is it that simple?
Apologies for posting on this thread, but it’s the only one that I can find that makes mention of using an ESP8266 at 2KHz.
@tom_l I have recently got an ESP8266 with integrated fets (Sinilink XY-WFMS), and have been trying to control a 5V fan in the same way @corvy is.
I’ve used this thread as a rough guide and have noticed that I get coil whine at low freqs as you mentioned above. I set the frequency to 20KHz as you suggested, but I lose speed control all together. I also noticed you set your frequency to 20KHz in your example. I’ve read the ESP8266 isn’t capable of going above about 2KHz due to it’s software PWM. There is an alternative PWM implementation that claims to combat this, but it’s not available in ESPhome at the moment. I opened a feature request, hopefully It is of interest to the devs.
How are you able to run an ESP8266 at 20KHz? Or was this just an example for Corvy’s setup?
The problem I am having is that I cannot get the fan to have low/med/high speeds as well as no whining on low speeds. If I set the freq to 20KHz, low/med/high are all the same. I tried setting varying integers for the speed in the ESPhome config (0.01 to 0.99 and many in between), but it’s only if I reduce it to about 2KHz that I get speed control back but the lower speeds are terribly whiny.
I’m trying to decide what the best option would be. I have a couple of 5V USB fans (2 wire) that I have gutted and want to replace their PCBs with a HA controllable alternative. The Sinilink XY-WFMS seemed great, but I cannot get it to perform as it did with the fan’s own board. I tried Tasmota to start, but the slider in the Tasmota UI was only useful for the last 10% or so. Anything below that was whiny. I tried adjusting the pwm freq via the console, but it doesn’t appear to go as high as 20KHz, so I moved to ESPhome and whilst I can set the freq to 20KHz, I still cannot get the results I want. A ton of reading led me to the above blog, which has now pushed me towards thinking an ESP32 and fet board may be the better option… Unless you have any suggestions? I am willing to try things before I put an order in for more parts.