PDA

View Full Version : Looking for LOSA #120 Control 15 Servos in Parallel Code



Crash238
05-18-2006, 12:15 AM
I contacted the original author.

He can not find the code. :(

Any help is appreciated! :)

-Rich

http://www.hth.com/filelibrary/TXTFILES/losa.txt

================================================== ===================
Title : Control 15 Servos in Parallel [# 120]
================================================== ===================
Date : 980515
Author: Jonathan W. Mills
E-mail: jwmills@cs.indiana.edu
---------------------------------------------------------------------
Stamp model : BS2-IC Module
Code available: Yes
Filename : N/A
URL : http://www.cs.indiana.edu/hyplan/jwmills/bs2.html
---------------------------------------------------------------------
Description :

Using PULSOUT as a microsecond-resolution timer, and by writing
directly to the OUTS register, up to fifteen servomotors can be
controlled in parallel -- one I/O pin is used by the PULSOUT
instruction -- with each servomotor's rate of rotation and final
position set independently. This technique has been used success-
fully to build a single-Stamp controller that drives 12 servos on
a hexapod robot.

Parallel versions of many BASIC Stamp II instructions including
PULSOUT, PWM, PULSIN, SERIN, SEROUT, and BUTTON can be programmed in
PBASIC by using the PULSOUT instruction to access the Stamp's
microsecond-resolution timer.