Case 16 - Land Raider follows objects

Part 1  Objective

After you upload the program, Land Raider goes straight forward. When the object to be followed is 40 cm or less ahead, Land Raider starts following it. When the object to be followed is over 40 cm or less than 8 cm, Land Raider stops moving.

mr67.gif

Part 2  Preparation

  • Assembled Land Raider x 1

  • USB cable x 1

  • Computer with network access x 1

  • Connect the ultrasonic sensor to Port 6 on Auriga

Connect Auriga to the computer by using the USB cable, open mBlock 5 (PC client or web version), connect CyberPi, select the Upload mode, and press the red button to turn on Auriga.

mr68.gif
mr69.gif

mr70.png

Part 3  Programming

mr71.gif

Part 4  Practice

With the ultrasonic sensor and track, Land Raider can follow objects. Can you make Land Raider do something interesting with the ultrasonic sensor and other sensors?
Was this article helpful?
2 out of 4 found this helpful

Comments

0 comments

Please sign in to leave a comment.