1. Purpose of the Case
When combined with external modules, the CoCube robot can achieve more complex functions. This section introduces how to program the use of the gripper module.
2. Materials Used
3. Software Platform
MicroBlocks——CoCube & CoCube Module
4. Start Programming
Connect Device: Connect the MicroBlocks IDE to the CoCube robot via a wired or wireless connection. Then attach the servo gripper module to the CoCube robot.
Load External Module Block Library: Click in the order shown in the image to load the CoCube external module library.
Find Gripper Blocks: Click on the "CoCube Module" tab in the block library on the left, and drag the "gripper open" "gripper close" and "gripper degrees" blocks into the workspace on the right.
Run Gripper Blocks: Left-click the "gripper open" or "gripper close" block. When a green halo appears around the block, it indicates that the program has been successfully executed, and you will see the gripper open or close. Input an angle value (between 0 and 70) into the "gripper degrees" block to move the gripper to the corresponding angle.
5. Challenge
Try using the gripper module to pick up some small objects around you. Move a small foam cylinder from point C to point E on the maze map.
Reference Example Program: MicroBlocks——CoCube Case 05 Transport Robot