Go to Post and as you can see, all rumor threads lead to silly, loads of silly - 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 02-02-2005, 13:48
jazzsaxman1988's Avatar
jazzsaxman1988 jazzsaxman1988 is offline
Registered User
AKA: Hal
#0404 (Distant Rage)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Dinwiddie. VA
Posts: 9
jazzsaxman1988 is an unknown quantity at this point
Send a message via AIM to jazzsaxman1988 Send a message via MSN to jazzsaxman1988 Send a message via Yahoo to jazzsaxman1988
Annoying motor problems...

With the default code, the polarity of the motors needed to be reversed, so I scripted a function that reverses the value of the PWM's. After I did this, I ran it on the bot and I encountered the most curious problem... one set of wheels moves faster than the other. This is my first year with FIRST, and I'm doing about 95% of the coding, so I'm a little lost... I have an idea of how to fix it, but any ideas from the rest of civilization would be appreciated...
  #2   Spotlight this post!  
Unread 02-02-2005, 13:54
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: Annoying motor problems...

First of all, if you just want to reverse the polarity of the motors, you can just switch the output wires on the victor.

The motors spinning at different speeds is likely unrelated to your code. How do you know they are spinning at different speeds? Are your joysticks calibrated correctly? Have you checked both drivetrains for unequal sources of loss?
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #3   Spotlight this post!  
Unread 02-02-2005, 13:55
JoelP JoelP is offline
whats the P for? Pazhayampallil
FRC #1155 (Bronx Science Sciborgs)
Team Role: Leadership
 
Join Date: Dec 2004
Rookie Year: 2005
Location: bronx, new york
Posts: 62
JoelP is a jewel in the roughJoelP is a jewel in the roughJoelP is a jewel in the rough
Send a message via AIM to JoelP
Re: Annoying motor problems...

instead of reversing the PWM signals in the code, you could just reverse the polarity on the motors.

[edit] ahh ya beat me [/edit]
  #4   Spotlight this post!  
Unread 02-02-2005, 14:05
ttedrow's Avatar
ttedrow ttedrow is offline
Herding electrons
AKA: Tim Tedrow
FRC #0281 (EnTech)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Greenville, SC
Posts: 165
ttedrow will become famous soon enoughttedrow will become famous soon enough
Re: Annoying motor problems...

Also, you may want to read up on motor controller calibration. Here is the link

http://www.ifirobotics.com/docs/ifi-...nual-dec04.pdf
__________________
Sr. Design Engineer
Caterpillar Inc.
Greenville, SC

KD4EGM

FRC 281 Greenvillains
Infected with the FIRST virus in 2000

Yes, Chute Door!!!
  #5   Spotlight this post!  
Unread 02-02-2005, 14:40
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,690
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Annoying motor problems...

Ok, so the motors spinning at different speeds is utterly unrelated to programming, and almost definitely has nothing to do with the Victor calibration. The real issue is that all the motors FIRST gives us are wound with a lead angle of some amount. What it boils down to is that they have a preferred direction of rototation. So a given motor will run faster clockwise than counterclockwise. See this for ideas to compensate:
Robot Drifting
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #6   Spotlight this post!  
Unread 02-02-2005, 14:58
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,515
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Re: Annoying motor problems...

Before we get too far into this, WHICH MOTOR are you talking about?
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
  #7   Spotlight this post!  
Unread 02-02-2005, 16:07
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,574
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Annoying motor problems...

Quote:
Originally Posted by Kevin Sevcik
Ok, so the motors spinning at different speeds is utterly unrelated to programming, and almost definitely has nothing to do with the Victor calibration. The real issue is that all the motors FIRST gives us are wound with a lead angle of some amount. What it boils down to is that they have a preferred direction of rototation. So a given motor will run faster clockwise than counterclockwise. See this for ideas to compensate:
Robot Drifting
Pages 8 and 9 of the FIRST Guidelines, tips, & good practices cover Motor Bias. There it states that there is no inherant bias in the windings of the CIM motor.



There will always be a few % difference between different motors. There can be a few more % in the gearbox and more from the chain tension. Weight distribution can cause the robot to be biased to one side as well. Poor wire connections can cause it as well. You should check all these. Even in the best case, it won't go perfectly straight (although the longer the wheelbase, the straighter). You can play with all of the above things to try and make it better, though.
  #8   Spotlight this post!  
Unread 03-02-2005, 08:42
jazzsaxman1988's Avatar
jazzsaxman1988 jazzsaxman1988 is offline
Registered User
AKA: Hal
#0404 (Distant Rage)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Dinwiddie. VA
Posts: 9
jazzsaxman1988 is an unknown quantity at this point
Send a message via AIM to jazzsaxman1988 Send a message via MSN to jazzsaxman1988 Send a message via Yahoo to jazzsaxman1988
Re: Annoying motor problems...

thanks guys, I got the problem fixed... it was electrical, the speed controllers were different, 1 new and 3 old, and the team didn't calibrate them together... I'm about ready to smack them...
__________________
So he was standing there, surrounded by sinners, blasphemers, and the devil himself, and he thought to himself, "Well, no one's perfect..."
  #9   Spotlight this post!  
Unread 03-02-2005, 08:49
jazzsaxman1988's Avatar
jazzsaxman1988 jazzsaxman1988 is offline
Registered User
AKA: Hal
#0404 (Distant Rage)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Dinwiddie. VA
Posts: 9
jazzsaxman1988 is an unknown quantity at this point
Send a message via AIM to jazzsaxman1988 Send a message via MSN to jazzsaxman1988 Send a message via Yahoo to jazzsaxman1988
Re: Annoying motor problems...

thanks guys, I got the problem fixed... it was electrical, the speed controllers were different, 1 new and 3 old, and the team didn't calibrate them together... I'm about ready to smack them...
__________________
So he was standing there, surrounded by sinners, blasphemers, and the devil himself, and he thought to himself, "Well, no one's perfect..."
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
VERY annoying problem with AutoCad shoman24v Inventor 4 30-11-2004 11:04
Annoying Private Message Pop-Up Brandon Martus CD Forum Support 6 10-03-2004 22:57
Gyros.. how annoying! randomperson Programming 3 12-02-2003 21:54
Anyone else get those annoying virus warnings? DaveO'B365 Chit-Chat 6 05-04-2002 05:06
Annoying People Are Bad Thread (Post Complaints Here!) Joe Matt Chit-Chat 20 15-02-2002 23:23


All times are GMT -5. The time now is 17: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