# Case 10: The XGO Eatting Bones ![](./images/xgo-10-1.png) ## Introduction Hi guys, we know that dogs like bones very much, how can we program to achive a similar situation? We've put this idea into practice in this project, and you can do more projects with your ideas. ## Quick to Start --- ### Materials Required [micro:bit XGO Robot Kit ](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-xgo-robot-kit?_pos=1&_sid=c796ff3f3&_ss=r) × 1 [micro:bit](https://www.elecfreaks.com/micro-bit/board.html) × 1 ### Working Principle 1. Two micro:bits are required in this project, we will create to programs with one for radio transmitter and another for receiving the signal. 2. The closer the receiving end is to the transmitter end, the stronger the radio signal will be, if the signal is strong, it means that another micro:bit may be very close. If the radio signal is weak, the other micro:bit is probably far away. ### Hardware Connections --- Connect the micro:bit with the computer through the USB cable. ![](./images/microbit-xgo-robot-kit-22.png) ## MakeCode Programming --- ### Step 1 Click ” Advanced“ in the MakeCode drawer to see more choices. ![](./images/microbit-xgo-robot-kit-10.png) We need to add a package for programming. Click "Extensions" in the bottom of the drawer and search with "XGO" in the dialogue box to download it. ![](./images/microbit-xgo-robot-kit-11.png) ***Note:*** If you met a tip indicating that some codebases would be deleted due to incompatibility, you may continue as the tips say or create a new project in the menu. ### Step 2 #### Sample Code ##### XGO Code ![](./images/case10-1.png) Link: [xgo](https://makecode.microbit.org/_Lhrhbp7dDb1M) You may download it directly below:
##### “ Bones“ Code ![](./images/xgo-10-2.png) Link: [Bones](https://makecode.microbit.org/_dLc2HV21M64H) You may download it directly below: ### Projects Display ### Relevant Files ### Exploration