Go to Post Right now, it drives around....hopefully tomorrow it will do a LOT more! - MrForbes [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 10-02-2015, 18:25
robinspi's Avatar
robinspi robinspi is offline
Design Captain
AKA: Philip
FRC #5450 (SHREC)
Team Role: CAD
 
Join Date: Feb 2015
Rookie Year: 2015
Location: St Helens OR
Posts: 8
robinspi is an unknown quantity at this point
[FRC] [problem] Motor issues...

I hate the ambiguous topic, but anyhow, here is the issue:

Motors spin one way, not easily the other. I looked through the program, and there doesn't seem to be any problems in there. (Though I will say that we are using a custom build PID system). We are using Talon motor controllers and using some VEX motors.
So, the motor will spin one direction perfectly fine, but when we switch the direction, the motors slowly move in that direction, slowly, but very choppily.

Any explanations? If none do arise, then I will probably go look in the PID loop of the program and look through that with the author. Also, if you need anything more cleared up, I would be happy to answer those questions.

Edit: Now the motors are not moving at all. We guessed that the joystick might not work, but the driver station is still reading the input from those buttons.

Edit: We are also using C++ as our language (with the latest from FRC, as we are a rookie team)

--robinspi

Last edited by robinspi : 10-02-2015 at 19:47.
  #2   Spotlight this post!  
Unread 10-02-2015, 18:57
TikiTech's Avatar
TikiTech TikiTech is offline
Mr. H
FRC #3880 (Tiki Techs)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2011
Location: Kailua-Kona, Hawaii
Posts: 251
TikiTech is just really niceTikiTech is just really niceTikiTech is just really niceTikiTech is just really niceTikiTech is just really nice
Re: [FRC] [problem] Motor issues...

I would start off and load a simple code without PID loops to verify the error.

Have you tried to recalibrate the motor controller?

These are a few easy things to try.

I will talk to my programming cadre later today. We had some issues with twitching motors once we added more than one set of motor control.

Was an issue with LabVIEW code and was found by creating simple portions of code and adding more portions until the error was found.

Go simple and start added one element at a time.


Good luck!

Aloha
__________________
Team 3880 - "Tiki Techs" "Mr. H" - Tiki Technologies Coach / Mentor
Kealakehe High School Robotics - Kailua-Kona, Hawaii
__________________________________________________ _____________________________
2016 Division TBD | Orlando Regional Engineering Inspiration Award | Hawaii Regional Chairman's Award & Finalist & Woodie Flowers Finalist
2015 Carson Division | Silicon Valley Regional Engineering Inspiration Award | HI Regional Regional Winners & Engineering Inspiration & Deans List Finalist
2014 Newton Division | Hawaii Regional Engineering Inspiration Award & Deans List Finalist
2013 Newton Division | Inland Empire Regional Regional Chairman's & Creativity Award | Los Angles Regional Engineering Inspiration Award | | HI Regional
2012 Curie Division | Hawaii Regional Engineering Inspiration Award
2011 Newton Division | Hawaii Regional Regional Winners & Industrial Design Award
.
__________________________________________________ _____________________________
  #3   Spotlight this post!  
Unread 10-02-2015, 20:04
robinspi's Avatar
robinspi robinspi is offline
Design Captain
AKA: Philip
FRC #5450 (SHREC)
Team Role: CAD
 
Join Date: Feb 2015
Rookie Year: 2015
Location: St Helens OR
Posts: 8
robinspi is an unknown quantity at this point
Re: [FRC] [problem] Motor issues...

Apologies for not mentioning earlier, but we are using C++. We have been in FTC for the past couple years, and we decided to move to the big league. Also, we have been practicing with PID for a while, and I think that it wouldn't be in there.

We'll try recalibrating the motors.
  #4   Spotlight this post!  
Unread 10-02-2015, 20:24
Nathan Streeter's Avatar
Nathan Streeter Nathan Streeter is offline
FIRST Fan(atic)
FRC #1519 (Mechanical MAYHEM)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Merrimack, NH
Posts: 667
Nathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond repute
Re: [FRC] [problem] Motor issues...

Is the motor hooked up to a gearbox? to a mechanism?
__________________
"If you want to build a ship, don't drum up men to gather wood, divide the work, or give orders. Instead, teach them to yearn for the vast and endless sea." - Antoine de Saint-Exupery
"The fight is won or lost far away from witnesses - behind the lines, in the gym, and out there on the road, long before I dance under those lights." - Muhammad Ali
"Simplicity is the ultimate sophistication." - Leonardo da Vinci


Student: 2006-2010 (#1519)
Mentor: 2011-Present (#1519)


  #5   Spotlight this post!  
Unread 10-02-2015, 20:52
robinspi's Avatar
robinspi robinspi is offline
Design Captain
AKA: Philip
FRC #5450 (SHREC)
Team Role: CAD
 
Join Date: Feb 2015
Rookie Year: 2015
Location: St Helens OR
Posts: 8
robinspi is an unknown quantity at this point
Re: [FRC] [problem] Motor issues...

Yes, everything is hooked up correctly. As posted, it does like to run one direction, but not so smoothly in the other. Also, the x-box controller buttons are being read in the Control station, so it doesn't appear to be a problem with the joysticks. I will see about the calibrations tomorrow.
  #6   Spotlight this post!  
Unread 10-02-2015, 21:15
Nathan Streeter's Avatar
Nathan Streeter Nathan Streeter is offline
FIRST Fan(atic)
FRC #1519 (Mechanical MAYHEM)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Merrimack, NH
Posts: 667
Nathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond reputeNathan Streeter has a reputation beyond repute
Re: [FRC] [problem] Motor issues...

Quote:
Originally Posted by robinspi View Post
Yes, everything is hooked up correctly. As posted, it does like to run one direction, but not so smoothly in the other. Also, the x-box controller buttons are being read in the Control station, so it doesn't appear to be a problem with the joysticks. I will see about the calibrations tomorrow.
When I asked if it was hooked up, to a gearbox (and mechanism), I was wondering if that could also be the source of the problem... what gearbox is it? What's hooked up to it? Perhaps post a picture of your setup.

Have you tried swapping the polarity on the motor wires (AFTER the speed controller!) to see if it follows the mechanical system or if it follows the code? Perhaps also try a similar version of this by swapping the polarity of the code. You could be sending conflicting values in separate lines of code.
__________________
"If you want to build a ship, don't drum up men to gather wood, divide the work, or give orders. Instead, teach them to yearn for the vast and endless sea." - Antoine de Saint-Exupery
"The fight is won or lost far away from witnesses - behind the lines, in the gym, and out there on the road, long before I dance under those lights." - Muhammad Ali
"Simplicity is the ultimate sophistication." - Leonardo da Vinci


Student: 2006-2010 (#1519)
Mentor: 2011-Present (#1519)


  #7   Spotlight this post!  
Unread 11-02-2015, 10:10
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,625
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: [FRC] [problem] Motor issues...

I'm with Nathan - this may be a case where you're in a mechanical stall condition due to binding, change in surface properties, over-tightening of bolts on a gearbox, or other such type of nuance that isn't obvious. It will become obvious once the motor catches on fire (I kid!), but until then could you post a picture or describe the mechanism?
  #8   Spotlight this post!  
Unread 11-02-2015, 10:43
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,899
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: [FRC] [problem] Motor issues...

Write the output to motor controllers to smart dashboard. Easy way of seeing if it is hardware or software. What I am saying? It is always software.
__________________
If you don't know what you should hook up then you should read a data sheet
  #9   Spotlight this post!  
Unread 11-02-2015, 11:13
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,270
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: [FRC] [problem] Motor issues...

Quote:
Originally Posted by robinspi View Post
Yes, everything is hooked up correctly. As posted, it does like to run one direction, but not so smoothly in the other. Also, the x-box controller buttons are being read in the Control station, so it doesn't appear to be a problem with the joysticks. I will see about the calibrations tomorrow.
A Simply process for tracking down the cause.

1.) Unhook the motor from the speed controller, and connect directly to a battery. Run the motor in both directions. If the problem occurs then the issue is mechanical, and you need to evaluate the mechanics of the system.

If the problem does not occur in 1.)

2.) Hook the motor up to the speed controller, and connect the controller to PWM 1, and run the default tank code. If the problem occurs then the issue is in the custom code, if it does not then the issue is your speed controller.

If the problem does not occur in 1 or 2 then the issue is in the code. start stripping functionality out until you can track it down.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #10   Spotlight this post!  
Unread 11-02-2015, 13:54
Addison4300's Avatar
Addison4300 Addison4300 is offline
FRC is love, FRC is life
AKA: Addison
FRC #4300 (The Lion Kings)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2013
Location: McKinney, Texas
Posts: 142
Addison4300 is on a distinguished road
Re: [FRC] [problem] Motor issues...

Quote:
Originally Posted by robinspi View Post
Apologies for not mentioning earlier, but we are using C++. We have been in FTC for the past couple years, and we decided to move to the big league. Also, we have been practicing with PID for a while, and I think that it wouldn't be in there.

We'll try recalibrating the motors.
Even if you don't think it would be in there, it never hurts to make sure. Sometimes problems come from placing you think are flawless
  #11   Spotlight this post!  
Unread 11-02-2015, 14:04
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,713
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: [FRC] [problem] Motor issues...

Also, check the status lights of the motor controllers, are both motor controllers attempting to drive and are they driving in the same direction.
  #12   Spotlight this post!  
Unread 11-02-2015, 14:14
cgmv123's Avatar
cgmv123 cgmv123 is offline
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: [FRC] [problem] Motor issues...

Quote:
Originally Posted by notmattlythgoe View Post
are they driving in the same direction.
Most drive trains require motors on opposite sides to move in opposite directions. The OP didn't say what the motors were driving.
__________________
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)

  #13   Spotlight this post!  
Unread 11-02-2015, 14:21
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,713
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: [FRC] [problem] Motor issues...

Quote:
Originally Posted by cgmv123 View Post
Most drive trains require motors on opposite sides to move in opposite directions. The OP didn't say what the motors were driving.
Correct, for some reason I was under the assumption that it was 2 motors mechanically hooked together.
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 22:52.

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