Case 22 - Rolling Tank

Part 1   Objective

Write a program to make the Rolling Tank cross an obstacle by moving forward, backward, left, and right.

74.gif

Part 2   Preparation

  • Mechanical parts and electronic modules of Rolling Tank

  • USB cable (Type-B) x 1

  • Computer with network access x 1

Follow the building steps to build a Rolling Tank. Install the MegaPi encoder/DC motor drivers on MegaPi, connect the motors to the motor ports on MegaPi by using the motor cables, connect MegaPi to the computer by using the USB cable, open mBlock 5 (PC client or web version), click +add, select Ultimate 2.0 from the Device Library, click Connect, and select the Live mode.

75.gif

76.gif

Update the firmware of Ultimate 2.0.

77.gif

Part 3   Programming

78.gif

Part 4   Practice

Try to add more obstacles.

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

Comments

0 comments

Please sign in to leave a comment.