# Assemble the hardware ## Step 1 - Attach the micro:bit to the Ring:bit expansion board using the short flat head screws. ![](./images/microbit-xgo-robot-kit-17.png) ## Step 2 - Use the longer flat head screws to fasten the seven-hole beam to the corresponding screw holes on the XGO. ![](./images/microbit-xgo-robot-kit-18.png) ![](./images/microbit-xgo-robot-kit-19.png) ## Step 3 - Mount the Ring:bit expansion board with the micro:bit installed on the seven-hole beam using the long pins. ![](./images/microbit-xgo-robot-kit-20.png) ## Step 4 - Connect the DuPont cable reserved by XGO to the corresponding port of the Ring:bit, among which the black DuPont cable is connected to the G port, and the yellow DuPont cable and the blue DuPont cable are connected to the No. 1 and No. 2 ports. Select the appropriate port number. ![](./images/microbit-xgo-robot-kit-21.png) ## Step 5 - Connect your computer to the micro:bit with a USB cable: ![](./images/microbit-xgo-robot-kit-22.png) ### Start Program The programming of XGO is done on the [Makecode](https://makecode.microbit.org/#) platform; the Makecode platform can use graphical programming, as well as python code programming and JavaScript code programming; ![](./images/microbit-xgo-robot-kit-10.png) ## Add XGO extension library ### The steps are as follows: - Create a new program, name the program name and click the Advanced button in the building block library, as follows: ![](./images/microbit-xgo-robot-kit-11.png) ## Programming Guide Initialize XGO ![](./images/microbit-xgo-robot-kit-square-24.png) Set XGO actions, a total of 12 actions, you can choose one action; ![](./images/microbit-xgo-robot-kit-square-01.png) Get the servo angle of XGO's limb joints and get the current power of XGO; ![](./images/microbit-xgo-robot-kit-square-02.png) ![](./images/microbit-xgo-robot-kit-square-03.png) Set XGO single leg servo loading and all leg servos to debug mode; ![](./images/microbit-xgo-robot-kit-square-04.png) ![](./images/microbit-xgo-robot-kit-square-05.png) Turn on or off the performance mode of XGO; ![](./images/microbit-xgo-robot-kit-square-06.png) Turn on or off the XGO's gyroscope; ![](./images/microbit-xgo-robot-kit-square-07.png) Stop the XGO cycle reciprocating around the X, Y, Z axes; ![](./images/microbit-xgo-robot-kit-square-08.png) Set the time and degree of XGO reciprocating rotation around X, Y, Z axes; ![](./images/microbit-xgo-robot-kit-square-09.png) ![](./images/microbit-xgo-robot-kit-square-10.png) Set the time for XGO to pan or stop and move in the X, Y, Z directions; ![](./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 distance and time of the XGO leg raise; ![](./images/microbit-xgo-robot-kit-square-14.png) ![](./images/microbit-xgo-robot-kit-square-15.png) Set the direction, speed and time of XGO's rotational motion; ![](./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 toe direction of the XGO quadruped; ![](./images/microbit-xgo-robot-kit-square-20.png) Set the servo rotation of the XGO quadruped joint and set the servo speed or step frequency; ![](./images/microbit-xgo-robot-kit-square-21.png) ![](./images/microbit-xgo-robot-kit-square-22.png) Set the XGO movement or rotation and the corresponding speed; ![](./images/microbit-xgo-robot-kit-square-23.png) ![](./images/microbit-xgo-robot-kit-square-26.png) set XGO body height; ![](./images/microbit-xgo-robot-kit-square-25.png) ### Simple example ![](./images/microbit-xgo-robot-kit-square-28.png) Link:[XGO](https://makecode.microbit.org/_Rs2MPv5uebYd) At the same time, you can directly download the program below;
## FAQ *Note: If you want to run the numbered code program, you need to turn on the switch of Ring:bit, and also pay attention to whether the power of XGO is sufficient* ## Related Documentation