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 / 1774
1773  |  1775
Subject: 
Re: Odometers
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 26 Mar 1997 02:04:22 GMT
Original-From: 
Gordon Smith <smith21@mail.sdsu(spamcake).edu>
Viewed: 
1500 times
  
Has anyone used odometers to make their bot drive in a straight line.
I am trying to do this and it seems like the delay in reading the
encoder values from 1 line to the next causes problems.  I have tried
taking two results after sleeping for 0.3 seconds subtracting
these 2 values and correcting accordingly but this still doesn't
work well.  Maybe the time isn't precise enough???
If anyone can share their experiences with this I would appreciate
it.

Here is a sample of the procedure I call to check the encoders and
try to correct accordingly.

Thanks,
Tom Hueske

Tom,
  The problem most likely is not with the code but with the motor driver
software.  At the present time, the handy board motor driver routine only
allows you to select from 7 power levels to the motor. With only 7 levels to
choose from, you won't have precision motor capabilites.

Gordon F. Smith II
SDSU Mechanical Engineering
Graduation: T -60 days and counting!



Message has 1 Reply:
  Re: Odometers
 
"You pass this way but once, do it right" (...) Exactly the problem. So I've kind of rigged my motor code to take care to create more than 7 speeds. For instance, by alternating between to levels of PWM very quickly you can fake more motor speed (...) (28 years ago, 26-Mar-97, to lugnet.robotics.handyboard)

2 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