Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

SSC32 controlling library

Project description

This is simple interface to control RC servos with an SSC32 board.


  • Direct and grouped queries (#<N>P<US> and <SERVO_POS>…T<MS>)
  • Angle (degrees or radians) to microsecond position calculation
  • Simple configuration file that help to map board output pin to servo name and provide limits.
  • Sequences scripts (in YAML format)


>>> import ssc32
>>> import math
>>> ssc = ssc32.SSC32('/dev/ttyUSB0', 115200, count=32)
>>> ssc[2].position = 2000
>>> ssc[3].name = 'pan'
>>> ssc[4].name = 'tilt'
>>> pan_servo = ssc['pan']
>>> tilt_servo = ssc['tilt']
>>> pan_servo.degrees = 0
>>> tilt_servo.radians = math.pi/4
>>> ssc.commit(time=1000)
>>> ssc.is_done()
>>> ssc.is_done()
>>> ssc.description = 'My camera's pan/tilt'
>>> ssc.save_config('my_pantilt.cfg')


  • Change n to r to allow running on non-Windows platforms.


  • Add ssc32yaml script runner
  • Don’t change servo position on init (Servo.is_changed flag)


  • Servo script interface with YAML serialization/deserialization
  • Move to package
  • Depends on PyYAML


  • Rename Servo properties -> Servo.degrees, Servo.radian -> Servo.radians
  • Use callback for Servo
  • Description for configuration (SSC32.description) line starts with #~

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyssc32-0.4.2-py2-none-any.whl (8.4 kB) Copy SHA256 hash SHA256 Wheel py2
pyssc32-0.4.2.tar.gz (5.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page