control servo every 10 ms bug http connect stop the servo
Posted: Fri Feb 24, 2017 4:38 am
HI
i have a esp8266 and i2c pwm servo ic
i went to servo rotate slowly, so i change pwm value every 10ms
but if there is a http request coming
the servo loop will be break , servo look lag
handleClient() need about 100ms to finish
how can i do make the servo smooth rotate and recv data from http service??
i have tried async web server, but the server still will break servo control loop
can i have a high priority interrupt pause the web server a little time to update pwm??
i have a esp8266 and i2c pwm servo ic
i went to servo rotate slowly, so i change pwm value every 10ms
but if there is a http request coming
the servo loop will be break , servo look lag
handleClient() need about 100ms to finish
how can i do make the servo smooth rotate and recv data from http service??
i have tried async web server, but the server still will break servo control loop
can i have a high priority interrupt pause the web server a little time to update pwm??