Go to Post Okay, Okay, I officially apologize to the the entire country of Canada - Joe Johnson [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 26-02-2014, 08:54
OwenVanTiem OwenVanTiem is offline
Code Monkey
FRC #0453 (Rock Em Sock Em Robotics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Michigan
Posts: 5
OwenVanTiem is an unknown quantity at this point
Motors Only Work When Being Calibrated

We have been attempting to test code on our practice bot, but the left side motors only work when we are calibrating. On top of that, the left side motors are inverted when we calibrate the second motor. Right now we are stumped on what the problem could be. We ruled out code because the drive code hasnt been touched since it was written, and it worked fine until recently. We would really appreciate any help that can be provided.
  #2   Spotlight this post!  
Unread 26-02-2014, 09:15
cgmv123's Avatar
cgmv123 cgmv123 is online now
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,072
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Motors Only Work When Being Calibrated

Which motor controller are you using?
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

  #3   Spotlight this post!  
Unread 26-02-2014, 09:27
OwenVanTiem OwenVanTiem is offline
Code Monkey
FRC #0453 (Rock Em Sock Em Robotics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Michigan
Posts: 5
OwenVanTiem is an unknown quantity at this point
Re: Motors Only Work When Being Calibrated

We are using victors
  #4   Spotlight this post!  
Unread 26-02-2014, 09:31
Tem1514 Mentor's Avatar
Tem1514 Mentor Tem1514 Mentor is offline
Registered User
FRC #1514
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Toronto
Posts: 238
Tem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to behold
Re: Motors Only Work When Being Calibrated

You are holding down the cal button when performing the cal I hope.
  #5   Spotlight this post!  
Unread 26-02-2014, 09:33
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,736
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Motors Only Work When Being Calibrated

I'm going to spell out what I think your setup and observations are, then give you the problem and solution, assuming my understanding of the setup and observations are correct.

Setup: You have two motors going into a single gearbox to power each side of the robot. This would be for a normal "tank" drive robot, for example having 6 wheels on each side all chained together.

Observations:
- One side does not move when the code tells it to
- When calibrating the motor controllers, you see:
1. Calibrating controller "1" makes the wheels spin forward when you want them to go forward in the calibration
2. Calibrating controller "2" makes the wheels spin backwards when you want them to go forward in the calibration - ie it acts opposite of controller "1"

Is all of that correct? If so, then I've got another test for you. Unplug controller "2" and try driving. Does that side work as expected? Now, plug that controller back in and unplug controller "1" and try driving. Does that side work as expected?

I suspect you somehow got the motor leads "swapped" for controller "2". As a result, when you try driving forward on that side, motor "1" sees a +12V signal, while motor 2, with the leads swapped, seeings a -12V signal. The motors run against each other and stall in the gearbox. Unplug the motor leads from controller "2", swap them, and plug them back in.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #6   Spotlight this post!  
Unread 26-02-2014, 09:58
OwenVanTiem OwenVanTiem is offline
Code Monkey
FRC #0453 (Rock Em Sock Em Robotics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Michigan
Posts: 5
OwenVanTiem is an unknown quantity at this point
Re: Motors Only Work When Being Calibrated

Quote:
Originally Posted by Jon Stratis View Post
I'm going to spell out what I think your setup and observations are, then give you the problem and solution, assuming my understanding of the setup and observations are correct.

Setup: You have two motors going into a single gearbox to power each side of the robot. This would be for a normal "tank" drive robot, for example having 6 wheels on each side all chained together.

Observations:
- One side does not move when the code tells it to
- When calibrating the motor controllers, you see:
1. Calibrating controller "1" makes the wheels spin forward when you want them to go forward in the calibration
2. Calibrating controller "2" makes the wheels spin backwards when you want them to go forward in the calibration - ie it acts opposite of controller "1"

Is all of that correct? If so, then I've got another test for you. Unplug controller "2" and try driving. Does that side work as expected? Now, plug that controller back in and unplug controller "1" and try driving. Does that side work as expected?

I suspect you somehow got the motor leads "swapped" for controller "2". As a result, when you try driving forward on that side, motor "1" sees a +12V signal, while motor 2, with the leads swapped, seeings a -12V signal. The motors run against each other and stall in the gearbox. Unplug the motor leads from controller "2", swap them, and plug them back in.
We tried something similar, we unplugged 2 and tried driving, and it worked perfectly fine. We traced the leads, and they are all plugged in fine and everything is where it should be. For now I fixed the problem by inverting the motor in the code, which seems to make them both travel in the correct direction. We suspect that there is a problem with the victor but we cant be sure.
  #7   Spotlight this post!  
Unread 26-02-2014, 10:16
Calvin Hartley's Avatar
Calvin Hartley Calvin Hartley is offline
Registered User
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Aug 2012
Rookie Year: 2012
Location: Grand Rapids, Michigan
Posts: 513
Calvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud of
Re: Motors Only Work When Being Calibrated

I would just like to say that I accidentally read the title as "Mentors Only Work When Being Calibrated". Needless to say, I was quite intrigued, and then slightly disappointed.

Carry on.
__________________

FRC 4967 That ONE Team 2013-Present, Founder, CAD/Everything Mentor
FRC 2771 Code Red Robotics 2012 and 2013 Drive Team, 2014 Drive Coach, Executive Leadership
FLL Team member 2005-2010, LEGO In Paradise,
FLL Mentor 2009-Present Paradise Teams (nine teams)
FLL Coach 2014-Present - The Lightning Bugs



Gracious Professionalism isn't a set of rules to follow, it's an attitude.
  #8   Spotlight this post!  
Unread 26-02-2014, 11:12
mathking's Avatar
mathking mathking is offline
Coach/Faculty Advisor
AKA: Greg King
FRC #1014 (Dublin Robotics aka "Bad Robots")
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 1999
Location: Columbus, OH
Posts: 634
mathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond repute
Re: Motors Only Work When Being Calibrated

If it really is a problem with the Victor you really want to replace it. If something has gone wrong inside the speed controller to reverse the motor inputs it is damaged, something else could easily happen. Before you do that you should check the voltage going into and coming out of that Victor in order to make sure it is actually reversed. (In other words, make sure it is actually the Victor and not some other problem in wiring.)
__________________
Thank you Bad Robots for giving me the chance to coach this team.
Rookie All-Star Award: 2003 Buckeye
Engineering Inspiration Award: 2004 Pittsburgh, 2014 Crossroads
Chairman's Award: 2005 Pittsburgh, 2009 Buckeye, 2012 Queen City
Team Spirit Award: 2007 Buckeye, 2015 Queen City
Woodie Flowers Award: 2009 Buckeye
Dean's List Finalists: Phil Aufdencamp (2010), Lindsey Fox (2011), Kyle Torrico (2011), Alix Bernier (2013), Deepthi Thumuluri (2015)
Gracious Professionalism Award: 2013 Buckeye
Innovation in Controls Award: 2015 Pittsburgh
Event Finalists: 2012 CORI, 2016 Buckeye
  #9   Spotlight this post!  
Unread 26-02-2014, 11:15
DanielPlotas DanielPlotas is online now
Registered User
FRC #1984 (Raider Revolution Robotics)
Team Role: College Student
 
Join Date: Mar 2013
Rookie Year: 2012
Location: OP Kansas
Posts: 97
DanielPlotas will become famous soon enoughDanielPlotas will become famous soon enough
Re: Motors Only Work When Being Calibrated

Quote:
Originally Posted by Calvin Hartley View Post
I would just like to say that I accidentally read the title as "Mentors Only Work When Being Calibrated". Needless to say, I was quite intrigued, and then slightly disappointed.

Carry on.
me too, but i was thoroughly confused.
  #10   Spotlight this post!  
Unread 26-02-2014, 11:18
pntbll1313's Avatar
pntbll1313 pntbll1313 is online now
2052 Coach, Build/Electrical Mentor
AKA: Pete
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2007
Location: New Brighton, MN
Posts: 253
pntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud of
Re: Motors Only Work When Being Calibrated

Quote:
Originally Posted by Calvin Hartley View Post
I would just like to say that I accidentally read the title as "Mentors Only Work When Being Calibrated". Needless to say, I was quite intrigued, and then slightly disappointed.

Carry on.
I did the same thing. Maybe the title got changed from when I clicked it? Or maybe we're all just crazy since week 1 is so near (way more likely). In any case... Carry on
__________________
2016 (mentor/drive-coach)
Quarter-Finalist-Einstein, Winner-Carson Division Champs, Winner-10K Lakes, Chairman's Award-10K Lakes, Finalists-Lake Superior,
Winner-MSHSL Robotics Competition

2015 (mentor/drive-coach)
Finalists-10K Lakes, Finalists-Lake Superior, Finalist-MSHL Robotics Competition, Quarter-Finalist-Galileo Division Champs
2014 (mentor/drive-coach)
Winner-10K Lakes, Winner-Lake Superior Winner-MSHSL Robotics Competition, Quarter-Finalist-Galileo Division Champs
2013 (mentor/drive-coach)
Winner-10K Lakes, Winner-Lake Superior, Winner-MSHSL Robotics Competition, Quarter-Finalist-Newton Division Champs
2012 (mentor/drive-coach)
Finalists-Lake Superior, Semi-Finalist-MSHSL State Championship, Semi-Finalists at 10,000 Lakes
2008-2011 (college mentor)
2007 (driver)
Quarter Finalist-Milwaukee
  #11   Spotlight this post!  
Unread 26-02-2014, 11:54
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,560
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: Motors Only Work When Being Calibrated

Quote:
Originally Posted by OwenVanTiem View Post
We tried something similar, we unplugged 2 and tried driving, and it worked perfectly fine. We traced the leads, and they are all plugged in fine and everything is where it should be. For now I fixed the problem by inverting the motor in the code, which seems to make them both travel in the correct direction. We suspect that there is a problem with the victor but we cant be sure.
What motors are you using? If it's a motor where your team soldered wires, it's easy to get them backwards.
  #12   Spotlight this post!  
Unread 26-02-2014, 14:02
Calvin Hartley's Avatar
Calvin Hartley Calvin Hartley is offline
Registered User
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Aug 2012
Rookie Year: 2012
Location: Grand Rapids, Michigan
Posts: 513
Calvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud ofCalvin Hartley has much to be proud of
Re: Motors Only Work When Being Calibrated

Quote:
Originally Posted by pntbll1313 View Post
I did the same thing. Maybe the title got changed from when I clicked it? Or maybe we're all just crazy since week 1 is so near (way more likely). In any case... Carry on
I don't think the title was ever changed. After my mistake I realized that I had already seen the thread before, but without the confusion.

I think the fact that we are all crazy is far more probable. I'm glad to know that I am not alone in this.
__________________

FRC 4967 That ONE Team 2013-Present, Founder, CAD/Everything Mentor
FRC 2771 Code Red Robotics 2012 and 2013 Drive Team, 2014 Drive Coach, Executive Leadership
FLL Team member 2005-2010, LEGO In Paradise,
FLL Mentor 2009-Present Paradise Teams (nine teams)
FLL Coach 2014-Present - The Lightning Bugs



Gracious Professionalism isn't a set of rules to follow, it's an attitude.

Last edited by Calvin Hartley : 26-02-2014 at 14:05.
  #13   Spotlight this post!  
Unread 26-02-2014, 14:18
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Motors Only Work When Being Calibrated

Quote:
Originally Posted by OwenVanTiem View Post
We tried something similar, we unplugged 2 and tried driving, and it worked perfectly fine. We traced the leads, and they are all plugged in fine and everything is where it should be. For now I fixed the problem by inverting the motor in the code, which seems to make them both travel in the correct direction. We suspect that there is a problem with the victor but we cant be sure.
Your Victor may be fine. The direction a motor spins when apply 12V on the + side and ground on the - side is dependant upon how the motor is wound internally.

Not all motors from the same manufacture are wound in the same direction. This could mean two separate motors from the same manufacture can spin in opposite directions when applied voltage in the same orientation.

We have personally notice this on CIM motors. You should make it a habbit to check each motors direction of travel off board and mark them, especially when placing two or more motors in the same gearbox.

It sounds like your problem was just driving both motors into each other causing them to fight. I don't think your victor is broken, but you can check it by unplugging the motor and reading the voltage out of it as you scale the sticks. The voltage should move near linearly from 0 to full battery voltage.

Swapping the boolean value in code, is exactly what you should have done to rectify your situation, so don't think you did a quick fix, it was the correct way.

Hope this helps,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
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 23:12.

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