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 / 4933
4932  |  4934
Subject: 
Re: DC Motor movement
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 10 Dec 1998 03:10:36 GMT
Original-From: 
michaelj@wt.*Spamcake*net
Viewed: 
608 times
  
hi,
The following command will cause the DC motor to rotote one after other
according to the std lib and the command. hence, the robot will gradually
slanted. It cannot travelled in a straight.

motor (2, 100);
motor (3,100);

My question : how to  write in such a way to modify the library files so as

to cause both wheels of the motor to rotate simultaneously so that the
robot can travel in a straight line.


Each motor may have slightly different characteristics even though they may
be the same brand and model. This is what you are probably seeing. The ultimate
solution is to use a feedback mechanism, like a shaft encoder, on the motors
and use software and/or hardware to maintain the correct speed. A cheaper alternative
is to experiment with different value pairs for the speed setting and manually
adjust them to make the robot track straight, then use the information to create
a change to your motor driver routines to compensate for the differences. This
complicates your software but is the esiest way to fix the problem. A pure software
fix will not be able to completely compensate for the differences in the motors,
too many variables to deal with, but is may be enough for your needs.

Mike



1 Message 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