Has anyone cracked how to access the dedicated (hardware) pwm generator in the esp12e or 12f, pins GPIO12, 14, 15?
I would like to PWM a fan motor at 20+ khz but not burn up a lot of cpu cycles with software pwm.
Has anyone cracked how to access the dedicated (hardware) pwm generator in the esp12e or 12f, pins GPIO12, 14, 15?
I would like to PWM a fan motor at 20+ khz but not burn up a lot of cpu cycles with software pwm.
Sigma-delta (= hardware) or real PWM? The esp8266 doesn’t have hardware PWM. It does have a software implementation in the SDK that works quite well but ranges from 5 to 95% duty, which for lighting may be sufficient, don’t know about controlling motors.
When in doubt, punt! I’ve programmed up an SO-14 PIC 16F1825 to act as the pwm generator and respond as an i2c slave to the ESP. The PIC also generates the direction control logic for an external dc motor control module.