Controlling a servo with ESP32-C3
Posted: Tue Feb 22, 2022 3:47 am
Hi, I'm working on a project that uses ESP32-C3 (ESP32-C3-01M from Ai-thinker) to control a 9g servo. So far, I'm having no luck getting it to work. I've tried several servo libraries for ESP32, like esp32servo, and ledc based servoesp32, and none could make it work. I was able to see ledc control an LED on GPIO4 using ledc. While I see several mention of servo projects using ESP32-C3 on the internet, chip selector on Espressif shows ESP32-C3 to be not recommended for servo. I have been powering the servo with 5v power, and try to feed the PWM output directly into control pin. I know the servo is alive as it works with ESP8266 based setup i have.
I just wanted to find out if I'm on a path that's not going to succeed, or if there're other's who's been able to make it work... thanks!
I just wanted to find out if I'm on a path that's not going to succeed, or if there're other's who's been able to make it work... thanks!