Shop OBEX P1 Docs P2 Docs Learn Events
n00b help, sumobot model — Parallax Forums

n00b help, sumobot model

mustadio98mustadio98 Posts: 4
edited 2006-11-29 18:07 in Robotics
Hi I need help, I don't know how to adjust the centering potentiometer. I don't know when I should adjust and when I should stop adjusting. The motors runs for a brief second then stops.

this is the program:

'SumoBot_2.1_Motor_Align.BS2
'{$Stamp BS2}
'{$PBASIC 2.5}
LMotor·· PIN 13
RMotor·· PIN 12
LStop CON 750
RStop CON 750
Reset:
· LOW LMotor
· LOW RMotor
· Main:
· DO
··· PULSOUT LMotor, LStop
··· PULSOUT RMotor, RStop
··· PAUSE 20
··· LOOP
··· END

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-11-29 18:06
    Hello,
    ·
    ·· When this code is running it will continually send out the center pulse to the servos.· Once you have the screw adjusted so that the servos are not moving they should be centered.· If they are moving at all they are not centered.· While at the center point during adjustment you should notice that moving the screwdriver one way makes the servo spin one way while moving it the other way past center should make it spin the other way.· You want the spot in between where it stops.· I hope this helps.· Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • mustadio98mustadio98 Posts: 4
    edited 2006-11-29 18:06
    anybody?
  • mustadio98mustadio98 Posts: 4
    edited 2006-11-29 18:07
    Thank You Chris, I'm gonna try it
Sign In or Register to comment.