Hi,
I have been referencing the “Python/SSC-32 Example” thread and “SSC-32 Manual” for controlling the HS-785HB Winch Servo with Python v 2.6, OS X 10.6, with the SSC-32 motor controller. This is my first experience with both the SSC-32 and the winch servo. The problem is that I am unable to get the servo to go to a consistent position. The code below results in the winch servo moving in the same direction over and over, and not settling on a consistent position. Is this normal? What can I do to send the servo to some consistent location, for example, the center? Thank you in advance.
import serial
SSC32_Port = "/dev/tty.usbserial"
ssc32 = serial.Serial(SSC32_Port, 115200)
result = ssc32.write("# 0 P 1500 \r")
result = ssc32.write("# 0 P 1500 \r")
result = ssc32.write("# 0 P 1500 \r")
ssc32.close()
A few other notes about my system setup:
- The board has jumpers exactly as shown here:
lynxmotion.com/images/assemb … c32m01.gif - I’m on a MacBook Pro, 32 bit, OS X 10.6, Python 2.6 (but using pyserial2.5)
- Using a Dynex USB to Serial Adapter Cable, connecting the SSC-32 to my usb port and a PL2303 driver for OS X 10.6