BOE-BOT with BS2SX?? NEED HELP!!
the basic set of boe-bot has the BS2 in it, but i changed into BS2SX
but then most codes in the reference book that came with the boe-bot kit.
so what should i try to make this happen?
i did try to change some pulsout and freqout into the different setting, but it did not work
i looked through the command reference, and i found out there is some differencies in units in period, maximum pulse width (PULSOUT), and units in period and units in freq1, freq2 (FREQOUT) between BS2 and BS2SX
i changed the pulsout according to the differencies in units in period
like [noparse][[/noparse]BS2] 650 x 2 = [noparse][[/noparse]BS2SX] NEW PULSOUT x 0.8
[noparse][[/noparse]BS2] 850 x 2 = [noparse][[/noparse]BS2SX] NEW PULSOUT x 0.8
DEBUG "running"
counter VAR WORD
FREQOUT 4, 2000, 3000
FOR counter = 1 TO 64
PULSOUT 13, 850
PULSOUT 12, 650
DEBUG "forward"
PAUSE 20
NEXT
PAUSE 200
FOR counter = 1 TO 24
PULSOUT 13, 650
PULSOUT 12, 650
DEBUG "make turn"
PAUSE 20
NEXT
PAUSE 200
FOR counter = 1 TO 64
DEBUG "backward"
PULSOUT 13, 650
PULSOUT 12, 850
PAUSE 20
NEXT
END
this is the basic code for the BS2 chip according to the reference book
then how should i change the pulsout and the freqout to make it works
but then most codes in the reference book that came with the boe-bot kit.
so what should i try to make this happen?
i did try to change some pulsout and freqout into the different setting, but it did not work
i looked through the command reference, and i found out there is some differencies in units in period, maximum pulse width (PULSOUT), and units in period and units in freq1, freq2 (FREQOUT) between BS2 and BS2SX
i changed the pulsout according to the differencies in units in period
like [noparse][[/noparse]BS2] 650 x 2 = [noparse][[/noparse]BS2SX] NEW PULSOUT x 0.8
[noparse][[/noparse]BS2] 850 x 2 = [noparse][[/noparse]BS2SX] NEW PULSOUT x 0.8
DEBUG "running"
counter VAR WORD
FREQOUT 4, 2000, 3000
FOR counter = 1 TO 64
PULSOUT 13, 850
PULSOUT 12, 650
DEBUG "forward"
PAUSE 20
NEXT
PAUSE 200
FOR counter = 1 TO 24
PULSOUT 13, 650
PULSOUT 12, 650
DEBUG "make turn"
PAUSE 20
NEXT
PAUSE 200
FOR counter = 1 TO 64
DEBUG "backward"
PULSOUT 13, 650
PULSOUT 12, 850
PAUSE 20
NEXT
END
this is the basic code for the BS2 chip according to the reference book
then how should i change the pulsout and the freqout to make it works
Comments
The BS2sx is 2.5 times faster than BS2. For PULSOUT on the BOE-BOT·that makes center on a servo with a BS2sx is 1875 (750 on BS2 x 2.5). Likewise 1250 inplace of 750 and 2500 in place of 1000. For FREQOUT· units on BS2 (1 unit represesnts 1 HZ) and on the BS2sx (1 unit represents 2.5 HZ). Therefore FREQOUT units on the BS2sx are equal to·BS2 units divided by 2.5
I hope this will help
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
······ Joe Fishback
-Robots are my friends-
that really helped