Go to Post I think applying Gracious Professionalism to strictly legal game play trivializes what is a much more important and fundamental FIRST concept. - jimfortytwo [more]
Home
Go Back   Chief Delphi > Technical > Motors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2016, 23:56
Eloy1073 Eloy1073 is offline
Registered User
FRC #5261
 
Join Date: Jan 2016
Location: Houston
Posts: 4
Eloy1073 is an unknown quantity at this point
Problems driving straight.

Hello team 5261 here. We drive rotate fine and can get by going forward and backwards but whenever we try to go faster like down a hall it seems the robot starts to turn left. I think this happens because one motor is faster than all the other. If someone could please tell me what the problem is or how to slow down just one specific motor.

USING LANGUAGE JAVA
  #2   Spotlight this post!  
Unread 28-01-2016, 00:03
BBray_T1296's Avatar
BBray_T1296 BBray_T1296 is offline
I am Dave! Yognaut
AKA: Brian Bray
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Rockwall, TX
Posts: 947
BBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond repute
Re: Problems driving straight.

If you try moving the wheels by hand, does one side seem more difficult to move than another? Does one side of the drive sound differently to another? If you have more than one motor per side, make sure all motors are actually running (try one motor plugged in at a time and see if you notice anything). Without sensors to read it could be difficult to tell, though sound is usually a decent indicator

Check that all your motor controllers are properly calibrated. Check that you are using the same motor controllers on all motors in the drivetrain.

If you are using chains/belts, check tension, perhaps one is tighter than the other and causing issues. Did you lubricate gears? Is anything potentially bent in a weird way? Is your drivetrain square (that is are both sides parallel)?

Chances are the problem is a mechanical or electrical one. It is not impossible but most likely not a software problem, unless you are trying something fancy coding-wise.
__________________
If molecular reactions are deterministic, are all universes identical?

RIP David Shafer: you will be missed



Last edited by BBray_T1296 : 28-01-2016 at 00:07.
  #3   Spotlight this post!  
Unread 28-01-2016, 00:17
IronicDeadBird's Avatar
IronicDeadBird IronicDeadBird is offline
Theory Crafting Fo days...
AKA: Charles Ives "M" Waldo IV
FRC #1339 (Angelbots)
Team Role: Tactician
 
Join Date: Feb 2014
Rookie Year: 2005
Location: Colorado
Posts: 958
IronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond reputeIronicDeadBird has a reputation beyond repute
Re: Problems driving straight.

Quote:
Originally Posted by Eloy1073 View Post
Hello team 5261 here. We drive rotate fine and can get by going forward and backwards but whenever we try to go faster like down a hall it seems the robot starts to turn left. I think this happens because one motor is faster than all the other. If someone could please tell me what the problem is or how to slow down just one specific motor.

USING LANGUAGE JAVA
What are you using for a controller?
__________________
HERO 俺を讃える声や 喝采なんて 欲しくはないさ
I liked my team more before they stole my jacket.
Play is for kids this is serious...
  #4   Spotlight this post!  
Unread 28-01-2016, 00:25
ahartnet's Avatar
ahartnet ahartnet is offline
Registered User
AKA: Andrew Hartnett
FRC #5414 (Pearadox)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2005
Location: Houston, Texas
Posts: 197
ahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond repute
Re: Problems driving straight.

It could be mechanical as others have indicated (chain being tighter one one side, one sides gearbox not being assembled as smoothly as the other, etc), but it could also be electrical - if one of the motor calibrations are way off for some reason, that could be an indicator. Read up in the user guides of the motor controller for how to calibrate.

Also are you using arcade drive (pushing forward on one joystick makes both sides go forward?) Otherwise it might be user input making it veer off a little bit.
__________________
Team 451 The Cat Attack, Student Alumni (2005)
Team 1646 Precision Guessworks, Mentor (2006-2008)
Team 2936 Gatorzillas, Mentor (2011-2014)
Team 5414 Pearadox, Mentor (2015-Present)
  #5   Spotlight this post!  
Unread 28-01-2016, 00:37
bEdhEd's Avatar
bEdhEd bEdhEd is offline
Design and Drive Team Mentor
AKA: Frank E.G. Shiner
FRC #0701 (The RoboVikes)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2009
Location: Fairfield, CA USA
Posts: 494
bEdhEd has a reputation beyond reputebEdhEd has a reputation beyond reputebEdhEd has a reputation beyond reputebEdhEd has a reputation beyond reputebEdhEd has a reputation beyond reputebEdhEd has a reputation beyond reputebEdhEd has a reputation beyond reputebEdhEd has a reputation beyond reputebEdhEd has a reputation beyond reputebEdhEd has a reputation beyond reputebEdhEd has a reputation beyond repute
Re: Problems driving straight.

Not only could one motor be running slower, but one motor could actually be running REVERSE relative to the others. We've done this before, so check your program that each rotates the same direction as the others. You may need to do some dis-assembly to make sure each motor is running the right way.
__________________

  #6   Spotlight this post!  
Unread 28-01-2016, 01:32
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: Problems driving straight.

Welcome to Chief Delphi

There is already a thread where someone is having a similar problem. You may find some useful information there.

