Go to Post Nonetheless, I would welcome it, as long as [The President] didn't restrict the number of discs that a Robot could hold. Oops, wait, too late, the GDC already did that. :-) - MooreteP [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 12-01-2013, 22:18
cdizzle cdizzle is offline
Registered User
FRC #2367
 
Join Date: Oct 2012
Location: Bay Area, CA
Posts: 42
cdizzle is an unknown quantity at this point
Encoders on Drive Motors?

Hi everybody,
So when we drive our team's prototype chassis, which has 6 wheels and a 2 motor drive, if we run both of the motors full speed straight forward, one side tends to be faster than the other, resulting in the robot trajectory actually curving instead of going straight. I was going to put encoders on both the motors in order to make sure that both sides were running at the same speed, but I don't know the labview code that I would use to do that. Could anybody show me an example of using encoders for that task?
Thanks,
Team #2367
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2013, 22:31
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Encoders on Drive Motors?

I'm not a programmer, so I can't really help much there. However I do know mechanical pretty well, and a curving drivetrain means that there's something mechanically wrong with your drivetrain.

Get the mechanical guys to fix the problem. Otherwise you will be always reducing power to one side to compensate for the drivetrain problem. With the drive motors disconnected, you will find that one side of the drivetrain requires more effort to move than the other.

That being said, encoders on your drive motors are generally a good idea, especially when you're trying to move a specific distance in autonomous.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2013, 23:01
cdizzle cdizzle is offline
Registered User
FRC #2367
 
Join Date: Oct 2012
Location: Bay Area, CA
Posts: 42
cdizzle is an unknown quantity at this point
Re: Encoders on Drive Motors?

Quote:
Originally Posted by DonRotolo View Post
Get the mechanical guys to fix the problem. Otherwise you will be always reducing power to one side to compensate for the drivetrain problem. With the drive motors disconnected, you will find that one side of the drivetrain requires more effort to move than the other.
I pretty much am the mechanical guy, so what could be the root cause of the problem mechanically? The robot is just a chassis right now, so there isn't much on it except for the motors, wheels and the electronics board.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2013, 23:27
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Encoders on Drive Motors?

Quote:
Originally Posted by cdizzle View Post
I pretty much am the mechanical guy, so what could be the root cause of the problem mechanically?
Chains too tight, gearboxes assembled improperly, bearings binding, wheels misaligned, motor manufacturing tolerances.

Try swapping parts side-to-side until the problem changes sides.

Motors, gearboxes, motor controllers, wheels, you get the idea.

Start with the easiest parts and work your way down the list.


Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-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,752
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: Encoders on Drive Motors?

Put it on blocks and see if you can determine if any of the wheels rotate less well then others.

Determine if the frame is warped.

With it on blocks, mark the wheels and set the speed controllers to the same value and do a visual encoder to see if it is the drive wheels or speed controllers that are doing it. Is it only at high speeds, or all the time?

To add encoders, there is at least one example that will get you started, and if nothing else, it will help with diagnosis and measurement of the difference between sides. To find the example, you can do it from the Getting Started window/Support, or you can go to the Help menu/Find Examples and look in the FRC/Robot and Motor section.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2013, 12:38
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,113
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: Encoders on Drive Motors?

A six-wheel drive base will tend to go in whatever direction the frame wants it to when the motors are driven with approximately the same power. I'd definitely look for warping or binding somewhere.

However, I'd also double-check the software to make sure the speed controllers being defined in the code match the ones physically installed. If you're using Talons, you must select Talon from the menu at the bottom of the Open 2 Motor Drive function. If you use (e.g.) Victors while telling the software you're using Jaguars, you'll get asymmetry in motor speeds.
Reply With Quote
  #7   Spotlight this post!  
Unread 13-01-2013, 12:48
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,752
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: Encoders on Drive Motors?

It may also be useful to calibrate the speed controllers. New ones shouldn't need this, but older repurposed ones may have different calibrations.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 13-01-2013, 21:51
cdizzle cdizzle is offline
Registered User
FRC #2367
 
Join Date: Oct 2012
Location: Bay Area, CA
Posts: 42
cdizzle is an unknown quantity at this point
Re: Encoders on Drive Motors?

Thanks for the help! I'll try debugging it tomorrow.
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 21:43.

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