Serial.print("
Serial.println(left_Y_data);
Serial.print("right
Serial.print(right_B_data);
Serial.print("
right
Serial.print(right_X_data);
Serial.print("
right
Serial.println(right_Y_data);
delay(300);
}
9.2.7.3 Result
After uploading the code, open the serial port monitor and set the serial port baud rate to 9600, so that you can see the
printed remote control value. If you feel that the serial port printing speed is too fast, you can increase the value in the
parentheses of the delay ().
9.3 9.3 Joystick Control Robot Arm
9.3.1 9.3.1 Introduction
We connect the ESP32 development board and the joystick module to the servo drive board, and then the development
board reads the value of the axis X/Y of the module to determine the rotation angle, so that the arm is controlled by the
module.
9.3. 9.3 Joystick Control Robot Arm
left
Y:");
B:");
X:");
Y:");
keyestudio WiKi
(continued from previous page)
131
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers