Shop OBEX P1 Docs P2 Docs Learn Events
Another Servo Voltage Question — Parallax Forums

Another Servo Voltage Question

ArchiverArchiver Posts: 46,084
edited 2003-04-25 21:23 in General Discussion
I asked one a few weeks ago, and thanks to everyone who responded. I
have 2 servos hooked up to a BoE, which supplies the unregulated
battery voltage to the servos. I'm using the 2 servos to move the
robot and I was curious if different changes in voltage would have an
effect on the distance the servo travels. For instance, here is some code:
uturn:
for x = 0 to 330
pulsout 12, 1700
pulsout 13, 1680
next
return
At the moment it makes a u-turn. However, the batteries will slowly
drain. So will that code make a u-turn for my robot at 6.5volts and at
6.0 volts? Thanks!

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-04-25 18:52
    In a nutshell, there is no simple way to make the servos consistently travel
    a certain distance over the life of the batteries.

    Your options include:

    Wheel encoders

    Monitoring the battery voltage and working up a table of values at
    various voltages

    Turning based on other input (wall sensors, external encoder, etc...)

    Original Message

    > I asked one a few weeks ago, and thanks to everyone who responded. I
    > have 2 servos hooked up to a BoE, which supplies the unregulated
    > battery voltage to the servos. I'm using the 2 servos to move the
    > robot and I was curious if different changes in voltage would have an
    > effect on the distance the servo travels. For instance, here is some code:
    > uturn:
    > for x = 0 to 330
    > pulsout 12, 1700
    > pulsout 13, 1680
    > next
    > return
    > At the moment it makes a u-turn. However, the batteries will slowly
    > drain. So will that code make a u-turn for my robot at 6.5volts and at
    > 6.0 volts?
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-25 21:23
    Not knowing too much about it I would have battery
    voltage available which is higher than what the servos
    require say 12 volts then use a 7805 regulator (5
    volts) to supply power to the servos.At least you
    would always be working with the same voltage instead
    of having a drop when one servo is running then trying
    to figure the voltage available for the other servo.
    Sorry I didn't read previous posts about this.

    --- justin21885 <justin21885@y...> wrote:
    > I asked one a few weeks ago, and thanks to everyone
    > who responded. I
    > have 2 servos hooked up to a BoE, which supplies the
    > unregulated
    > battery voltage to the servos. I'm using the 2
    > servos to move the
    > robot and I was curious if different changes in
    > voltage would have an
    > effect on the distance the servo travels. For
    > instance, here is some code:
    > uturn:
    > for x = 0 to 330
    > pulsout 12, 1700
    > pulsout 13, 1680
    > next
    > return
    > At the moment it makes a u-turn. However, the
    > batteries will slowly
    > drain. So will that code make a u-turn for my robot
    > at 6.5volts and at
    > 6.0 volts? Thanks!
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed.
    > Text in the Subject and Body of the message will be
    > ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >


    __________________________________________________
    Do you Yahoo!?
    The New Yahoo! Search - Faster. Easier. Bingo
    http://search.yahoo.com
Sign In or Register to comment.