2. Hardware Assembly#

Step 1

  • Connect the micro:bit with the Ring:bit V2 with the shorter screws.

../../_images/microbit-xgo-robot-kit-17.png

Step 2

  • Fix the 7-hole bricks with the XGO with the longer screws.

../../_images/microbit-xgo-robot-kit-18.png

../../_images/microbit-xgo-robot-kit-19.png

Step 3

  • Fix the Ring:bit V2 on the 7-hole bricks with the shaft pins.

../../_images/microbit-xgo-robot-kit-20.png

Step 4

  • Connect the Dupont cables with the Ring:bit V2(Note to connect in the right connections: G for black, blue for port 1 and yellow for port 2)

../../_images/microbit-xgo-robot-kit-21.png

Step 5

  • Connect the micro:bit with the computer through USB cables.

../../_images/microbit-xgo-robot-kit-22.png

2.1. Programming#


The program platform here we use for XGO is Makecode in the graphical programming, you can choose to program in Python or JaveScript too.

../../_images/microbit-xgo-robot-kit-10.png

2.2. Add XGO Package#


Steps

  • Create a new project, click Advanced in the drawer to see more choices.

../../_images/microbit-xgo-robot-kit-11.png

  • Click extensions in the drawer:

../../_images/microbit-xgo-robot-kit-12.png

  • Search with XGO and download it:

../../_images/microbit-xgo-robot-kit-13.png

Note: If you do not get corresponding results by searching for XGO, you can enter:https://github.com/elecfreaks/pxt-xgo

../../_images/microbit-xgo-robot-kit-23.png

  • The program blocks of XGO are listed below:

../../_images/microbit-xgo-robot-kit-14.png

  • After programming, connect the micro:bit with the computer and download it to the micro:bit board.

../../_images/microbit-xgo-robot-kit-15.png

2.3. Program Guidance#


Initialize XGO

../../_images/microbit-xgo-robot-kit-square-24.png

Set the actions of XGO, there are 12 kinds of actions and you can select any one from them.

../../_images/microbit-xgo-robot-kit-square-01.png

Get the angles of each joint on the limbs and get the power status of XGO.

../../_images/microbit-xgo-robot-kit-square-02.png

../../_images/microbit-xgo-robot-kit-square-03.png

The debug mode of the servos(the specific servo or all servos) on the limbs.

../../_images/microbit-xgo-robot-kit-square-04.png

../../_images/microbit-xgo-robot-kit-square-05.png

Turn on/off the performance mode and the gyroscope for XGO.

../../_images/microbit-xgo-robot-kit-square-06.png

../../_images/microbit-xgo-robot-kit-square-07.png

Stop the periodic rotation of XGO around the X/Y/Z axis.

../../_images/microbit-xgo-robot-kit-square-08.png

Set the rotation degrees/time of XGO around the X/Y/Z axis.

../../_images/microbit-xgo-robot-kit-square-09.png

../../_images/microbit-xgo-robot-kit-square-10.png

Set the time of the translation/going back and forth/moving of the XGO around the X/Y/Z axis.

../../_images/microbit-xgo-robot-kit-square-11.png

../../_images/microbit-xgo-robot-kit-square-12.png

../../_images/microbit-xgo-robot-kit-square-13.png

Set the time and height of the limbs being lifted.

../../_images/microbit-xgo-robot-kit-square-14.png

../../_images/microbit-xgo-robot-kit-square-15.png

Set the direction, speed and time of the rotation of XGO.

../../_images/microbit-xgo-robot-kit-square-16.png

../../_images/microbit-xgo-robot-kit-square-17.png

../../_images/microbit-xgo-robot-kit-square-18.png

../../_images/microbit-xgo-robot-kit-square-19.png

Set the direction of the feet of XGO.

../../_images/microbit-xgo-robot-kit-square-20.png

Set the speed of the servos on the joints and the walking frequency of XGO.

../../_images/microbit-xgo-robot-kit-square-21.png

../../_images/microbit-xgo-robot-kit-square-22.png

Set the speed of moving or rotating for XGO.

../../_images/microbit-xgo-robot-kit-square-23.png

../../_images/microbit-xgo-robot-kit-square-26.png

Set the height of XGO

../../_images/microbit-xgo-robot-kit-square-25.png

2.4. Project Samples#


../../_images/microbit-xgo-robot-kit-square-28.png

Link: XGO

You can also download it directly below:

2.5. FAQ#


Note: Turn on the Ring:bit V2 before running the program and note if the power is sufficient.

2.6. Relevant File#