Go to Post As a team leader if I do not INSPIRE I have failed, and I do not like to fail. - Mike Martus [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-03-2013, 07:30
bumblebee3339's Avatar
bumblebee3339 bumblebee3339 is offline
Team's main account
FRC #3339 (BumbleBee)
 
Join Date: Feb 2013
Rookie Year: 2009
Location: Israel
Posts: 34
bumblebee3339 is an unknown quantity at this point
How to make the robot drive straight?

When I try to drive forward, giving both engines 1, the robot drives a bit left. How can I fix it?
Thx
Reply With Quote
  #2   Spotlight this post!  
Unread 31-03-2013, 07:42
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: How to make the robot drive straight?

A number of ways.

1. You can continue using an open loop system with no sensors, but do a bit of calibration. Multiply the right side by .9 or .95 or whatever value corrects for the problem.

2. You can dig deeper and determine if it is due to differences in motors, bindings in gearboxes, tightness of chains, or resistance of electrical components, and try to correct the underlying issue.

3. You can close the loop and add sensors such as encoders to measure how fast the motors are running and correct it so that the fast side doesn't outrun the slow side.

Option 1 is trivially easy but will likely not solve the problem except at that power setting, with that battery voltage, on that carpet, etc. Option 2 is important to at least look for in case it is a serious inefficiency that you are trying to work around in software. Option 3 takes more thought and more work, but if tuned well, it is the most robust.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 31-03-2013, 15:57
lorem3k's Avatar
lorem3k lorem3k is offline
1 + 1 = 0 (in Z/2Z)
AKA: Andy D.
FRC #1482 (Bishop Grandin Ghosts)
Team Role: Alumni
 
Join Date: Apr 2012
Rookie Year: 2011
Location: Calgary, AB
Posts: 165
lorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to behold
Re: How to make the robot drive straight?

This could also be a hardware problem. If some of the motors are wired in reverse polarity, or if they're just older, they might not be able to reach the same maximum speed as they could if they were new and wired straight through. If any of your motors are wired up reverse polarity and receiving a +1 signal, try re-wiring them in straight through polarity and sending that side a -1 signal instead.
__________________
Boo! Bishop Grandin High School / GM Canada / Tenaris
2013 Western Canada - Quarterfinalists (thanks 288/4719) / 2012 GTR West - Quarterfinalists (thanks 188/1075) / 2011 GTR East - Regional Winners (thanks 1114/1503)
Reply With Quote
  #4   Spotlight this post!  
Unread 31-03-2013, 19:04
orangemoore orangemoore is offline
Registered User
AKA: Roger Moore
FRC #3135 (Robotic Colonels)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Chicago
Posts: 2,308
orangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond repute
Re: How to make the robot drive straight?

You could try ballast if you have room for the weight.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-04-2013, 09:09
NeatNit's Avatar
NeatNit NeatNit is offline
Alumni Programmer
FRC #1577 (Steampunk)
Team Role: Teacher
 
Join Date: Sep 2011
Rookie Year: 2011
Location: Israel
Posts: 60
NeatNit is an unknown quantity at this point
Re: How to make the robot drive straight?

Quote:
Originally Posted by lorem3k View Post
This could also be a hardware problem. If some of the motors are wired in reverse polarity, or if they're just older, they might not be able to reach the same maximum speed as they could if they were new and wired straight through. If any of your motors are wired up reverse polarity and receiving a +1 signal, try re-wiring them in straight through polarity and sending that side a -1 signal instead.
Really? Does that make a difference? I've never thought of this but I just assumed motors were symmetrical in efficiency, except maybe niche motors for specific tasks (I can't even think of one right now). Do you have links to give me?

Don't make an 'assume' joke.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-04-2013, 11:29
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How to make the robot drive straight?

Many motors have a measurable bias in their "forward" direction. However, a CIM's bias is negligible.

You can't compensate for bias by swapping wires. There is no electrical difference between sending full positive voltage to a motor's black wire and sending full negative voltage to its red wire. Assuming the same mechanical load, it will spin in the same direction at the same speed in either case.

The place to look is in the mechanical side of things, not electrical. The slower-moving side could have some extra friction or binding, perhaps due to a too-tight chain or belt. Or it might just be that the wheels aren't mounted quite in line with the desired robot travel and the chassis would tend to travel in a curve even when being pushed by hand with no power applied.
Reply With Quote
Reply


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:41.

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