http://www.chiefdelphi.com/forums/sh...hreadid=142645
  #7   Spotlight this post!  
Unread 28-01-2016, 05:33
Dad1279 Dad1279 is offline
Registered User
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: NJ
Posts: 511
Dad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud of
Re: Problems driving straight.

Is the hallway floor slick? try it on carpeting.....
  #8   Spotlight this post!  
Unread 28-01-2016, 06:02
DaveL DaveL is offline
Registered User
FRC #2976
 
Join Date: Jan 2013
Location: WA
Posts: 174
DaveL is a jewel in the roughDaveL is a jewel in the roughDaveL is a jewel in the roughDaveL is a jewel in the rough
Re: Problems driving straight.

If you are using dead axles (round bearings supported by bolts) make sure the bolts are a little loose. Like others have said, take the system apart and test each component separately and then as it is reassembled.

Is your robot's CoG centered side to side? If one side of your bot is heaver it may increase friction and cause you to turn in that direction.

As others have said, if your frame is not square, your robot won't track straight. If the bearings on one of your motors or wheels has higher friction, you bot won't go straight.

If its not mechanical, you could try using a 'Y' cable so each motor controller gets the same PWM signal.

You can program a button to pass both sides of the robot the same value or use a 'Y' cable to distribute the same PWM signal to the right and left sides of the bot. If the bot goes straight with this set up its likely your joystick controller is the issue.

The key to finding the problem, is to be able to rule out each component in a systematic fashion. Let us know what you try and the results.

Dave
  #9   Spotlight this post!  
Unread 28-01-2016, 08:26
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Problems driving straight.

Quote:
Originally Posted by DaveL View Post
The key to finding the problem, is to be able to rule out each component in a systematic fashion.
This should be shouted from the rooftops.



  #10   Spotlight this post!  
Unread 28-01-2016, 08:47
Eloy1073 Eloy1073 is offline
Registered User
FRC #5261
 
Join Date: Jan 2016
Location: Houston
Posts: 4
Eloy1073 is an unknown quantity at this point
Re: Problems driving straight.

Not near the bot at the moment but will try all those when I get the chnace later today.
  #11   Spotlight this post!  
Unread 28-01-2016, 08:48
Eloy1073 Eloy1073 is offline
Registered User
FRC #5261
 
Join Date: Jan 2016
Location: Houston
Posts: 4
Eloy1073 is an unknown quantity at this point
Re: Problems driving straight.

An Xbox afterglow controller.
  #12   Spotlight this post!  
Unread 28-01-2016, 08:50
Eloy1073 Eloy1073 is offline
Registered User
FRC #5261
 
Join Date: Jan 2016
Location: Houston
Posts: 4
Eloy1073 is an unknown quantity at this point
Re: Problems driving straight.

We're using tank drive for mecanum. This isn't for the 2016 bot because we a haven't completed. But all the programmers this year are new to programming so we wanted something to test on.
  #13   Spotlight this post!  
Unread 28-01-2016, 12:37
seg9585's Avatar
seg9585 seg9585 is offline
Registered User
AKA: Eric
FRC #4276 (Surf City Vikings)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2001
Location: Boeing (Seal Beach, CA)
Posts: 520
seg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond repute
Re: Problems driving straight.

Two different gearboxes will never produce the same exact output power/torque/rpm, because small variances in gear friction and efficiency can drastically change the performance.
I assume you don't have encoders you can use to match the wheel speeds?
If not, then simply add a "bias" multiplier to the motors in the faster gearbox so its max speed is slower such that it matches the other gearbox.

For example, if the robot is steering to the left, that means the right gearbox needs to be slowed down:

bias=0.9; // Figure out what number to use here until the robot drives straight, should be between 0 and 1 noninclusive

leftmotor.set(joystick.getY());
rightmotor.set(joystick.getY()*bias);
__________________
My FIRST legacy:

Team 204 Student 2001, 2002 (Voorhees, NJ)
Team 1493 College Mentor 2006 - 2008 (Troy, NY)
Team 2150 Intern/Professional Mentor 2007, 2009 (Palos Verdes)
Team 4123 Lead Engineering Mentor 2012 (Bellflower, CA)
Team 4276 Engineering Mentor 2012-2016 (Huntington Beach, CA)
  #14   Spotlight this post!  
Unread 28-01-2016, 12:54
ryanjacobs's Avatar
ryanjacobs ryanjacobs is offline
Registered User
AKA: Ryan Jacobs
FRC #1708 (Amp'd Robotics)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2011
Location: McKeesport
Posts: 4
ryanjacobs is an unknown quantity at this point
Re: Problems driving straight.

Sometimes motors don't run at the same exact rate. You can either play around with new motors, program one motor to be slower than the other or, my personal favorite, use a gyroscope! Gyros are easy to program, very useful, fun to use! Good luck with everything
  #15   Spotlight this post!  
Unread 28-01-2016, 13:53
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,964
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Problems driving straight.

Quote:
Originally Posted by Eloy1073 View Post
We're using tank drive for mecanum. This isn't for the 2016 bot because we a haven't completed. But all the programmers this year are new to programming so we wanted something to test on.
Since you mentioned mecanum ... ensure that all the rollers take the same force to spin. A really tight or loose roller will cause your robot to veer off
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi