Case 32 - mBot Neo Follows Lines

Part 1   Objective

After you upload the program, mBot Neo moves forward, following the black line on the map.

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

99.gif

100.gif

Part 3   Programming

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

101.jfif

Part 4   Practice

Try to modify the values of base_power and kp, and find out how to maximize mBot Neo's speed of line following.

 

 

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

Comments

1 comment
  • I am trying to make a proportional white line follower program (on black background). My problem is that 
    In this type of circuit with the white line color, could you help me with these questions?
    1. How do I calibrate the line sensor to recognize the white line?
    2. How can I use the offset command for that white line?

    0

Article is closed for comments.