Esp8266 Pwm 25khz
Esp8266 Pwm 25khz
Hello, everyone! Esp8266 only can output the pwm frequency is 1000Hz,I want to control the fan, the pwm frequency needed 25Khz, how can I implementation this function. Thanks!
Re: Esp8266 Pwm 25khz
Your best bet would be to use an external chip and control it by I2C.
The ESP8266 has no dedicated hardware to generate a PWM waveform (bit banging is used to achieve the 1KHz rate used by MicroPython) and it will be extremely difficult to achieve that frequency.
The only possibility I can think of would be to create a hack to abuse SPI - which can be clocked at high rates. But I would suggest using an external chip or a different micro.
The ESP8266 has no dedicated hardware to generate a PWM waveform (bit banging is used to achieve the 1KHz rate used by MicroPython) and it will be extremely difficult to achieve that frequency.
The only possibility I can think of would be to create a hack to abuse SPI - which can be clocked at high rates. But I would suggest using an external chip or a different micro.