Help Need - PWM Servo Control with ESP32-S2
Posted: Tue Jun 11, 2024 2:49 pm
I'm doing some development with an ESP32-S2 dev board and have been asked to add a servo motor.
I've tried the mcpwm_servo_control example in the IDE but can't get it to compile, for instance I get an error
If I change the target to ESP32-C3 it compiles fine (and looking at the Readme file, the S2 is not listed as supported, so I guess I shouldn't be surprised.)
Two questions.
I've tried the mcpwm_servo_control example in the IDE but can't get it to compile, for instance I get an error
- MCPWM_TIMER_CLK_SRC_DEFAULT undeclared
Code: Select all
#include "driver/mcpwm_prelude.h"
Two questions.
- Is it possible to implement a PWM servo control with the S2?(This page suggests that PWM is supported https://docs.espressif.com/projects/esp ... -1-v1.html)
- If it is, can anyone point me at an example that I can test and then use to develop my own application?