forked from jkb-git/ESP32Servo
-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
I have tested many times with version 0.13.0.
When I use ESP32 S3 (ESP32 S3 DevKitC) , if the number of servo is more than 4, the middle servo doesn't work。
I tested 2 ESP32 S3 boards and got the same results .
But When I use another ESP32 board (ESP32 DEVKIT V1), The following 6 servo are all working fine
#define SL1_PIN GPIO_NUM_4 // fine
#define SL2_PIN GPIO_NUM_5 // fine
#define SL3_PIN GPIO_NUM_2 //not work
#define SR1_PIN GPIO_NUM_21 //not work
#define SR2_PIN GPIO_NUM_16 // fine
#define SR3_PIN GPIO_NUM_17 // fine
void CodelabOS::InitServo() {
CrazyLog::d(kTag, "InitServo");
s_left_1_.attach(SL1_PIN, 500, 2500);
s_left_2_.attach(SL2_PIN, 500, 2500);
s_left_3_.attach(SL3_PIN, 500, 2500);
s_right_1_.attach(SR1_PIN, 500, 2500);
s_right_2_.attach(SR2_PIN, 500, 2500);
s_right_3_.attach(SR3_PIN, 500, 2500);
delay(2000);
.....
}
Then
I checked the pin signals with my oscilloscope , the blue channel is SL3_PIN in the code above,PWM is not working.
the yellow channel is the SL1_PIN pin in the above code, it works great.
Metadata
Metadata
Assignees
Labels
No labels