Propeller + Servo Control Board --> Let's move some servos!
Hello,
I accidentally posted this same question to the Propeller section without a subject...duh! I'm learning- just registered today.
OK, second post of the day
, Here's my problem:
I'm currently trying to establish communication between the servo controller REV B and the Propeller 28X32-Q44 (Propeller Demo Rev F). I noticed on the ServoController pdf that we can use the VER? command and control the position of servos. I'm not proficient in the least with the spin language; my understanding of serial com is very limited, however there's got to be some way to rotate the servo from software. The problem is I don't know where to begin with this software.
My team's objective is to eventually use your ping sensors and prop to control the direction of an RC truck. To do so we need to get a better understanding of how to interact with the servos. Is there any demo spin file that we can use? Any guidance you offer is greatly appreciated.![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
Thanks.
PHuf
I accidentally posted this same question to the Propeller section without a subject...duh! I'm learning- just registered today.
OK, second post of the day
![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
I'm currently trying to establish communication between the servo controller REV B and the Propeller 28X32-Q44 (Propeller Demo Rev F). I noticed on the ServoController pdf that we can use the VER? command and control the position of servos. I'm not proficient in the least with the spin language; my understanding of serial com is very limited, however there's got to be some way to rotate the servo from software. The problem is I don't know where to begin with this software.
My team's objective is to eventually use your ping sensors and prop to control the direction of an RC truck. To do so we need to get a better understanding of how to interact with the servos. Is there any demo spin file that we can use? Any guidance you offer is greatly appreciated.
![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
Thanks.
PHuf
Comments
Take care,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
If you need to use the Parallax Servo Controller, you would use one of the serial I/O drivers like Simple_Serial or FullDuplexSerial. The Servo Controller Manual describes the various commands which are sent to the Controller as character strings. To change a servo's position, you'd use the Position Command. For example, if you're using the Simple_Serial driver and declared the object as "ser", you'd position a servo with the following statements:
where "servoChannel", "rampValue", and "position" are the command parameters as described in the Servo Controller Manual.