Start your micro:bit adventure

Micro:bit Introduction

Micro:bit board is a BBC led design for ARM architecture microcontroller. The board is equipped with Bluetooth, accelerometer, electronic compass, three buttons front A and B keys and Reset key on the reverse side, 5 x 5 LED dot matrix, mainly used for programming education for youngsters. You can use BBC Micro:bit to achieve any cool little invention, whether it's a robot or a musical instrument, you can give full play to your imagination.

How to program with Micro:bit

1. Connect the Micro:bit

Connect the board with Micro-usb data cable
Use the data cable to connect the board and the computer, using the ordinary Android phone data cable (non-Type-c interface).

At this point, the board will be displayed on the computer, similar to a USB flash drive style, but the name is MIRCOBIT.

s My Computer shows
This is a successful connection.

2. Start writing the program

Using the Makecode programming provided by Microsoft.

Open the website

makecode homepage
Click on New Project. The first time you open it, it may show English, don't worry. You can change the language in the New Project Authoring page settings. As follows

Code writing page
This page is divided into several areas.

1、Simulator area, where you can simulate the execution, such as lighting up the lights, buttons, etc.

2, menu area, here are the various options used for coding, such as led lights, AB keys, wireless communication, etc.

3, coding area, this is the main operation area, the new project will have two code blocks, one is when the beginning, one is an infinite loop

4, there is a block at the top and JS code switch, experienced in programming can write code inside the js

Just now the language setting is in the upper right corner of this page gear

3. Microbit's helloworld

The first lesson of programming introduction is to start with HelloWorld, here also start with HelloWorld.

Expand the "Basic" tab in the left menu area and drag and drop the display string into the when-it-boots tab.

Drag and drop the code block with the mouse
Then click "Hello!" to change the string inside to "HelloWorld!

This way the program is written.

Show the string HelloWorld!
4. Run the program into the board

Once the program is written, you will see that the string is already displayed in the simulator area on the left, and our goal is to display it on the board. Click on the Download or Save button below, it will be saved in Hex file format on your computer, then copy the program to the Microbit.

PI-SUPPLY is a professional component supplier, providing everything you need for your component project. We also stock a huge selection of Raspberry piArduinomicro:bitrock pi and nvidia manufacturer accessories from your favorite brands.