Case 3 - Change mBot2 Rover's emotion

Part 1 Objective

After uploading the program, you can change mBot2 Rover's emotion using buttons 1, 2, 3, and 4 on the Bluetooth controller.

3-1.gif

Part 2 Preparation

  • Assembled mBot2 Rover × 1
  • Bluetooth Controller × 1
  • USB cable (Type-C) × 1
  • Computer with network access × 1
Turn on mBot2 Rover and connect it to the computer by using the cable. Open mBlock 5 (PC client or web version), connect CyberPi, and select the Upload mode. Turn on the Bluetooth controller, and connect it to mBot2 Rover by pressing the Bluetooth button. mBot2 Rover beeps once the Bluetooth connection is established.

3-2.gif

1-3.gif

3-4.gif

Part 3 Programming

Click + extension on mBlock 5, and add Display+ and Bluetooth controller.

3-5.gif

Write the following program, and upload it to CyberPi. Then you can use buttons 1, 2, 3, and 4 on the Bluetooth controller to change mBot2 Rover's emotion.

3-6.gif

Part 4 Practice

Try to create some emotional expressions for mBot2 Rover.
Was this article helpful?
0 out of 1 found this helpful

Comments

0 comments

Article is closed for comments.