Shop OBEX P1 Docs P2 Docs Learn Events
problem — Parallax Forums

problem

wmnwmn Posts: 5
edited 2008-08-20 11:39 in Robotics
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?

Comments

  • SRLMSRLM Posts: 5,045
    edited 2008-08-20 01:10
    Sounds like the batteries are dead. Get out your handy multimeter and see how far they've fallen. If you don't have a multimeter, just replace the batteries and see what happens.

    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.
  • wmnwmn Posts: 5
    edited 2008-08-20 11:39
    thanks i center the servo and it's working now
Sign In or Register to comment.