Shop OBEX P1 Docs P2 Docs Learn Events
Boe Bot Navigation With RC Transmitter More Servos - Page 2 — Parallax Forums

Boe Bot Navigation With RC Transmitter More Servos

2»

Comments

  • ercoerco Posts: 20,255
    edited 2011-12-03 12:51
    Well please check on that, because the only difference between what you said was working fine and your latest jittery software are these two lines:

    A_Target = tilt - 500
    B_Target = turn - 500

    and

    A_Target=400+((TILT-600)*5/2)
    B_Target=400+((TURN-650)*4/2)

    That shouldn't be enough math difference to cause jittering. But just for fun, try swapping these simplified lines into your most recent program and report back:

    A_Target=(TILT*5/2)-1100
    B_Target=(TURN*2)-900
  • jonathanmbjonathanmb Posts: 24
    edited 2011-12-04 05:37
    I added that program section and it did not fix the jittering.
    Thanks
  • ercoerco Posts: 20,255
    edited 2011-12-04 12:50
    Are you 100% SURE it was ever jitter-free? Reload the old program and check.
  • jonathanmbjonathanmb Posts: 24
    edited 2011-12-05 09:48
    erco wrote: »
    Are you 100% SURE it was ever jitter-free? Reload the old program and check.
    I checked all of my old programs that I still had and with all of those programs it still jitters. I could be wrong but I am pretty sure that there were times when it was not jittering. There is a video attachment below of the robot and its jittering. NOTICE when my hand is not on the stick that the camera servos are moving slightly. If this problem cannot be fixed that is OK. Thank you so much for all the help and patience you have given me.
    Thanks
  • ercoerco Posts: 20,255
    edited 2011-12-05 10:45
    Here's another option to try. Sends all four pulsouts after reading each pulsin. Upload it and immediately retreat to the minimum safe distance. :)
  • jonathanmbjonathanmb Posts: 24
    edited 2011-12-05 14:45
    Thank you for the program. The navigation servos are nice and smooth now but the camera servos are better but still jitter a lot.
    Thanks
  • ercoerco Posts: 20,255
    edited 2011-12-05 15:43
    OK, here's my final offer on improved code attached.

    Could also be a power problem. What's your battery source? Brand new batteries? You might also try two seperate batteries, one for electronics and one just for servos.
Sign In or Register to comment.