_R-STS01mightyZAP Servo Tester Shield Manual_ENG_V1.2 19D5
IR-STS01 Servo Tester Shield Manual V.1.1
37
6.19. PID
Set optimal operation of servo motor using PID command.
Select [Example] - [MightyZap] - [UNO/LEO]–[ServoTester_PID]
Tester.Mightyzap.PID(int ID_NUM, int PID)/Parameter Read
• Function : Servo motor PID value read
• Parameter
- ID_NUM : Servo motor ID
- PID : pGain, iGain, dGain;
Tester.Mightyzap.PID(int ID_NUM, int PID, int Gain)/Parameter Write
• Function : Servo motor PID setting
• Parameter
- ID_NUM : Servo motor ID
- PID : pGain, iGain, dGain
- Gain : Each PID Gain value
pidGain()
- Set each PID value of Servo motor
After setting each PID value, check the difference of operation.
Put each PID value with a space in Serial window as below.
20 18 32