4 servo motor with 2 nunchuck

Hello everyone, i have a projet, i want to control 4 servo motor with 2 nunchuks connect to esp32. My esp32 is Wemos mini ttgo esp32. I tried a program for read the value of nunchucks about my esp32 but my esp32 returns : rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:9720 ho 0 tail 12 room 4 load:0x40080400,len:6352 entry 0x400806b8

I2C error code _burstRead error: 2 repeted: 1

I2C error code _burstRead error: 2 repeted: 2

I2C error code _burstRead error: 2 repeted: 3

I2C error code _burstRead error: 2 repeted: 4

I2C error code _burstRead error: 2 repeted: 5

My code is : #include <WiiChuck.h> #include <ESP32Servo.h>

Accessory nunchuck1;

Servo one; Servo two; Servo three;

void setup() { delay(1000); Serial.begin(115200); nunchuck1.begin();

Serial.println(“Loading controller…”);

one.attach(35);
two.attach(27);
three.attach(25);
}

void loop() {

nunchuck1.readData(); // Read inputs and update maps
int Servo1Val = map(nunchuck1.values[0],0,255,0,180);
int Servo2Val = map( nunchuck1.values[10]>0?
0:// Upper button pressed
(nunchuck1.values[11]>0?
255:// Lower button pressed
128)//neither pressed
,0,255,0,180);
int Servo3Val = map(nunchuck1.values[1],0,255,0,130);// z button
Servo3Val=Servo3Val+27; if (Servo1Val>=100){ Servo1Val=Servo1Val+21;

} else if (Servo1Val<=85){ Servo1Val=Servo1Val-18;

}

Serial.println(Servo3Val); if (Servo3Val>=100){ Servo3Val=Servo3Val+41; Serial.print(“Changement :”); Serial.println(Servo3Val);

} else if (Servo3Val<=85){ Servo3Val=Servo3Val-42; Serial.print(“Changement :”); Serial.println(Servo3Val);

}

one.write(Servo1Val);
two.write(Servo2Val);
three.write(Servo3Val);
}

Have you a solution because i search during 2 mounth, i tried many program but it does not work.

Bonjour à tous, j’ai un projet, je souhaite contrôler 4 servomoteurs avec 2 nunchuks connectés à esp32. Mon esp32 est Wemos mini ttgo esp32. J’ai essayé un programme pour lire la valeur de nunchucks sur mon esp32 mais mon esp32 retourne: rst: 0x1 (POWERON_RESET), boot: 0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP: 0xee clk_drv: 0x00, q_drv: 0x00, d_drv: 0x00, cs0_drv: 0x00, hd_drv: 0x00, wp_drv: 0x00 mode: DIO, horloge div: 1 charge: 0x3fff0018, len: 4 charge: 0x3fff001c, len: 1216 ho 0 queue 12 salle 4 charge: 0x40078000, len: 9720 ho 0 queue 12 salle 4 charge: 0x40080400, len: 6352 entrée 0x400806b8

Code d’erreur I2C _burst Erreur de lecture: 2 répétées: 1

Code d’erreur I2C _burst Erreur de lecture: 2 répétées: 2

Code d’erreur I2C _burstRead error: 2 répété: 3

Code d’erreur I2C _burst Erreur de lecture: 2 répétées: 4

Code d’erreur I2C _burst Erreur de lecture: 2 répétées: 5

Mon code est: #include <WiiChuck.h> #include <ESP32Servo.h>

Accessoire nunchuck1;

Servo un; Servo deux; Servo trois;

void setup () {delay (1000); Serial.begin (115200); nunchuck1.begin ();

Serial.println(“Loading controller…”);

one.attach(35);
two.attach(27);
three.attach(25);
}

boucle vide () {

nunchuck1.readData(); // Read inputs and update maps
int Servo1Val = map(nunchuck1.values[0],0,255,0,180);
int Servo2Val = map( nunchuck1.values[10]>0?
0:// Upper button pressed
(nunchuck1.values[11]>0?
255:// Lower button pressed
128)//neither pressed
,0,255,0,180);
int Servo3Val = map(nunchuck1.values[1],0,255,0,130);// z button
Servo3Val = Servo3Val + 27; si (Servo1Val> = 100) {Servo1Val = Servo1Val + 21;

} else if (Servo1Val <= 85) {Servo1Val = Servo1Val-18;

}

Serial.println (Servo3Val); si (Servo3Val> = 100) {Servo3Val = Servo3Val + 41; Serial.print (“Changement:”); Serial.println (Servo3Val);

} sinon si (Servo3Val <= 85) {Servo3Val = Servo3Val-42; Serial.print (“Changement:”); Serial.println (Servo3Val);

}

one.write(Servo1Val);
two.write(Servo2Val);
three.write(Servo3Val);
}

Avez-vous une solution car je recherche pendant 2 mois, j’ai essayé de nombreux programmes mais ça ne marche pas.