4. Case 01 - Run in A Square Routine#

4.1. Purpose#


Program to run it in a square routine.

4.2. Materials Required#


1 × micro:bit XGO Robot Kit

4.3. Hardware Connections#


Connect the micro:bit with the computer.

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

4.4. Software Platform#


Makecode

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

4.5. Program#


Add the XGO extensions.

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

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

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

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

4.6. Program#


Code#

../../_images/microbit-xgot-robot-kit-case01-out-of-the-square-01.png

Linkl Run in A Square Routine

You can also download it directly below:

4.7. FAQ#


If XGO doesn’t run a perfect square, please try adjusting the time and speed.

4.8. Exploration#


How to program it to run in circles?