Shop OBEX P1 Docs P2 Docs Learn Events
Looking for LOSA #120 Control 15 Servos in Parallel Code — Parallax Forums

Looking for LOSA #120 Control 15 Servos in Parallel Code

Crash238Crash238 Posts: 1
edited 2006-05-17 17:15 in BASIC Stamp
I contacted the original author.

He can not find the code. [noparse]:([/noparse]

Any help is appreciated! [noparse]:)[/noparse]

-Rich

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

=====================================================================
Title : Control 15 Servos in Parallel [noparse][[/noparse]# 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.
Sign In or Register to comment.