Case 5 - mBot2 Rover senses the shaking strength

Part 1 Objective

After uploading the program, you can shake mBot2 Rover to change its expression.

5-1.gif

Part 2 Preparation

  • Assembled mBot2 Rover × 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.

5-2.gif

1-3.gif

Part 3 Programming

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

5-4.gif

Write the following program, and upload it to CyberPi. Then you can shake mBot2 Rover to change its expression.

5-5.gif

Part 4 Practice

Try shaking mBot2 Rover to make it move back and forth.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.