Help & Support > 【mBlock 5】Beginner’s Guide to mBlock 5

1. What is the mBlock 5?
The mBlock 5 is a software tool designed for STEAM education and programming for kids. It is inspired by Scratch 3.0,based on Arduino code, and supports graphical and text programming. With mBlock 5, children are able to create engaging stories, games and animations, and program hardware like Makeblock robots——coding robots for kids, Arduino and micro:bit. It supports Python programming as well. You can just switch to Python mode with one-click. Moreover, its AI and IoT features give children a chance to have fun with some cutting-edge technologies. Besides, mBlock 5 allows you to sync programs across the platforms on Web, mobile devices or PC.


2. Introduction
– Download and install mBlock 5
Programming for kids
To download mBlock 5, please visit:


-About the Interface

Red: Stage Area Green: Blocks Area Blue: Scripts Area Yellow: Menu

  • Stage Area: You can present your designs, connect devices, set your sprites and backgrounds here.

  • Blocks Area: You can find the blocks you need by category and color in Blocks area.

  • Scripts Area: You can program in the Scripts area by dragging blocks to this area.

  • Menu: In this area, you can change the language, open and save files, go to Example Programs and Help.


3. How to Get Started
-Sign up and Sign in
After you sign up and sign in, you will get access to Cloud Data and other features.
Arduino code


1)Click the icon on the top right corner to Sign up. Enter your e-mail address and the verification code received via the email. Set your password then. Now you have created an account!

mblock5 beginner guide
Arduino code
Arduino code


2)After you created an account, return to the home page and click the icon in the top right corner. Enter your e-mail address and password to Sign in.
mblock5 beginner guide
coding robots for kids


-Graphical programming
mBlock 5 makes programming as easy as building blocks

1)Select the blocks you need from the Blocks area. Left click the block and hold it. Drag the block to the Script area and drop it.


2)The blocks of different colors and shapes can be connected with each other.
coding robots for kids


3)Click the block and you can observe the effects directly in the Stage area.
Programming for kids


-Add Extension
mBlock 5 will provide users with some basic blocks and you can add more blocks from the Extension Center to do more things.
Add New Feature AI

1)Select Sprite in the Blocks area and click the button +Programming for kids

2)In the Extension Center page that pops up, click the button + to add the AI block.Programming for kids


3)Go back to the homepage. Look, there is a new AI block category here.

Arduino code


Add the IoT Feature

1)Select Devices and click the button +


2) In the Extension Center page that pops up, click + to add the block IoT.
Arduino code


3)Go back to the home page. Look, a new IoT category is here!


-Switch to Python mode
mBlock 5 also supports Python programming. You can write codes with Python language and view the corresponding Python codes behind the blocks. The Python mode not only enables users to create stories, games and animations but also allows users to program hardware like Makeblock robots, Arduino and micro: bit.

Python Comparison: Click the button <> in the Scripts area to switch to the Python Comparison mode.

Python Input: In the Script area, drop down the list near the Blocks and select Python. Now you have switched to the Python Input mode. Then, you can write codes here.
Programming for kids
Programming for kids

-Add Hardware Device
1) Open the mBlock 5 and click the button + under the Device category.

-Connect Devices and Upgrade Firmware
Power on your hardware device and connect it to the computer via a USB cable or a Bluetooth dongle.

A. Use a USB cable to connect your device

  1. Connect your hardware to the computer via a USB cable.

  2. Under the Devices category, select the hardware device you want to connect and click Connect.

  3. Click Connection. (Note: COM 4 is the serial port number and it might be different on another system or PC. You can just click Connection.)
    coding robots for kids

  4. Return to the homepage. If it shows Device Connected, then it means that the device has been connected to the computer.

B. Connect via a Bluetooth dongle
If your computer supports Bluetooth and your hardware device has a Bluetooth module, you can control or program your robot wirelessly.
First, plug the Bluetooth dongle into the USB interface and you will find the dongle flashes blue light. Make sure the device is powered on and put it near the dongle. At this time, the dongle will stop flashing and the blue light will be solid on.
Next, follow the Step 2, Step 3 and Step 4 in Use a USB cable to connect your device

Note: Before you start to control the device with mBlock 5, a window might pop up to tell you Update Firmware. You can just click Update Now. It will take you 2-3 minutes. Then click OK, and the firmware is upgraded now.
Arduino code
Arduino code


-Upload Codes and Online Mode

Upload codes
When you have written your programs, click Upload to Device. Work is done!

If you want to save the project, then click Save in the Menu to save it locally.
coding robots for kids
coding robots for kids


Online mode
With the online mode, you don’t have to upload codes but still can control your hardware device.
1) Connect your device and turn on the Test mode.


-Hardware Interacts with the Stage
Create interactive projects with the Broadcast

  1. Select the Events category and drag the following two blocks to the Scripts area.

  2. Create a New message and let Codey broadcast A when button A is pressed.
    Arduino code
    Arduino code
    coding robots for kids

  3. Add a new sprite Drum to the Scripts area.

  4. Click the new sprite drum and start to write programs for the drum.
    Arduino code
    Arduino code

  5. Click Devices, select Codey and upload programs to the device. Now, the sprite drum will play a real drum sound through the computer.

  6. Similarly, you can add more instruments sprites and have a concert for Panda!
    Programming for kids


**4. Teaching Resources **
-Example Programs
The mBlock 5 offers users a wide range of example programs. To get access to them, you can just click the Example Programs in the Menu.
Arduino code



-Makeblock Education site
Get more teaching resources which are specially designed for teachers at: