Overview And Setup
How to quickly set up HUSKYLENS 2 with micro:bit: plug the micro:bit into the IO extender, cable it to the PC, connect HUSKYLENS 2 via the 4‑Pin I2C/UART port and separate USB‑C power, then open MakeCode, add the huskylensv2 extension, and start building visual projects; it’s like snapping LEGO blocks together to teach kids coding.
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
- micro:bit x 1
- HUSKYLENS 2 x 1
- Essential Sensor IO Extender for micro:bit / UNIHIKER M10 / K10 x 1
- USB-C cable for micro:bit x 1
- USB-C cable x 1
- 4-Pin I2C/UART Sensor Cable x 1
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:
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
Search for the "huskylensv2" in search box
Once imported successfully, the page will appear as follows.
Was this article helpful?
