Case 31 - mBot Neo Follows Objects

Part 1   Objective

After you upload the program, mBot Neo moves straight forward. When the object to be followed is less than 40 cm away from mBot Neo, mBot Neo starts following. When the object to be followed is more than 40 cm or less than 8 cm away from mBot Neo, tmBot Neo stops moving.

94.gif

Part 2   Preparation

  • Assembled mBot Neo x 1

  • USB cable (Type-C) x 1

  • Computer with network access x 1

Assemble mBot Neo, connect CyberPi to the computer by using the cable, open mBlock 5 (PC client or web version), connect CyberPi, and select the Upload mode.

95.gif

96.gif

Part 3   Programming

Add mBot2 shield and Ultrasonic Sensor 2 from the Extension center, and then program with the blocks added.

97.png

Part 4   Practice

Take your "new pet" to travel around your house.

 

 

Was this article helpful?
0 out of 1 found this helpful

Comments

0 comments

Article is closed for comments.