[micro:bit][MakeCode][Blocks] Overview and Setup

Last revision 2026/08/07

MakeCode with micro:bit and HUSKYLENS 2 is like a visual LEGO lab: assemble boards, cables, and firmware, then add the huskylensv2 extension in MakeCode to start kid‑friendly AI vision projects.

1.Introduction

1.1 Introduction to MakeCode

MakeCode is an open-source programming tool launched by Microsoft for teenagers and programming beginners. It features a dual mode of graphical drag-and-drop and code editing, lowering the threshold for programming entry and adapting to multiple hardware scenarios to quickly realize ideas.

MakeCode official website: https://makecode.microbit.org/

1.2 Introduction to micro:bit

micro:bit is a microcomputer specifically designed for children's programming education and applying technological knowledge to solve problems. HUSKYLENS 2 is compatible with micro:bit, enabling the development of various interesting visual recognition projects through graphical programming.

Purchase link for micro:bit V2:click here.

2. Hardware Preparation

Preparation Materials

2.1 Wiring Diagram

Insert the micro:bit into the compatible expansion board. Connect the expansion board to the computer using the USB-C cable. Insert the 4-Pin I2C/UART Sensor Cable into the I2C/UART interface of HUSKYLENS 2, and connect the other end to the "5V Huskylens" port on the expansion board. Since HUSKYLENS 2 has specific power requirements, use an additional USB-C cable to connect to the power port of HUSKYLENS 2, with the other end connected to a computer or compatible power supply.

Refer to the following image for the wiring diagram:

Interface Diagram

Before use, please check whether the firmware is the latest version: Update tutorial:Click here.

3.Software Preparation

Go to the MakeCode website and log in at https://makecode.microbit.org/, then create new project

ClickExtensions

Interface Diagram

Search for the "huskylensv2" in search box

Interface Diagram

Once imported successfully, the page will appear as follows.

Interface Diagram

Was this article helpful?

TOP