Shop OBEX P1 Docs P2 Docs Learn Events
dealing with rotations per minute of a continuous rotation servo... — Parallax Forums

dealing with rotations per minute of a continuous rotation servo...

IIIA.2IIIA.2 Posts: 2
edited 2010-04-01 16:14 in BASIC Stamp
Hi, I'm taking robotics as an elective and i think you may categorize me as a 'beginner.' Well, right now my class is dealing with the motor's RPM. Thus, my question is, how can I speculate the RPM of the continuous rotation servo when it is assigned a particular motor speed???

Here is the code sample the teacher handed to me;

' {$STAMP BS2}
' {$PBASIC 2.5}
loopcount var Word
motor_speed var word
loopcount = 150
motor_speed = 1200

DEBUG "Motor On", CR
DO WHILE loopcount <150
Pulsout 13, motor_speed
PAUSE 20
Loopcount = loopcount + 1
LOOP

DEBUG "All done."
END

Thanks [noparse]:)[/noparse]

Comments

  • ercoerco Posts: 20,256
    edited 2010-03-31 21:09
    Empirical observation, Watson! It's all approximate, and will vary based on your particular your setup, servo, load & battery voltage. With fresh batteries, test several different pulsouts and count revolutions per minute and make a lookup chart. It will be roughly repeatable, but RPM will slow down as your load increases or your batteries poop out. For more consistent results, use rechargeable batteries, NiMH or LiPo.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • IIIA.2IIIA.2 Posts: 2
    edited 2010-03-31 22:20
    Thank you. [noparse]:)[/noparse]
  • silverbacksilverback Posts: 40
    edited 2010-04-01 00:20
    IIIA.2 said...
    Hi, I'm taking robotics as an elective and i think you may categorize me as a 'beginner.' Well, right now my class is dealing with the motor's RPM. Thus, my question is, how can I speculate the RPM of the continuous rotation servo when it is assigned a particular motor speed???

    Here is the code sample the teacher handed to me;

    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    loopcount var Word
    motor_speed var word
    loopcount = 150
    motor_speed = 1200

    DEBUG "Motor On", CR
    DO WHILE loopcount <150
    Pulsout 13, motor_speed
    PAUSE 20
    Loopcount = loopcount + 1
    LOOP

    DEBUG "All done."
    END

    Thanks [noparse]:)[/noparse]
    If you are using a parallax CRServo your pulsout range is 650 to 850


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If you convince yourself that something is impossible before you even try; you are sure to prove yourself right.
  • FranklinFranklin Posts: 4,747
    edited 2010-04-01 15:50
    Also the motor won't rotate because of the value of loopcount.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Spiral_72Spiral_72 Posts: 791
    edited 2010-04-01 16:14
    Franklin said...
    Also the motor won't rotate because of the value of loopcount.

    HA! you're right! So to answer your question..... RPM = 0

    lol.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "puff"...... Smile, there went another one.
Sign In or Register to comment.