Shop OBEX P1 Docs P2 Docs Learn Events
Continuous Motor coding... — Parallax Forums

Continuous Motor coding...

JedJed Posts: 107
edited 2008-01-24 15:27 in BASIC Stamp
I'm looking at the manual for the continuous motor and it shows a pulse duration of 750 for center, 600 one direction and 900 the other? This is different than the 500,750,1000 duration I've been using with the unmodified servo. Why are the limits lower? I was expecting the numbers to change the speed of the rotation, with 500 being the fastest in one direction and 1000 the fastest in the other, 750 being no movement at all. Can someone please clarify how the pulse codes effect the modified servos?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-22 01:17
    There's some variation from servo to servo and from manufacturer to manufacturer. The only number that's fairly consistent is the 750 which represents a 1.5ms pulse (with each unit being 2us on a BS2). Most servos respond to a range of 1ms to 2ms which comes out to a PULSOUT value range of 500 to 1000. The continuous motion servos tend to plateau as you get close to the ends of their pulse range, so they respond less to variations near the extremes, so there's little difference between 500 and 600 or between 900 and 1000.
  • JedJed Posts: 107
    edited 2008-01-22 01:26
    What about controlling speed. Can I do that with the duration (farther from center being faster) or do I have to do that with pauses?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-22 02:06
    Very close to the center value (750), the motors will slow down and that can give you some speed control. You'll have to experiment with values. Maybe you can plot speed (RPM) vs. PULSOUT values. Do keep in mind that these motors were not designed for fine control of speed.
  • JedJed Posts: 107
    edited 2008-01-22 23:33
    Ok, I'll try that when my servo gets here. What about adding resistors to the servo's power supply? Will that slow the motor down any?
  • Matthew BurmeisterMatthew Burmeister Posts: 49
    edited 2008-01-23 12:27
    i would think it would. since servos are motors and i have read that you can add a resistor to a motor to slow down the motor

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    print "connecter"
    input "Which com"; com$ ' displays text and lets user chose which com
    open com; com$ for read ' opens com
    close #com ' closes com
    print "Com closed" ' displays text
    end ' ends or stops the program
    ' JBASIC code www.justbasic.com
  • bennettdanbennettdan Posts: 614
    edited 2008-01-24 04:26
    Jed
    Read the WAM text their is a section on how to control the velocity of a standard servo this should be what you are looking for. Look at activity #3 converting position to motion on page # 125 in this text.
    www.parallax.com/Portals/0/Downloads/docs/books/edu/wamv2_2.pdf
  • JedJed Posts: 107
    edited 2008-01-24 15:27
    Thanks bennettdan, but I believe that code is for an unmodified servo. I'll be using a continuous servo and was hoping the duration would control the speed better than it's sounds like it actually does. I'll figure something out. cool.gif
Sign In or Register to comment.