BSIISX - Connecting Servo''s Correctly
Archiver
Posts: 46,084
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
> > >
> > >
>
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
> > >
> > >
>