Controll the SSC-32 servo controller in java.
Dependencies (All needed jar is under the lib directory)
Java 1.6
SSC-32 servo controller (http://www.lynxmotion.com/p-395-ssc-32-servo-controller.aspx)
Computer with rs232 port (Serial) or a usbToSerial adapter (Example: http://www.usbgear.com/USB-Serial.html)
A servo, max 32 (Example: http://www.servoshop.co.uk)
Power supply 4.8vdc to 6.0vdc (Example: 4 AA batteries in serie)
SteelsquidClassCollection.
RXTX (http://rxtx.qbang.org/)
Usage
You must have RXTXcomm.jar and SteelsquidClassCollection.jar in classpath.
The librxtxSerial.so (rxtxSerial.dll for windows) in the java-library-path.
Example: java -Djava.library.path=../lib/Linux/x86_64-unknown-linux-gnu -classpath ../dist/SteelsquidSSC32Controller.jar:../lib/SteelsquidClassCollection.jar:../lib/RXTXcomm.jar org.steelsquid.ssc32.ExecTest
If you run Ubuntu install the package librxtx-java.
Then you only need to add this to the classpath: /usr/share/java/RXTXcomm.jar
See org.steelsquid.ssc32.ExecTest for example of usage. To use example:
You must have 2 servos connected to servo port 0 and 1 on the SSC-32.
And the SSC-32 connected to /dev/ttyS1 (change in code if needed).
Short description of classes
org.steelsquid.ssc32.ExecTest
A example usage of the ssc32 servo controller.
You must have 2 servos connected to servo port 0 and 1 on the SSC-32.
And the SSC-32 connected to /dev/ttyS1 (change if needed).
See doc/readme.txt for more info.
org.steelsquid.ssc32.SSC32Controller
Communication to SSC-32 servo controller
- Handles 32 servos.
- Get available com-ports.
- Move a servo or group of servos to position as fast as possible.
- Move a servo or group of servos to position by selecting speed.
- Move a servo or group of servos to position in a certain time.
- Get position of a servo or group of servos.
- Wait for last move to complete.
org.steelsquid.ssc32.SSC32Exception
If error on comunication with the SSC32 servo controller.
org.steelsquid.ssc32.ServoGroup
This is a class representing a servo group.
Use this to send command to multiple servos.