In this article, you will learn how to transfer your code to a micro:bit robot.
Last updated - July 23, 2024
Using the micro:bit USB cable, you can connect the micro:bit directly to the platform and follow the on-screen instructions, or you can download a file and transfer it to the micro:bit manually.
Connecting Your Micro:bit
- Click the three dots ... to the right of the download button at the bottom of the screen.
- Click "Connect device."
- Connect your micro:bit cable to both your micro:bit and your computer.
- Read the instructions and click "Next" to continue.
- In the second box that pops up, the micro:bit will either be named "BBC micro:bit CMSIS-DAP" or "DAPLink CMSIS_DAP." Select the micro:bit name and click "Connect."
- Now your micro:bit is connected! To download code to the micro:bit, click the "Download" button at the bottom of your screen.
- A light will flash on the micro:bit when the program starts transferring from your computer.
- Once the light stops flashing, the file is finished transferring and the program can be run on the micro:bit!
Manual Approach
- To manually transfer your code to the micro:bit, click the "Download" button at the bottom of your screen. This will download the code as a .hex file.
- Plug one end of the USB cable into the micro:bit and the other end into your computer.
- Look for a folder that says "MICROBIT."
- Drag the .hex file from your downloads folder to the micro:bit folder.
- A light will flash on the micro:bit when the program starts transferring from your computer.
- Once the light stops flashing, the file is finished transferring and the program can be run on the micro:bit!
For a video tutorial, click here.