Mantech FEETECH 6 Instruction Manual Download Page 13

13

/

18

download SCServo library files to the local computer, and then put decompression into the librar

ies folder. At last run the Arduino software.

SCServo Arduino

库文件使用说明

SCServo Arduino lib instructions

先将SCServo 库引入程序头文件 #include <SCServo.h>

初始化必须设置串口通讯波特率,SCServo 出厂默认波特率设置是1M。

Serial.begin(1000000);//init Serial baudrate

SCServo 扭力输出使能指令有两个输入参数(SCServo.EnableTorque(ID,bit)),输入参数一是

ID(0~255),其中0xfe是广播ID;输入参数二是使能标志位,其中“1”为使能打开,“0”为

使能关闭。如使能处于关闭状态,那么舵机将没有任何扭力输出,但通讯正常工作。

SCServo.EnableTorque(1,1); //Enable ID 1 SCServo output torque; ON

SCServo.EnableTorque(1,0); //Enable ID 1 SCServo output torque; OFF

SCServo.EnableTorque(0xfe,1);// Enable ALL SCServo output torque; ON

SCServo.EnableTorque(0xfe,0); //Enable ALL SCServo output torque; OFF

读取SCServo 舵机当前位置信息指令有一个输入参数并返回一个参数。输入参数为SCServo ID,

一次只能读取一个ID的当前位置信息,此指令ID 不可以使用广播ID。

使用广播ID时指令是不作

数据返回的

。返回一个参数的数据类型是short型(即两个字节以上)。

#define

s16

short

s16 pos = SCServo.ReadPos(1);//read Servo ID:1 position

写位置指令需要三个输入参数。输入参数一是 ID(0~255)),其中 0xfe 是广播 ID;输入参数

二是位置数值(0~1023 有效对应转动角度是 0~215 度,但实际转动角度会受到位置限制参数

设置影响);输入参数三是舵机运行速度级别(1~100),“1”对应舵机最慢转动速度级,“100”

对应最高转动速度级。当此指令对应 ID 的舵机收到指令后马上执行动作,不作任何等待。

SCServo.WritePos(0xfe,i,100);//All Servo(broadcast) rotate to the position i with max

speed

异步写指令(RegWritePos(ID,X,Y))必须与执行指令(RegWriteAction())配合使用才可以达到

写指令的效果,即异步写指令输入同写指令一样三个参数后,接收到此指令的舵机必须还要收到

执行指令后才进行对异步写指令动作,否则保持前一指令动作。

SCServo.RegWritePos(1, 512, 100);

SCServo.RegWritePos(2,512, 100);

SCServo.RegWriteAction(); When SCServo receive this

instruction will action to rotation

同步写指令(SyncWritePos (ID,I,X,Y))需要四个输入参数。输入参数 ID 是含 1 个或含多个

ID 的数组,输入参数二定义第一个参数 ID 的数值个数,输入参数三是位置数值(0~1023 有效

对应转动角度是 0~215 度,但实际转动角度会受到位置限制参数设置影响);输入参数四是舵

机运行速度级别(1~100),“1”对应舵机最慢转动速度级,“100”对应最高转动速度级。当

此指令对应 ID 的舵机收到指令后马上执行动作,不作任何等待。

ID[0] = 1;

ID[1] = 2;

Summary of Contents for FEETECH 6

Page 1: ...1 18 FT 6DOF NB FEETECH 6 Degrees of Freedom Nano Biped kit FEETECH 6 Instruction Manual Version 1 00...

Page 2: ...cedure 7 SCServo Arduino Download and install SCServo Arduino lib 12 SCServo Arduino SCServo Arduino lib instructions 12 Arduino Download Arduino Program 13 Perform Demonstrative Motions 14 About FT N...

Page 3: ...may be unavoidable missing parts or errors With a view to providing the user updated and complete information in the instruction manual we keep improving and supplement the contents of this instructio...

Page 4: ...e may lower after some while of operation and cause abnormal actions of the kit In such case remove and fully charge the battery before using again If prolonged testing and operation is required we su...

Page 5: ...rovides connection with the servo round horn and movement space of the Servo It also provides connection with two U shape brackets for different applications Aluminum U shape Bracket 27mm FK UB 001 4...

Page 6: ...dback the value of Position Temperature Load Speed and Input Voltage SCServo is easy to be controlled by Arduino Dimensions LxWxH 40 0X20 0X40 5mm Weight 56 g Speed 65RMP 7 4V Torque 16 5kg cm 7 4V Sc...

Page 7: ...joints to prevent the nut from loosening Assembly Procedure Kit packaging and all components 1 Installation of Foot Bracket and Servo side Bracket Foot Bracket x 2 Servo side Bracket x 2 M3 ISOF 3 x...

Page 8: ...e ID2 x 2 TP1P 2 x 6 mm x 8 3 U Installation of U shape Bracket 37mm U U shape Bracket 37mm x 4 M3x6 ISOP 3 x 6 mm x 8 M3 Nut 3 x 5 mm x 8 4 U Installation of U shape Bracket to ankle servos 2 Part of...

Page 9: ...8 6 U Installation of U U shape Bracket to servos 5 Part of step 5 x 2 SCS15 ID3 ID4 ID5 ID6 Servo ID3 ID4 ID5 ID6 x 4 TP1P 2 x 6 mm x 28 7 U Installation of U shape Bracket to servos 4 Part of step 4...

Page 10: ...step 7 x 2 U U shape Bracket 37mm x 2 M3x4 ISOP 3 x 4 mm x 16 Pay attention to the red midpoint marks on the round servo horn 9 U Installation of Main U shape Bracket to servos 8 Part of step 8 x 2 U...

Page 11: ...11 18 10 Connect black cable to servos 9 Part of step 9 x 1 3P Black 3P cable x 6 11 NANO TTLinker_mini Installation of NANO Shield and connect TTLi...

Page 12: ...duino Download and install SCServo Arduino lib Arduino SCServo Arduino libraries http www feetechrc com download SCServo libraries Arduino Before editing and download the Arduino program if there is n...

Page 13: ...output torque OFF SCServo EnableTorque 0xfe 1 Enable ALL SCServo output torque ON SCServo EnableTorque 0xfe 0 Enable ALL SCServo output torque OFF SCServo SCServo ID ID ID ID ID short define s16 short...

Page 14: ...lease go to http www feetechrc com download to download Arduino_Program_biped_FT_6DOF_ NB Rar to the local computer Then unpack In addition please confirm SCServo library file in t he Arduino librarie...

Page 15: ...eration video About FT NANO Shied and TTLinke_mini NANO Arduino Nano TTLinker_mini LED1 LED2 S1 S2 LED Arduino Nano D4 D2 Arduino Nano A1 A2 TTLinker_mini Arduino Nano TX1 RX0 Arduino Nano SCServo The...

Page 16: ...on or Reset within 1 second Press Off Flash Program Motion by Hand Enter Press Flash Off Program Motion by Hand Exit Press Off On Save Current Motion Save Press ON Flash Perform Motion Power on or Re...

Page 17: ...he time of between start works to LED2 normally on biped robot must keep the position to set up initial motion LED2 normally on is mean that the initial state set up complete Note If after power on or...

Page 18: ...rrent Motion EEPROM S2 LED1 LED2 LED1 LED2 When current motion need to be saved into EEPROM please press S2 button at this time LED1 normally on LED2 flashing one time complete store return programmin...

Reviews: