Part 1 Objective
Write a program to make the Robotic Arm Tank grasp the object in front of it.
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.
Part 3 Programming
Write a program to make the Robotic Arm Tank move forward and clamp the object in front of it. Use functions to encapsulate the clamping and loosening actions of the robotic arm respectively (to set the power of the DC motor 0 after the clamping and loosening actions is to stop the motor from continuously powering the robot). Use port 3 for DC motor connection to control the lifting and lowering of the robotic arm.
Part 4 Practice
Try to make the Robotic Arm Tank lift and carry an object.
Please sign in to leave a comment.