
1. What is micro:bit
micro:bit is a microcontroller designed by the BBC in the UK, primarily used for programming education for young people. The initial intention of designing micro:bit is to bring programming closer to the classroom, allowing everyone to learn programming, sparking students’ interest, and providing a good tool to realize creative ideas. It can be used to create any cool invention, whether it’s a robot or a wearable device.
micro:bit has a range of innovative features, such as 25 red LED lights that can display messages; it has two programmable buttons that can be used to control game actions or pause/play a piece of music.micro:bit can detect motion and inform the user of the direction of the movement, and it can also connect to other devices or the internet via a low-power Bluetooth module.micro:bit also comes with common sensing devices like a light sensor and a temperature sensor, enabling the creation of many smart products commonly found in daily life.


2. How to Program micro:bit
Connect micro:bit using makecode.

Connecting scratch 3.0 to the micro:bit board is similar to connecting LEGO WeDo 2.0; you need to run the link first.

Below is an example using makecode to connect to the micro:bit board and import programs.
STEP 1: Open the makecode online programming platform
Makecode URL:https://makecode.microbit.org/#editor

STEP 2: Connect micro:bit to the computer
Connect the micro:bit mainboard to the computer via a USB data cable. When correctly connected, the power indicator light on the back of the micro:bit mainboard will light up.

Before programming, we need to ensure the mainboard is recognized by the computer. Open “My Computer” and the micro:bit mainboard will show up in the disk list as “MICROBIT”.
STEP 3: Create a new project
Click on the “Project” button at the top of the simulation window. On the page that appears, click “New Project” to proceed.

STEP 4: Download the program to micro:bit
Click the “Untitled” box below the command area to name the program.

The simulation window allows you to see the simulated actions after running the program, and you can control the simulator using the buttons below the simulation window.

Click the “Download” button below the simulation window, and in the pop-up dialog, choose “Save As”. In the dialog that appears, select to save the .hex file to the “MICROBIT” disk, then click “Save”.If the “Save As” option does not appear, you need to place the downloaded .hex file into the “MICROBIT” disk.

During the download process, the power signal light on the back of the micro:bit mainboard will flash. Once the download is complete, the power signal light will stop flashing and remain on.

If you want to communicate and learn about creative ways to use LEGO WeDo/EV3 robots, you can scan the QR code below to add me on WeChat, and note “Join the group to learn”. Everyone is welcome to exchange and discuss.
Writing is not easy, remember to click to read again.
Long press to follow
Get more wonderful content
I’ll be waiting for you here.