Go to Post I can't believe that I said the CD community could be patient - in December. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 16-03-2004, 10:35
xxlshortys's Avatar
xxlshortys xxlshortys is offline
FIRST Alumni
#0035 (Sigma Squared)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Whitehall, Michigan
Posts: 51
xxlshortys is on a distinguished road
Send a message via AIM to xxlshortys
Problems with Autonomous due to motor setup

We are using two drill motors that are facing opposite directions to run a 4 wheel drive chain setup. Problem is that the drill motors run at a different speed in forwards than reverse. So when we try to run our autonomous to go straight into the movable goal, it eventually begins to curve to the right and overshootes the goal after moving it.

Does anyone have any suggestions to our problem?
__________________
Joseph Mainwaring
Sigma Squared #35
Competition Manager
http://www.whitelakerobotics.org
"Were sorta like 7-11. Were not always doin business, but were always open." Boondock Saints
  #2   Spotlight this post!  
Unread 16-03-2004, 11:17
Kevin Karan's Avatar
Kevin Karan Kevin Karan is offline
Linux Guy
AKA: maxdamage
None #0174 (Arctic Warriors)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Liverpool, NY
Posts: 141
Kevin Karan will become famous soon enoughKevin Karan will become famous soon enough
Send a message via AIM to Kevin Karan
Re: Problems with Autonomous due to motor setup

We compensate by using our encoders on each wheel and ajusting untill its right.
__________________
It isnt ALWAYS the programmers falt!
2004: Buckeye team website award
2002: Rutgers semi-finalists
2001: National semi-finalists
2001: Rutgers semi-finalists
1998: Manchester Rookie All-Star Award
  #3   Spotlight this post!  
Unread 16-03-2004, 11:21
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: Problems with Autonomous due to motor setup

The elegant solution is to have feedback so you can maintain consistent wheel speeds on each side. Banner sensors pointed at gear teeth or at reflective marks on the wheels, or rotary shaft encoders, or magnets and reed switches, or any of a number of sensors can let your software measure the actual wheel speeds. You can have the code adjust the motor drive pwm numbers to keep the speeds the same.

The other "cheap" solution is to figure out what pwm values cause the two motors to run at the same speed, and hardcode them into your autonomous mode software.
  #4   Spotlight this post!  
Unread 16-03-2004, 11:22
henryBsick's Avatar
henryBsick henryBsick is offline
Why wait for the last 20?
AKA: Henry B. Sick
FRC #0125 (NUTRONS)
Team Role: Mentor
 
Join Date: Nov 2003
Rookie Year: 2001
Location: Bahston, MA
Posts: 645
henryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond reputehenryBsick has a reputation beyond repute
Send a message via AIM to henryBsick
Re: Problems with Autonomous due to motor setup

We have had friction/ speed problems too. We compensate in the Program. More power to the lagging motor.

[edit/] You beat me by a minute Alan . [/edit]
__________________
Mechanical Engineer
Digital Lumens
NU ME: 2011
  #5   Spotlight this post!  
Unread 16-03-2004, 11:30
Biff Biff is offline
Registered User
AKA: Tom Cooper
#1227 (Techno Gremlins)
Team Role: Mentor
 
Join Date: Jan 2004
Location: Grand Rapids MI
Posts: 214
Biff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the rough
Re: Problems with Autonomous due to motor setup

Ok, there is a lot of help in these threads, answers below are not all the ways you can do it.
1. If you can re do drive so moters turn the same way.
2.If you can't do that, use the dash board program, monitor under driver control to get values for speed you want and straight at the same time.
3. Add a gyro chip (search the treaeds for yaw rate or gyro)
4. Add Wheell or shaft encoders use them and negitive feed back
The last two require programing and working on the bot at a competition
#2 would be the fastest to emplement, but the least accruate.
We had a tank drive last year that would hardly trun on carpet, and with the drill moters driving it as you describe it would not go straight without cutting power to the motor turning clockwise as viewed from the back of the motor.
The drill motors are set up to drive screws in, so much more power and speed in the "tighten" direction.
Good luck
  #6   Spotlight this post!  
Unread 16-03-2004, 11:43
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Problems with Autonomous due to motor setup

actully even feedback is not the perfect solution in this case - closed loop feedback requires an errror condition ( or signal) to build up to a certain point before it makes a correction

so using either wheel encoders or a yaw rate sensor you will still see some error to one side, until the error signal is big enough to apply the needed correction

our bot has the same problem - we use a yaw rate sensor to stay on heading, and it drifts right about 10° over a 2 second period, (while the error signal is building up and appying more and more 'left' command) then it goes straight as an arrow

we tweaked the desired heading in the SW and got it down to about 5° - but you cant get rid of it completely - so even with our gyro we have to point our bot about 5° to the left of where we want it to actully go.

It took us a couple matches to get the 'aim' down - but after that we were dead on target 100% of the time.

so the really easy solution is to leave your bot alone and figure out where you need to point it so it ends up where you want it.
  #7   Spotlight this post!  
Unread 16-03-2004, 13:43
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Problems with Autonomous due to motor setup

We just did #1- at the begining of the season, the mech team figured out what motors went fastest in what direction. So we compensated in design.
  #8   Spotlight this post!  
Unread 16-03-2004, 13:49
JBabbie's Avatar
JBabbie JBabbie is offline
Registered User
#0201
 
Join Date: Mar 2004
Location: Michigan
Posts: 10
JBabbie is on a distinguished road
Re: Problems with Autonomous due to motor setup

the quickest and simplest solution is to give the PWM a different number, try 230 as aposed to 255 for the right motor to straighten out your auto mode
__________________
SCREAMTEAM-CLICKY!
  #9   Spotlight this post!  
Unread 16-03-2004, 13:52
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Problems with Autonomous due to motor setup

And never, ever set pwms to 255. always use 254 (Plus, with 0-254, 127 is actually center. If you don't believe me, make a number line, put a finger on 0 and 254, and start working your way to the center)
  #10   Spotlight this post!  
Unread 16-03-2004, 14:35
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Problems with Autonomous due to motor setup

Quote:
2.If you can't do that, use the dash board program, monitor under driver control to get values for speed you want and straight at the same time.
I like this idea - even easier would be to send your p1_x signal to the User output on the OI -then all you need to do is drive your bot so its going straight and look down and see how much 'left' input its taking to hold it.
  #11   Spotlight this post!  
Unread 16-03-2004, 14:38
Biff Biff is offline
Registered User
AKA: Tom Cooper
#1227 (Techno Gremlins)
Team Role: Mentor
 
Join Date: Jan 2004
Location: Grand Rapids MI
Posts: 214
Biff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the rough
Re: Problems with Autonomous due to motor setup

Quote:
Originally Posted by KenWittlief
I like this idea - even easier would be to send your p1_x signal to the User output on the OI -then all you need to do is drive your bot so its going straight and look down and see how much 'left' input its taking to hold it.
And I forgot do the testing on the "first" carpet that should help reduce the friction issues.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Future of Autonomous Mode FadyS. Programming 41 24-05-2004 19:45
A better autonomous method.. randomperson Programming 4 24-02-2004 18:02
Autonomous Program Names Venkatesh Programming 12 17-02-2004 10:25
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Autonomous Kill Switch UCGL_Guy Programming 8 15-01-2003 17:39


All times are GMT -5. The time now is 21:44.

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