Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Servo Controller USB help? — Parallax Forums

Propeller Servo Controller USB help?

ianc2674ianc2674 Posts: 1
edited 2011-09-25 20:10 in Propeller 1
Hi, I'm just trying to adapt my software to the Parallax PSCU from the servo driver module I was using.
I don't quite understand how the "low byte, high byte" works to control my servos. My old system
was to send a number between 0 and 255 to turn the servos. Can anyone explain how this works?
Thanks.



Here is the text from the Parallax manual:

Syntax: “!SC” <channel> <ramp speed> <lowbyte> <highbyte> <CR>

To move a servo to a location you must write a position command to the PSCU. Each position command is comprised of the preamble, the channel, the ramp speed, lowbyte/highbyte of the pulse width in 2 µs increments and a carriage return ($0D). The preamble is “!SC”. The channel is a byte value from 0 – 15 (16 – 31 if this is the second unit in a network). The ramp speed is a byte value from 0 – 63 that controls the speed the servo moves to its new position.

Comments

Sign In or Register to comment.