Part 1 Objective
After you upload the program, mBot2 Rover's expression changes when the ambient light intensity is less than 10.
Part 2 Preparation
-
Assembled mBot2 Rover × 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.
Part 3 Programming
Click + extension on mBlock 5, and add Display+.
Write the following program, and upload it to CyberPi. Then you can put your finger on the light sensor to change mBot2 Rover's expression.
Part 4 Practice
Try to make mBot2 Rover move around when the ambient light intensity is less than 10.
Comments
Article is closed for comments.