Using the ESP32Servo library and this sketch:
#include <ESP32Servo.h>
Servo myservo, myservo1, myservo2, myservo3, myservo4, myservo5, myservo6, myservo7, myservo8, myservo9, myservo10;
int pos = 0;
void setup() {
/*
ESP32PWM::allocateTimer(0);
ESP32PWM::allocateTimer(1);
ESP32PWM::allocateTimer(2);
ESP32PWM::allocateTimer(3);
myservo.setPeriodHertz(50);
myservo1.setPeriodHertz(50);
myservo2.setPeriodHertz(50);
myservo3.setPeriodHertz(50);
myservo4.setPeriodHertz(50);
myservo5.setPeriodHertz(50);
myservo6.setPeriodHertz(50);
myservo7.setPeriodHertz(50);
myservo8.setPeriodHertz(50);
myservo9.setPeriodHertz(50);
*/
myservo.attach(0, 750, 2250);
myservo1.attach(1, 750, 2250);
myservo2.attach(2, 750, 2250);
myservo3.attach(3, 750, 2250);
myservo4.attach(4, 750, 2250);
myservo5.attach(5, 750, 2250);
myservo6.attach(6, 750, 2250);
myservo7.attach(7, 750, 2250);
myservo8.attach(8, 750, 2250);
myservo9.attach(9, 750, 2250);
myservo10.attach(10, 750, 2250);
}
void loop() {
myservo.write(180);
myservo1.write(180);
myservo2.write(180);
myservo3.write(180);
myservo4.write(180);
myservo5.write(180);
myservo6.write(180);
myservo7.write(180);
myservo8.write(180);
myservo9.write(180);
myservo10.write(180);
delay(3000);
myservo.write(0);
myservo1.write(0);
myservo2.write(0);
myservo3.write(0);
myservo4.write(0);
myservo5.write(0);
myservo6.write(0);
myservo7.write(0);
myservo8.write(0);
myservo9.write(0);
myservo10.write(0);
delay(3000);
}
My servo moved on pin 0 and pin 2 only.
When i upgraded to last version i get pin 0,3,4,7,9,10 working.
Does someone have the same results ?