Subject:
|
Re: Odometers
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Wed, 26 Mar 1997 02:04:22 GMT
|
Original-From:
|
Gordon Smith <SMITH21@saynotospamMAIL.SDSU.EDU>
|
Viewed:
|
2303 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
|
|
|
|