SKU:U102












Catch 是一款由使用 SG92R 舵机作为动力源的夹爪。该舵机使用 PWM 信号驱动夹爪齿轮旋转,控制夹爪进行夹持和释放操作。结构上采用了兼容乐高 8 mm 圆孔的设计。你可以将它结合到其他的乐高组件中,搭建出创意十足的控制结构,如机械臂 、夹爪车等。
| 主控资源 | 参数 | 
|---|---|
| 舵机型号 | SG92R | 
| 驱动信号 | PWM: 频率 50Hz,0°-45° (pulse:0.5ms-1ms) ° | 
| 工作频率 | 50Hz | 
| 夹爪开合角度 | 90° | 
| 输入电压范围 | 4.2-6V | 
| 工作死区 | 10us | 
| 输出扭力 | 2.5kg/cm at 4.8V | 
| 输出速度 | 0.1sec/60° at 4.8V | 
| 工作温度 | 0 ~ 55°C | 
| 产品重量 | 21.5g | 
| 毛重 | 50g | 
| 产品尺寸 (夹爪展开) | 72 x 56 x 37mm | 
| 包装尺寸 | 147 x 90 x 40mm | 
| 外壳材质 | Plastic (PC) | 
当将 Catch Unit 连接至 PortB 时,管脚映射如下
| M5Core (PORT B) | G26 | 5V | GND | 
|---|---|---|---|
| Catch Unit | SIGNAL | 5V | GND | 
/*
    Description: Control Catch Unit through PWM.
*/
#include <M5Stack.h>
//设置控制引脚
const int servoPin = 26;
//设置频率
int freq = 50;
//设置PWM通道
int ledChannel = 0;
//设置脉冲分辨率
int resolution = 10;
void setup() {
  // put your setup code here, to run once:
  M5.begin();
  M5.Power.begin();
  M5.Lcd.setCursor(100, 50, 4);
  M5.Lcd.println("Catch Unit");
  M5.Lcd.setCursor(40, 120, 4);
  ledcSetup(ledChannel, freq, resolution);
  ledcAttachPin(servoPin, ledChannel);
}
void loop() {
  // High level 0.5ms is angle 0°
  // duty = 0.5/20ms = 0.025, 0.025 x 1023≈25
    ledcWrite(ledChannel, 25);
    delay(2000);
  // High level 1ms is angle 45°
  // duty = 1/20ms = 0.05, 0.05 x 1023≈50
    ledcWrite(ledChannel, 50);
    delay(2000);
}