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.

jm_servo8_adv

Servo driver (written in Spin) for one to eight servos. Driver commands one servo at a time to limit load on system created by servo movement, and each servo runs in own 2500us "slot" which means the delay between channel updates is always 20ms, not matter the settings of the other channels.

User may specify number of servos to control (1 to 8) and starting pin (0 to 27) of servo group. Position pulse timing (via .set) is specified in microseconds (600 to 2400), with a speed setting expressed in microseconds change per second of real time (0 for immediate move).

Example: You have a 180 degree servo and you want it to move from one side (600us) to the other (2400us) in 10 seconds; the command becomes:

servo.set(ch, 2_400, 10_000)

Version 2.0 replaces previous (PASM) code. Some updates to your applications may be required, but this version supports all the features of my previous object, plus the addition of speed and movement control.

Version:
  2.0

Type:
  Object

Attributes:


Author:
  Jon McPhalen
  jon@jonmcphalen.com

Categories:
  Motor Control

Downloads:
  604

Last Updated:
  2011-12-28



User Reviews:



Comments on this Object:


Post a comment:




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

Copyright 2011 by Parallax, Inc.