Welcome to Muto S2 Robot repository
3.USB wireless handle remote control
USB wireless handle remote control
USB wireless handle remote control1、USB wireless controller key position introduction2、USB wireless handle to connect to robot2.1、Install USB wireless handle battery2.2、Plug in the USB wireless handle receiver2.3、Turn on the power of the USB wireless controller2.4、Connect the robot3、Control the robot4、Manually start the handle control program
1、USB wireless controller key position introduction

⑴ L1:No function.
⑵ L2:No function.
⑶ R1:Control the height of the robot's body to be high.
⑷ R2:Control the body height of the robot to be low.
⑸ SELECT:Control the robot speed and body height to medium.
⑹ START:Wake up the USB wireless handle, buzzer switch, press the buzzer, release it to turn it off.
⑺ Directional keys: Up controls the robot to move forward, down controls the robot to move backward, left controls the robot to move left, and right controls the robot to move right.
⑻ Function keys: X controls the robot to rotate left, B controls the robot to rotate right, Y controls the robot to speed up, and A controls the robot to slow down.
⑼ Left joystick: Up to control the robot to move forward, down to control the robot to move backward, left to control the robot to move left, right to control the robot to move right, pressing the joystick has no function.
⑽ Right joystick: Move left to control the robot to rotate left, move right to control the robot to rotate right, up, down and press the joystick have no function.
⑾ MODE:Connecting to some computer systems can pop up the game menu and switch the mode of the controller. Just keep the default.
⑿ USB wireless receiving terminal: Connect to the host USB port.
⒀ USB wireless handle power switch: Turn ON to turn on, turn OFF to turn off.
2、USB wireless handle to connect to robot
2.1、Install USB wireless handle battery
Please open the battery cover on the back of the USB wireless handle, install two AA batteries into the battery compartment as shown below, and then close the battery cover.

2.2、Plug in the USB wireless handle receiver
The picture below shows the receiver of the USB wireless handle:

Please insert the USB wireless handle receiver into the USB interface of the motherboard. As shown in the picture below.

2.3、Turn on the power of the USB wireless controller
Please turn the power switch on the bottom of the USB wireless handle to ON to turn on the power. If not in use for a long time, please turn it to OFF to save power.

2.4、Connect the robot
Then turn on the power switch of the robot and wait for the robot to start up. The start-up process takes about 1-2 minutes. After the start-up is completed, a buzzer will sound.
Continuously press the [START] button of the USB wireless handle. If you hear the robot's buzzer, the connection is successful.
Notice:
A:Since the USB wireless handle requires code confirmation when connecting to the USB receiver, please avoid multiple receivers at the same time when connecting, otherwise interference may occur and other receivers may be connected.
B:USB wireless handle indicator light status explanation:
When the indicator light of the USB wireless controller goes out, it means that the controller is powered off or in sleep state. Confirm that the controller is powered on normally and turn it on, and press the [START] key to wake up the controller.

When the USB wireless handle indicator light flashes, it means that the USB handle receiver is not connected. Please confirm whether the USB handle receiver is correctly inserted into the USB port of the robot.
When the USB wireless handle indicator light only lights red, it means the USB handle receiver is connected.
3、Control the robot
After the connection is successful, you can use the controller to control the robot according to the function introduction of [USB Wireless Controller Key Position Introduction].
Notice:
A : The robot APP control program includes the handle control program, and starts automatically when the computer is turned on by default. This course uses a USB wireless handle to control the robot only when the APP program is started.
B : The USB wireless controller will automatically enter sleep mode if it is not operated for a period of time. At this time, you can press the START button to wake up the controller.
4、Manually start the handle control program
If the APP control program is not started and you want to use the USB wireless handle to control the robot alone, you can run the following command to open the USB wireless handle control program:
python3 ~/muto/app_muto/joystick.py