Go to Post edit: laptop. yeah as a programmer to not put this in I should be taken out the back and "decompiled". - Stuart [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 11-02-2014, 08:23
Hieb Hieb is offline
Registered User
no team
Team Role: Teacher
 
Join Date: Mar 2004
Rookie Year: 2004
Location: St. Louis, MO
Posts: 125
Hieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to behold
Pulsing motors

I'm hoping someone can give me an idea of where to start on troubleshooting a problem with our robot. It has just been in the last week that we've had the opportunity to test our code on the robot and after several failed attempts we finally have limited driving capability. Unfortunately the motors seem to be pulsing when the joystick is pushed to full. To isolate electrical problems we've pulled all the circuit breakers but 1 at a time and it occurs for each motor. To isolate programming issues we deployed a generic arcade drive program with no modifications and it still pulses. Any suggestions on where we could look next?

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2014, 08:26
TheKeeg's Avatar
TheKeeg TheKeeg is offline
Michigan Tech Engineering
AKA: Keegan Harrington
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Jun 2012
Rookie Year: 2013
Location: Ortonville, Michigan
Posts: 77
TheKeeg has much to be proud ofTheKeeg has much to be proud ofTheKeeg has much to be proud ofTheKeeg has much to be proud ofTheKeeg has much to be proud ofTheKeeg has much to be proud ofTheKeeg has much to be proud ofTheKeeg has much to be proud ofTheKeeg has much to be proud of
Re: Pulsing motors

Quote:
Originally Posted by Hieb View Post
I'm hoping someone can give me an idea of where to start on troubleshooting a problem with our robot. It has just been in the last week that we've had the opportunity to test our code on the robot and after several failed attempts we finally have limited driving capability. Unfortunately the motors seem to be pulsing when the joystick is pushed to full. To isolate electrical problems we've pulled all the circuit breakers but 1 at a time and it occurs for each motor. To isolate programming issues we deployed a generic arcade drive program with no modifications and it still pulses. Any suggestions on where we could look next?

Thanks
I am more of a mechanical guy, but this sounds like a PWM problem. I will ask my programming friend what he thinks.
__________________

Keegan Harrington
Truck Town Thunder
2013-2014: Mechanical Design

"Infinity: you empty out all of the coffee and there is still more orange juice"
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2014, 08:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,844
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Pulsing motors

Check the Driver Station log to see if that sheds some light. Run the robot with the problem a few minutes, then look at the Driver Station Charts tab and in the lower right you'll see "Launch Viewer". You'll get a popup viewer with a list of logs by date to click on.
Driver Station Log File Viewer

Are the Driver Station Diagnostics or status lights showing any error messages?

I'd try the generic arcade drive, but with a different computer running the Driver Station. In case the computer is causing the pulsing action.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-02-2014 at 08:38.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2014, 08:55
ASmith1675's Avatar
ASmith1675 ASmith1675 is offline
Mechanical/Electrical/Scouting
AKA: Adam Smith
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2008
Rookie Year: 2005
Location: Milwaukee, WI
Posts: 48
ASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to behold
Re: Pulsing motors

Is the motor only pulsing when you push the stick to 100%, or is it just the most noticeable at that point?

Usually the first thing I think of when I see pulsing motors is that the code may be writing to the motor in multiple places. If every scan the motor is set to 0% in one place, and then 100% in another it will rapidly toggle between the two.

When things are going not as expected I always recommend to our programmers to put some print statements in the code to show what the program is doing. (In this case, I'd probably want to print out the joystick input and the output to the motor controllers) That way you can narrow down which section of code might be causing the issue. If the output of the code is acting as expected, then you know it is likely an electrical problem.

Hope this provides some insight. Good luck.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2014, 09:32
E Dawg E Dawg is offline
... is not done with FRC yet.
AKA: Ethan
FRC #0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Fort Collins, CO
Posts: 267
E Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud of
Re: Pulsing motors

What motor controllers are you using?
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2014, 09:36
arizonafoxx's Avatar
arizonafoxx arizonafoxx is offline
Registered User
FRC #4395 (T-Rex)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Fort Mill, SC
Posts: 96
arizonafoxx is an unknown quantity at this point
Re: Pulsing motors

What language are you programming in? Can you post your basic arcade code?
Reply With Quote
  #7   Spotlight this post!  
Unread 11-02-2014, 10:51
ice.berg's Avatar
ice.berg ice.berg is offline
Strategy Mentor & Drive Team Coach
AKA: Alex Bergal
no team
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2006
Location: Duluth MN
Posts: 149
ice.berg has a spectacular aura aboutice.berg has a spectacular aura about
Re: Pulsing motors

Our team had a problem that sounded like this, what we found is that the talons that the motors were hooked up to were not properly calibrated.
To fix this we calibrated them which is a super simple 60 second process that can be found here
This stopped the pulsing/creep we found in our motors.
Hope this helps.
__________________
TEAM 2512 DULUTH EAST DAREDEVILS
'12-'15: Strategy and Build Mentor
'15 Hopper Division Champions and Einstein Finalists thanks 987, 2826, 4265
'15 Minnesota State Champions thanks 3130 and 4215
'15 Northern Lights Chairmans Winner and Regional Finalists & Central Illinois Regional Finalists
'10-'11:Build Captain
'13 Midwest Champion '12 North Star Champion '11 Lake Superior Champion

Website Facebook Twitter Youtube Flickr
Reply With Quote
  #8   Spotlight this post!  
Unread 11-02-2014, 11:55
Hieb Hieb is offline
Registered User
no team
Team Role: Teacher
 
Join Date: Mar 2004
Rookie Year: 2004
Location: St. Louis, MO
Posts: 125
Hieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to behold
Re: Pulsing motors

Thank you all for the suggestions. I decided to do two things - I started with fresh code and I unplugged all of the pwm's and re-added them 1 at a time. My 4 drive motors are now operating properly without pulsing. I wasn't able to isolate the exact cause of the problem, but I have a functioning, drivable robot and can now begin working in additional functionality (compressor, launcher, grippers, etc.).

Thanks again.
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 18:34.

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