Parallax Servo Controller (Serial) driver V2

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: Austin Bowen, created: 2013-04-12 | updated: 2013-04-12

Allows easy control of the Parallax Servo Controller (Serial). Everything is self-contained, it doesn't depend on other objects for anything, and it doesn't use up a COG. Can operate at both baud rates (2400 and 38400). All the information for operation is under each subroutine.

 

Original File Upload
AttachmentSize
ServoControllerSerial.spin6.31 KB

Comments

[originally posted by vanmunch on 2010-07-03 09:39:00] Great Object, simple to use. Thanks! Dave

[originally posted by Austin Bowen on 2010-11-11 02:12:05] vanmunch, do you have a working example of the PSC with this object? will you please send me a code example? it would help me out alot! also, how did you connect the PSC to the Prop? did you use a current limiting resistor or transistor? thanks for any help you can offer! Jeff jeffrey.rick@gmail.com
 
[originally posted by Anonymous on 2010-11-11 02:03:33] Does anyone have a working example of this object in use? i have tried to incorperate this object in my code to run the PSC but i cant get anything to work. some code examples would be very very helpful! jeffrey.rick@gmail.com
 
[originally posted by vanmunch on 2011-01-11 05:42:06] This example should work or at least give you an idea of how to do it. Let me know. -Dave
CON _CLKMODE = XTAL1 + PLL16X _XINFREQ = 5_000_000 'Constants for using the Propeller Servo Control (PSC) boards COMPIN = 23 'Pin used for communication with the PSC PSC_BAUD = 0 'Baud rate (0 - 2400, 1 - 38400) Ramp = 0 'Ramp is the speed between 0-63 that the PSC turns the servos (fast to slow) OBJ PSC : "ServoControllerSerial" PUB StartUp PSC.START(COMPIN, PSC_BAUD) 'Set "Pin" to the pin on the PSU 'Set "Ramp" to 0-63 for the speed servo moves 'Set "ServoEndValue" to the position that you want the servo to be at PSC.SETPOS(PSCPin, Ramp, ServoEndValue)
 
[originally posted by vanmunch on 2011-01-11 05:44:09] Sorry for it all running together, I guess it doesn't allow formatting -Dave