Shop OBEX P1 Docs P2 Docs Learn Events
Basic movement, ActivityBot keeps "clicking" with slight movement — Parallax Forums

Basic movement, ActivityBot keeps "clicking" with slight movement

Hello,

I have a question about basic movement of the ActivityBot.

I have put together a small program to have the robot "turn right", pause 2 secs, "turn left", pause 2 secs, and then "turn around".

After each movement completes the robot sits and kind of makes a slight grinding noise as it keeps moving a little.
It looks like it is left with some residual turning that was just completed.

For turning right for example I call
drive_goto(26,-26);
followed by
drive_goto(0,0);

when that didn't work I put a pause in between the two "drive" calls of 250.
when that didn't work I closed with a drive_speed(0,0); wondering if it was differently somehow.

I am wondering how to get it to move and come to a resting stop.


My next question will be how to determine if I have made a 90degree turn? I suppose that is part of the cool challenge.

thank you much

Comments

  • whoops, sorry about the "wondering if it was differently somehow".
    I was heading in a direction with that sentence, then changed my mind but my fingers were already way out front.
    I should have done a better job of proof reading the post.

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2016-01-17 05:23
    Welcome to the forum!

    You need to calibrate the servo motors to set the null points. The when you tell it to stop, it should stop and stay stopped.

    -Phil
Sign In or Register to comment.