Shop OBEX P1 Docs P2 Docs Learn Events
BSIISX - Connecting Servo''s Correctly — Parallax Forums

BSIISX - Connecting Servo''s Correctly

ArchiverArchiver Posts: 46,084
edited 2000-10-21 20:32 in General Discussion
Take out the B2 after NEXT. Also the DIRS line is not strictly necessary so
I removed it. Finally, you need to change B2 to reflect the faster times.
BS1 uses 10uS interval. BS2 uses 2uS. The SX is faster still (.8uS).

So the code below uses 100 to 200 step 2. On the BS1 that is 1000uS (1mS) to
2000uS (2mS) step by 20uS.

For the BS2 you'd want 500 to 1000 step 10. For the SX, you'd use 1250 to
2500 step 25.

Hope that helps.

Al Williams
AWC
* Control 8 servos at once! http://www.al-williams.com/awce/pak8.htm


> > > > > >'PROGRAM "SRVOTST1.BAS" 10/4/00
> > > > > >'TO TEST RC SERVOS
> > > > > >LOW 0
> > > > > >AGAIN:
> > > > > >FOR B2=100 TO 200 STEP 2
> > > > > > PULSOUT 0,B2
> > > > > > PAUSE 15
> > > > > >NEXT
> > > > > >FOR B2=200 TO 100 STEP -2
> > > > > > PULSOUT 0,B2
> > > > > > PAUSE 15
> > > > > > NEXT
> > > > > >'DEBUG "AGAIN"
> > > > > >PAUSE 1000
> > > > > >GOTO AGAIN
> > >
Original Message
> > > From: Ray McArthur <rjmca@u...>
> > > To: <basicstamps@egroups.com>
> > > Sent: Saturday, October 21, 2000 1:38 AM
> > > Subject: Re: [noparse][[/noparse]basicstamps] BSIISX - Connecting Servo's Correctly
> > >
> > >
>
Sign In or Register to comment.