Use mBlock Blockly to Program mBot

mceclip0.png

The mBlock Blockly is designed for programming mBot.

1. Preparation

Before you start, make sure that you've got:

  • A tablet or smart phone

mceclip1.png or mceclip3.png

  • mBot

mBot.jpg

If you haven't completed the building of mBot, refer to "Build mBot" to build it first.

2. Download the mBlock Blockly App

Android: click here to download.

iOS: Search for mBlock Blockly in App Store to download.

3. Connect mBot to the mBlock Blockly app

(1) Enable the Bluetooth function on the tablet.

Bluetooth_setting.png

(2) Power on mBot.

mceclip6.png

(3) Tap to open the mBlock Blockly app.

mceclip8.png

(4) Tap the connection icon in the upper-right corner and place your smart device close to mBot.

mceclip9.png

The app searches for devices that can be connected and connects to your mBot. After connecting to your mBot, the app displays the icon indicating the successful connection.

mceclip11.png

4. Start to play games or write programs

mceclip12.png

Play games

After you tap to play games, follow the instructions to play all the games. After you win a game, the next one is unlocked, and after you win all the games at a level, the next level is unlocked.

mceclip13.png mceclip14.png

Write programs

After you tap Create, you can start to write a program for mBot. 

Tips: If you've never written a program before, you can play games first to get familiar with block-based programming.

Let's write a simple program to make mBot move.

mceclip18.png

mceclip17.png

After you tap mceclip19.png, mBot keeps moving, and it turns right for one second each time it detects an obstacle. 

Now, have a try! Write your own program for mBot.

 

Was this article helpful?
3 out of 6 found this helpful

Comments

0 comments

Please sign in to leave a comment.