Case 8 - Music program

Part 1 Objective

After uploading the program, you can make mBot2 Rover sing a song by pressing and holding button 1, 2, 3, or 4 on the Bluetooth controller.

Part 2 Preparation

  • Assembled mBot2 Rover × 1
  • Bluetooth Controller × 1
  • USB cable (Type-C) × 1
  • Computer with network access × 1
Assemble mBot2 Rover, turn it on, 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.

8-4.gif

1-3.gif

8-6.gif

Part 3 Programming

Click Example Programs, then mBot2 Add-on Packs, followed by Music program, and finally OK.
Then you can click Upload Code to upload the music program to CyberPi.

8-5.gif

Part 4 Practice

Try writing a song yourself for mBot2 Rover to sing.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.