Case 12 - Robotic Arm Tank (I)

Case 12 - Robotic Arm Tank (I)

 

Part 1   Objective

Write a program to make Robotic Arm Tank move forward and backward.

44.gif

Part 2   Preparation

  • Robotic Arm Tank

  • USB cable (Type-B) x 1

  • Computer with network access x 1

Follow the building steps to build Robotic Arm Tank. Install the MegaPi RJ25 adapter and the MegaPi encoder/DC motor driver on MegaPi, connect the ultrasonic sensor to MegaPi by using the RJ25 cable, connect the plastic robotic clamp claw to any port for DC motor driver on MegaPi by using the robotic clamp claw cable, connect the battery holder to MegaPi, connect MegaPi to the computer by using the USB cable, open mBlock 5 (PC client, web version, or mobile app), click +add, select Ultimate 2.0 from Device Library, click Connect, and select the Upload mode (since the robot needs to perform actions after cable connection, you need to select the Upload mode).

45.gif

Part 3   Programming

Write a program to run the encoder motors run at 50% power to make the robot move forward for 2 seconds and then move backward for 2 seconds.

46.gif

Part 4   Practice

  1. Try to make Robotic Arm Tank turn left and right.

  2. Try to make Robotic Arm Tank turn around.

 

 

 

 

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

Comments

0 comments

Please sign in to leave a comment.