Step 1: Connecting SSC-32 to Arduino Uno
In this case, the arduino sends serial commands to the SSC-32 servo controller, which in turn controls the servos. After successfully connecting and the arduino to theSSC-32 and powering the setup you can go ahead and write your code.
Step 2: Coding
A typical line of code for the SSC-32 servo controller would be: #15 P1500 T500
- # represents the pin number on the SSC-32 that the servo is connected to
- P represents the position that the servo motor should rotate to
- T represents the time that the servo should take to rotate to the desired position
Therefore, that line of code tells the servo connected to pin 15 to rotate to position 1500 in 500 milliseconds The commands are sent from the arduino board to the SSC-32 in a serial format.
Here is how you should code on the arduino IDE.
Serial.println(“#15 P1500 T500”);
This line of code sends the text #15 P1500 T500 to the SSC-32 servo controller, which is then decoded and causes the servo in question to move to the desired position. You can check this example code to understand more.