problem
I have just purchased Boe-Bot Full Kit - Serial (BS2 - Board of Education Rev C ) and started implementing the text book stuff in order to gain knowledge and understanding of the kit capabilities.
The robot assembled is of 2 LEDs and 2 resistors as instructed by the kit manual ( chapter 1 page 48 ) , at first, I thought the device works fine. However, now I found that it doesn’t respond to some of the instructions I feed to the Microcontroller.
·
To illustrate the point, even when I run the following testing program, which theoretically makes one of the servo ·rotate Clockwise ·for 3 seconds stop for 1 second reverse the rotation to Counterclockwise for other 3 seconds , but instead it moves clockwise for 7 seconds .
·
·
'Bot - RightServoTest.BS2
' Right servo turns clockwise three seconds, stops 1 second, then
' counterclockwise three seconds.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
counter VAR Word
FOR counter = 1 TO 122 ' Clockwise just under 3 seconds.
PULSOUT 13, 650
PAUSE 20
NEXT
FOR counter = 1 TO 40 ' Stop one second.
PULSOUT 13, 750
PAUSE 20
NEXT
FOR counter = 1 TO 122 ' Counterclockwise three seconds.
PULSOUT 13, 850
PAUSE 20
NEXT
END
·
This is the problem whatever the program is the servojust move in 1 direction one of them clockwise and the other counterclockwise.
Can anyone help please?
The robot assembled is of 2 LEDs and 2 resistors as instructed by the kit manual ( chapter 1 page 48 ) , at first, I thought the device works fine. However, now I found that it doesn’t respond to some of the instructions I feed to the Microcontroller.
·
To illustrate the point, even when I run the following testing program, which theoretically makes one of the servo ·rotate Clockwise ·for 3 seconds stop for 1 second reverse the rotation to Counterclockwise for other 3 seconds , but instead it moves clockwise for 7 seconds .
·
·
'Bot - RightServoTest.BS2
' Right servo turns clockwise three seconds, stops 1 second, then
' counterclockwise three seconds.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
counter VAR Word
FOR counter = 1 TO 122 ' Clockwise just under 3 seconds.
PULSOUT 13, 650
PAUSE 20
NEXT
FOR counter = 1 TO 40 ' Stop one second.
PULSOUT 13, 750
PAUSE 20
NEXT
FOR counter = 1 TO 122 ' Counterclockwise three seconds.
PULSOUT 13, 850
PAUSE 20
NEXT
END
·
This is the problem whatever the program is the servojust move in 1 direction one of them clockwise and the other counterclockwise.
Can anyone help please?
Comments
Also: did you center your servos? This is the process where you send it a constant 750 command, and turn the adjustment knob until the servos stop rotating. It's possible that everything is adjusted so low that anything higer than (maybe) 600 rotates in one dirrection.