To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 6403
6402  |  6404
Subject: 
Re: speed control help
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 23 Jun 1999 16:05:00 GMT
Original-From: 
Will <nepenthe@montana.&antispam&com>
Viewed: 
740 times
  
lroska wrote:
<snip>
My robot is curently configured for differential steering and have
shaft encoders installed on each one for feedback. • <snip>
The problem is that the motors are non linear in respect to the power
applied to them. • <snip>
the speed control software i'm using is assuming that the response is
linear so for 50% power it expects to see 32 pulses/s but in fact it is
receiving 50 pulses/s therefore it slows down the motor to a crawl.
<snip>

The easy solution is to avoid using a formula that assumes anything about the motor speed curve (except of course that reducing the motor value reduces the speed).

Try using a feedback mechanism:  Keep track of the cumulative pulses from each wheel; while the difference between the two is non-zero, keep decrementing (or incrementing) one of the motor values.  This will rapidly fine tune itself to the particular characteristics of the motors, batteries, terrain, etc.  You can have a sort of speed control daemon running in a separate process.  Works for me!  Good luck.

-- Will

P.S.--The *smooth* PWM routine (available from the HB web site) is probably needed for this application.
                                          , ,
        __@_/             \_@__           |/
          |                /__,           o             @_/
          )\              )              ( \            (\/\\,
~~~~~~~~~ ' ` ~~~~~~~~~~~ ` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wendy Parson,                     America's one of the finest countries
Will Bain,                                           anyone ever stole.
& Tatoosh                                           --Bobcat Goldthwait



Message is in Reply To:
  speed control help
 
I have a problem that involves speed control. My robot is curently configured for differential steering and have shaft encoders installed on each one for feedback. the shaft encoders generate 64 pulses /rev The motors are PWM using the rug warrior (...) (25 years ago, 23-Jun-99, to lugnet.robotics.handyboard)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR