yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
myCobot 320 Arm📖
1.Product Feature
  • 1.Functional Parameters
  • 2.Controller Parameters
  • 3.Structural Parameters
  • 4.Electronic Parameters
  • 5.Coordinate System
  • 6.Introduction of Adaptive Gripper
  • 7.Introduction of force-controlled gripper
2.Common Problem
  • 1.how to ask
  • 2.driver
  • 3.software
  • 4.hardware
3.First Install and Use
  • 1.Product Standard List
  • 2.Product Unboxing Guide
  • 3.Power-on Test Guide
4.Basic Application
1. miniRoboFLow
  • 1. miniRoboFLow
  • 2. Drag & Play
  • 3. Joint Calibration
  • 4. Computer Connect
  • 5. Robot Information
2.1 myblockly
  • 1. What is myBlockly
  • 2. Preparations before using myBlockly
  • 3. myBlockly download and install
  • 4. myBlockly interface display and use of basic functions
  • 5. Control RGB light panel
  • 6. Control the robotic arm to return to the origin
  • 7. Control single joint movement
  • 8. Control multiple joints
  • 9. Use of adaptive grippers
  • 10. Use of force-controlled grippers
  • 11. Q&A
  • 12. API
3. Firmware Description
  • 1.Firmware Description
  • 2.Burn Firmware
2.2 myStudio
  • 1. myStudio
  • 2. myStudio environment setup
  • 3. Install driver
  • 4. Burn and update firmware
5.Mobile APP control
  • Mobile APP control
6.SDK Development
1.Development Environment Construction
  • 1.Development Environment Construction
2.Python
  • 1.What is Python
  • 2.Environment Building
  • 3.Python API usage instaructions
  • 4.TCP IP
  • 5.Drag to teach
  • 6.Use Cases
  • 7.Use of adaptive grippers
  • 8.Use of force-controlled grippers
3.ROS1
  • 1.ROS
  • 2.Environment Building
  • 3.ROS basics
  • 4.Rviz use
  • 5.Basic function case
  • 6.Use of adaptive grippers
  • 7.Use of force-controlled grippers
4.ROS2
  • 1.ROS2 introduction
  • 2.Environment Building
  • 3.ROS2 basics
  • 4.Rviz2 use
  • 5.Basic function case
5.C Sharp(C#)
  • 1.C#
  • 2.Environmental construction
  • 3.Mechanical control
  • 4.myCobot API
  • 5.Use Cases
  • 6.Use of adaptive grippers
6.c plus plus (C++)
  • 1.C++
  • 2.CPlus Download
  • 3.build
  • 4.API
  • 5.example
7.Arduino
  • 1.Arduino
  • 2.Arduino Download
  • 3.API
  • 4.example
  • 5.Use of adaptive grippers
8.Serial communication
  • 1.Serial communication
  • 2.Use of force-controlled grippers
7.Documents Download
  • 1.Product Brochure
  • 2.Software and Source Code
  • 3.System lnformation
Download
  • 3D_Model_File
  • Android Mobile APP
  • Manual
Download ZIP

Welcome to myCobot 320 Arm repository

5.Use of adaptive grippers

Use of adaptive grippers

1. setGripperState(byte mode, int sp);

  • Function: Set the opening and closing status of the gripper

  • Parameter Description:

  • mode, jaw opening and closing mode, range 0/1, 0--jaw open to the maximum, 1--jaw closed to the minimum

  • sp, jaw opening and closing speed, range 1-100

2. setGripperValue(int data, int sp);

  • Function: Set the jaw opening and closing angle

  • Parameter Description:

  • data, jaw opening and closing angle, range 0-100, 0--closed to the minimum angle, 100--open to the maximum angle

  • sp, jaw opening and closing speed, range 1-100

  • Return value: None

3. setGripperIni();

  • Function: Set the gripper zero point

  • Return value: None

4. getGripperValue();

  • Function: Get the current angle of the gripper

  • Return value: Returns the current gripper angle, ranging from 0 to 100

5. isGripperMoving();

  • Function: Detect whether the gripper is moving

  • Return value: 0: not moving, 1: moving

6.void setGripperMode(bool mode);

  • Note: This interface is only available for MyCobot320 robots

  • Function: Set the adaptive gripper control mode

  • Parameter Description:

  • mode: mode, 0/1, 0--485 communication control, 1--io control (in io mode, it can only be turned on or off, and the angle cannot be set. When pins 23 and 33 are turned on or off, both pins need to be set to different states, one high and one low)

  • Return value: None

7. bool getGripperMode();

  • Note: This interface is only available for MyCobot320 robots

  • Function: Set the adaptive gripper control mode

  • Return value: Adaptive gripper control mode, 0/1, 0--485 communication control, 1--io control

Adaptive robot control

This example will initialize the MyCobotBasic instance, turn on the robot power, and initialize the adaptive gripper. During the initialization process, the gripper will open and close once. After that, the gripper is controlled to reach two specified positions, then open and close once, and the program ends.

​x
#include <MyCobotBasic.h>


MyCobotBasic myCobot;


void setup()
{
    myCobot.setup(); // Required API
    delay(100);
    myCobot.powerOn(); // Power on the robot arm
    delay(100);
    GipperInit(); // Initialize the adaptive gripper
}
void loop()
{
    myCobot.setGripperValue(80, 50); // Open the gripper to 80° at a speed of 50
    delay(500); // Once in place, proceed to the next step
    myCobot.setGripperValue(20, 50); // Open the gripper to 20° at a speed of 50
    delay(500);
    myCobot.setGripperState(0, 30); // Fully open the gripper at a speed of 30
    delay(600);
    myCobot.setGripperState(1, 30); // Fully close the gripper at a speed of 30
    delay(600);
}


void GipperInit()
{
    myCobot.setGripperMode(0);
    delay(100);
    myCobot.setGripperState(0, 100); // Fully open the gripper at a speed of 100
    delay(200);
    myCobot.setGripperState(1, 100); // Fully close the gripper at a speed of 100
    delay(200);
}
example
Serial communication

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文