Skip to main content

Case 08: The "Trembling" XGO


Hi guys, you might know how to operate XGO already from the previous lessons. In this project, we will try programming XGO to give us the responses as a "real" pet dog, the dog would tremble if they feel cold, let's try making a "trembling" XGO!

Quick to Start


micro:bit XGO Robot Kit × 1

Working principle

We use a data cable (USB cable) to connect the computer with the micro:bit, I believe you are already very skilled.

MakeCode Programming

Step 1

Click "Advanced" in the MakeCode to see more choices.

For programming, we need to add a package: click "Extensions" at the bottom of the MakeCode drawer, search for "XGO" in the dialog to download.

Note: If you encounter a prompt that some codebases will be removed due to incompatibility, you can follow the prompt to continue or create a new project in the menu.

Step 2

sample program

Link: A Light-controlled Dog

You can also download it directly below:

Note:The setting of the temperature value in the program depends on the current ambient temperature you are in. If there is no heating device, you can consider placing your palm on the micro:bit. After a minute or two, the micro:bit will The temperature will increase by 1-2 degrees.

Projects Display



How to program to make the XGO walk away after lying down for a while?