[X2] 1. Push

1. Robot Assembly
1) Assembling the Robot
2) Verifying Cable Connections
2. Code Upload & Robot Operation
Without Direct Coding, when using the Complete Robot Operation Program provided by XROBO
When Directly Coding individual robot operation programs
1) When using the Complete Robot Operation Program
① Preparing for Upload
② Download and Load the Operation Program
③ Uploading the Code
④ Operating the Robot
2) If You Are Coding the Program Yourself
① Preparing for Upload
② Coding the Program
③ Uploading the Code
④ Operating the Robot
3. Coding Examples
1) Turning On One LED at a Time
Turn on the LED
Since ‘LED 1’ on the left is connected to the OUT1 port, select ‘OUT1’ when choosing the port.
Turn on the LED
Turn on the Left LED and Then the Right LED After 1 Second
Since ‘LED 2’ on the right is connected to the OUT2 port, select ‘OUT2’ when choosing the port.
2) Driving the Robot
Move Forward/Backward
If the DC motor speed value is ’20’, the wheels rotate forward, making the robot move forward. If it is ‘-20’, the wheels rotate backward, making the robot move backward.
Rotate Left/Right
If the left wheel rotates backward (M1 speed value is ‘-20′) and the right wheel rotates forward (M2 speed value is ’20’), the robot rotates left in place. For a right rotation, the speed values of M1 and M2 are opposite.
3) Controlling the Robot with the Remote Control
When the remote control button is pressed:
The actions that should be performed when the remote control button is pressed are placed inside the ‘Repeat Forever’ block.
As soon as the START button is pressed:
When the remote control button is pressed:
The actions that should be performed as soon as the START button is pressed are placed directly below the ‘Start’ block, and the actions that should be performed when the remote control button is pressed are placed inside the ‘Repeat Forever’ block.
4. Troubleshooting Robot Issues
1) When the Power Does Not Turn On
  • Ensure the batteries are inserted with the correct polarity, matching the ‘+’ and ‘-‘ signs.
  • Verify that the jumper cap is properly inserted into the 12V power connector on the CPU board.
  • If there is no jumper cap available, use a 3×8 bolt to connect to the 12V power connector as an alternative.
  • Inspect the battery pack cable for any breaks or disconnections.
  • Ensure that the battery pack cable is securely connected to the 6V power connector on the CPU board.
2) When the Remote Control is Not Working
3) When the DC Motor Does Not Rotate / Rotates in the Wrong Direction
  • Ensure that the motor cables are correctly connected to the motor port.
  • Check the motor cables for any signs of disconnection or damage.
  • Confirm that the motor cables are inserted vertically into the motor ports on the CPU board. If connected horizontally, the motor may not rotate.
  • Ensure the black wire of the motor cable is aligned with the arrow on the CPU board case. If connected in reverse, the DC motor will rotate in the opposite direction.
  • If the DC motor driver board is not inserted according to the assembly diagram, do not turn on the power. Insert it correctly as per the assembly diagram to avoid overheating risks during operation.
  • If the DC motor driver board is not inserted, place it properly and then turn on the power to check the operation.
4) When the LED is Not Functioning Properly
  • Ensure that the 3-PIN cable is connected to the correct OUT port.
  • Verify that the black wire of the 3-PIN cable is plugged into the side of the LED pin with the white line.
  • Confirm that the black wire of the 3-PIN cable is connected in the direction of the arrow on the CPU board case.
5) When the Robot Operates Abnormally
  • Ensure that the direction of the DC motor shaft in the assembled robot matches the assembly diagram. Incorrect assembly of the motor shaft may cause the robot wheels to get stuck on the frame and malfunction.
  • Check that the cables are not caught in the drivetrain. If the cables are entangled with the drivetrain, the robot may not function properly.
Scroll to Top