BSIISX - Connecting Servo''s Correctly
Archiver
Posts: 46,084
Doug:
Sorry you damaged your servo gears. I knew the pulsout timing was different
for the SX, but didn't think to warn you about the byte size limitation.
From Al Williams info, the pulsout units are 0.8us for the SX. So to go
from 1ms to 2ms, you only need w1 to step from 1250 to 2500, ie,
1ms/0.8us=1250. Your code is slightly over-ranging the servos at each end.
Good luck,
Ray McArthur
Original Message
From: Doug Simpson <veewee77@a...>
To: <basicstamps@egroups.com>
Sent: Monday, October 23, 2000 3:37 PM
Subject: RE: [noparse][[/noparse]basicstamps] BSIISX - Connecting Servo's Correctly
> The variable specified in b2 is a byte variable, right?
>
> Ok, the number is bigger than 255 which makes it out of range for a
> number bigger than 255, right?
>
> start:
> for w1=900 to 2750 step 25
> pulsout 4,w1
> pause 20
> next
> for w1=2750 to 900 step 25
> pulsout 4,w1
> pause 20
> next
> goto start
>
Sorry you damaged your servo gears. I knew the pulsout timing was different
for the SX, but didn't think to warn you about the byte size limitation.
From Al Williams info, the pulsout units are 0.8us for the SX. So to go
from 1ms to 2ms, you only need w1 to step from 1250 to 2500, ie,
1ms/0.8us=1250. Your code is slightly over-ranging the servos at each end.
Good luck,
Ray McArthur
Original Message
From: Doug Simpson <veewee77@a...>
To: <basicstamps@egroups.com>
Sent: Monday, October 23, 2000 3:37 PM
Subject: RE: [noparse][[/noparse]basicstamps] BSIISX - Connecting Servo's Correctly
> The variable specified in b2 is a byte variable, right?
>
> Ok, the number is bigger than 255 which makes it out of range for a
> number bigger than 255, right?
>
> start:
> for w1=900 to 2750 step 25
> pulsout 4,w1
> pause 20
> next
> for w1=2750 to 900 step 25
> pulsout 4,w1
> pause 20
> next
> goto start
>