Part 1 Objective
Write a program to make the Robotic Arm Tank move forward and backward.
Part 2 Preparation
-
Robotic Arm Tank
-
USB cable (Type-B) x 1
-
Computer with network access x 1
Follow the building steps to build a 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 or web version), click +add, select Ultimate 2.0 from the 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).
Part 3 Programming
Write a program to run the encoder motors at 50% power to make the robot move forward for 2 seconds and then move backward for 2 seconds.
Part 4 Practice
-
Try to make the Robotic Arm Tank turn left and right.
-
Try to make the Robotic Arm Tank turn around.
Comments
Please sign in to leave a comment.