Case 30 - mBot Neo Avoids Obstacles

Part 1   Objective

After you upload the program, mBot Neo moves normally. When mBot Neo encounters an obstacle, it turns left or right randomly.

90.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.

91.gif

92.gif

Part 3   Programming

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

93.gif

Part 4   Practice

Build a maze for mBot Neo and see if it can get out of the maze.

 

 

Was this article helpful?
2 out of 4 found this helpful

Comments

0 comments

Article is closed for comments.