_R-STS01mightyZAP Servo Tester Shield Manual_ENG_V1.2 19D5
IR-STS01 Servo Tester Shield Manual V.1.1
21
6.2. Example - Information Read (RS-485/TTL)
Example to read basic information such as ID, Version using API of MightyZap.
Select [Example] - [MightyZap] - [UNO]or[LEO]–[ServoTester_Information]
.
#deifne ID_NUM / servo ID Assignment
• Function : Assign servo ID number for control.
• Servo Motor ID
- 0 : Default setting value. Stand-alone ID(hereinafter, 0 will be used as an ID for all examples.)
- 1 ~ 253 : Individual ID from 1 to 253.
- 254 : Broadcasting ID. All different ID servos to be operated with ID254. However, Feedback Packet does not operate.
IRROBOT_ServoTesterShield Tester(&serial)/ Communication setting when use of MightyZap Sheild IR-STS01
• Function : Communication port setting with servo motor
• Parameter
- Serial : when Arduino Leonardo Board is used, communication with servo motor to be made via serial port1.
Tester.Mightyzap.begin(int baudrate)/
Communication speed setting
• Function : Servo motor communication speed setting
• Parameter
- ID_NUM : Servo motor ID
- Baudrate : Set communication speed
Data
Description
16 115200 baudrate
32 57600 baudrate
64 19200 baudrate
128 9600 baudrate
Tester.Mightyzap.getModelNumber(nt ID_NUM)/Parameter Read
• Function : Servo motor model number check