Data Storage Tool Display Human Input Protocol Math Motor Control Sensor Signal Generation & Processing Speech & Sound Fun View all Objects


Quick Links
Contact Us
Forums
Support

Register
Login

This object is provided under license. By downloading this object, you are agreeing to the terms of the MIT License.

Parallax Servo Controller (Serial) driver V2

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.

Version:
  2.0

Type:
  Object

Attributes:


Author:
  Austin Bowen

Categories:
  Motor Control

Downloads:
  822

Last Updated:
  2009-08-19



User Reviews:



Comments on this Object:


[2010-07-03 09:39:00] vanmunch said:
Great Object, simple to use. Thanks! Dave Reply
[2010-11-11 02:12:05] Austin Bowen said:
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 Reply
[2010-11-11 02:03:33] Anonymous said:
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 Reply
[2011-01-11 05:42:06] vanmunch said:
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) Reply
[2011-01-11 05:44:09] vanmunch said:
Sorry for it all running together, I guess it doesn't allow formatting -Dave Reply

Post a comment:




Please contact obex.support@parallax.com with comments or questions.

Copyright 2011 by Parallax, Inc.