Part 1 Objective
After uploading the program, you can control mBot2 Rover's arms using buttons L1 and R1 on the Bluetooth controller.
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.
Part 3 Programming
Click + extension on mBlock 5, and add mBot2 shield and Bluetooth controller.
Write the following program, and upload it to CyberPi. Then you can use buttons L1 and R1 on the Bluetooth controller to control mBot2 Rover's arms.
Part 4 Practice
Try to control a single arm of mBot2 Rover with buttons L2 and R2 on the Bluetooth controller.
Comments
Article is closed for comments.