Go to Post "If you can't hurdle, you can't win." "Remember to practice your obnoxious amateurism." . - dlavery [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-01-2013, 16:37
mattiej's Avatar
mattiej mattiej is offline
Programmer Guy
FRC #3413 (Mad Cows)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Coppell Texas
Posts: 54
mattiej is an unknown quantity at this point
Open four motors: Victor Problem

We have found a problem with the open four motors for the victor motor controllers. Whenever we use that vi, our motors will not run correctly. If we instantiated them as jaguars, they do. (by not working correctly, the sometimes stay at the last speed they were at and the safety config doesn't kick in). Sometimes randomly it will give off a -44061 error code. I removed all unnecessary code, including all the camera stuff and even the periodic tasks and vision vi (from robot main). I still have this issue. We also tried new batteries and checked all of the connections. What are we doing wrong?
__________________


Man pretending to be interested: "So how does this robot of yours work?"
Me tired of man pretending to be interested: "Magic. And Purple Yetis."
  #2   Spotlight this post!  
Unread 16-01-2013, 21:39
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: Open four motors: Victor Problem

You say you checked "all the connections", but you don't say which those are.

For example, is your Digital Sidecar being powered from an output protected by a 20A breaker on the Power Distribution Board?
  #3   Spotlight this post!  
Unread 17-01-2013, 09:19
mattiej's Avatar
mattiej mattiej is offline
Programmer Guy
FRC #3413 (Mad Cows)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Coppell Texas
Posts: 54
mattiej is an unknown quantity at this point
Re: Open four motors: Victor Problem

The power connection to the sidecar is connected with a 20 amp breaker. The pwm cables are in the correct ports with the signal inside. They are hooked up to the victors with the black cable oriented inwards. The victors do receive power and signal, but when the motors stick, the victors lose connection ( the ones that aren't sticking start blinking).
__________________


Man pretending to be interested: "So how does this robot of yours work?"
Me tired of man pretending to be interested: "Magic. And Purple Yetis."
  #4   Spotlight this post!  
Unread 17-01-2013, 10:16
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,554
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Open four motors: Victor Problem

Can you explain what 'motors stick' means?
  #5   Spotlight this post!  
Unread 17-01-2013, 10:39
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: Open four motors: Victor Problem

Under what conditions do the motors "stick"? Can you reproduce it reliably? Does the system recover and work properly again, even if only temporarily?

When you say "stick", what do you mean?



Here's a stab in the dark: if you tell the robot to spin clockwise, does it break? If so, which motors "stick" and which ones lose signal? How about if you tell it to spin counterclockwise?
  #6   Spotlight this post!  
Unread 17-01-2013, 12:04
mattiej's Avatar
mattiej mattiej is offline
Programmer Guy
FRC #3413 (Mad Cows)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Coppell Texas
Posts: 54
mattiej is an unknown quantity at this point
Re: Open four motors: Victor Problem

Quote:
Originally Posted by Alan Anderson View Post
Under what conditions do the motors "stick"? Can you reproduce it reliably? Does the system recover and work properly again, even if only temporarily?

When you say "stick", what do you mean?



Here's a stab in the dark: if you tell the robot to spin clockwise, does it break? If so, which motors "stick" and which ones lose signal? How about if you tell it to spin counterclockwise?
The motors "stick" at what seem to be random points, whether the robot is driving or standing still. We could reproduce it every test, but not by doing something. They just happened (but sometimes it did seem like moving the joystick caused it, but that was just because you can see it best in those situations).

Sorry! Stick is a term we like to use. Stick means the motor freezes at an output when it isn't supposed to. Our victors would be either showing disconnected or driving the motors when the joystick was at a neutral state.

We are using the mecanum code, and all we do is pass the joystick axis values into the x, y, and rotation. Not sure what you mean by changing the spin?
__________________


Man pretending to be interested: "So how does this robot of yours work?"
Me tired of man pretending to be interested: "Magic. And Purple Yetis."
  #7   Spotlight this post!  
Unread 17-01-2013, 12:36
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: Open four motors: Victor Problem

Quote:
Originally Posted by mattiej View Post
We could reproduce it every test, but not by doing something. They just happened (but sometimes it did seem like moving the joystick caused it, but that was just because you can see it best in those situations).
You can reproduce it, but not by doing something? I don't follow that at all. It sounds like it's occurring at random, and there isn't anything you can do to make it happen.

Quote:
Sorry! Stick is a term we like to use. Stick means the motor freezes at an output when it isn't supposed to.
A motor sticking/freezing seems like a mechanical issue. When it happens, can you turn the motor by hand (after disconnecting power, of course)?

Quote:
Our victors would be either showing disconnected or driving the motors when the joystick was at a neutral state.
Wait, what? Can you verify that the joystick was indeed commanding neutral but the cRIO was telling the motors to move? Look at the Dashboard display to see what the joystick is being read as, and what the motor output PWM values are being set to. But I'm lost -- I thought the problem was the motors freezing when they were supposed to be moving, not the other way around.

Quote:
We are using the mecanum code, and all we do is pass the joystick axis values into the x, y, and rotation. Not sure what you mean by changing the spin?
Spin is the same thing as rotate. Command the robot to rotate to the left and see if the problem occurs more or less often. Then command it to rotate to the right.
  #8   Spotlight this post!  
Unread 17-01-2013, 13:22
mattiej's Avatar
mattiej mattiej is offline
Programmer Guy
FRC #3413 (Mad Cows)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Coppell Texas
Posts: 54
mattiej is an unknown quantity at this point
Re: Open four motors: Victor Problem

Thanks for all the help, but we figured out the problem. For some reason, whenever a value grater than ~.25 was passed to the mecanum block (which, while being positive, is actually backwards), the robot would drop communication. We are simply placing a limit on the value being passed and that solves all the problems.
__________________


Man pretending to be interested: "So how does this robot of yours work?"
Me tired of man pretending to be interested: "Magic. And Purple Yetis."
  #9   Spotlight this post!  
Unread 17-01-2013, 13:31
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Open four motors: Victor Problem

Quote:
Originally Posted by mattiej View Post
Thanks for all the help, but we figured out the problem. For some reason, whenever a value grater than ~.25 was passed to the mecanum block (which, while being positive, is actually backwards), the robot would drop communication. We are simply placing a limit on the value being passed and that solves all the problems.
Unless you understand why this is happening you did not figure out the problem.

You put a band-aid on the problem.


  #10   Spotlight this post!  
Unread 17-01-2013, 13:40
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: Open four motors: Victor Problem

Quote:
Originally Posted by mattiej View Post
For some reason, whenever a value grater than ~.25 was passed to the mecanum block (which, while being positive, is actually backwards), the robot would drop communication.
You keep using ambiguous language, and it's keeping me from helping you as much as I would like.

When you say "drop communication", do you mean the Driver Station would lose contact with the robot and the "Communication" indicator would change from green to red? Or do you mean the Victors would start blinking to indicate no PWM signal?

If it's just the Victors that are affected, then the symptom points to a specific cause: your Digital Sidecar is not receiving 12 volt power correctly.
  #11   Spotlight this post!  
Unread 17-01-2013, 14:30
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: 239
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: Open four motors: Victor Problem

Alan just trying to add my 2 cents that might help.

They said they are using the 'mecanum code'. Does that code require the gyro to be installed and could that be causing the system to try and move without command input?
  #12   Spotlight this post!  
Unread 17-01-2013, 14:43
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,906
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: Open four motors: Victor Problem

No gyro is required. That's an optional input for field-centric control.

Their symptoms point to a power/wiring problem.
It's hard to tell without teaching them to properly read the staus lights and messages.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-01-2013 at 14:48.
  #13   Spotlight this post!  
Unread 17-01-2013, 14:50
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: Open four motors: Victor Problem

Quote:
Originally Posted by Tem1514 Mentor View Post
They said they are using the 'mecanum code'. Does that code require the gyro to be installed
Nope.

Quote:
and could that be causing the system to try and move without command input?
Nope. Connecting the Gyro Angle input to the Mecanum drive block just permits a coordinate rotation on the X and Y joystick inputs, so "forward" will change based on the robot heading. Commanding no motion will still be no motion.
  #14   Spotlight this post!  
Unread 20-01-2013, 11:57
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
no team
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Austin, TX
Posts: 1,127
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Open four motors: Victor Problem

Drive motors will pull the most current on your robot.

I see you as having two problems.
  1. Resistance through the main power input to the PD Board
  2. Bridge converter is not plugged into the boosted 12V output.

1. Driving the drive motors at 25% output shouldn't drop the battery voltage enough to cause the 12V-to-5V converter to drop out. However, it doesn't take much. Looking at AndyMark, the converter has a voltage input range from 10-30VDC. Having your battery voltage drop below 10V to cause the Dlink's voltage supply to droop below 5V means you either have a loose connection, bad breaker, or a bad battery. This is assuming you're using a charged battery.

2. If you're ever dropping connection because the Dlink resets, then you don't have the 12V-to-5V converter plugged into the boosted 12V output.

Follow the steps on ScreenStepsLive.
__________________
Taking a break from mentoring for a few years. (Is that allowed?!?)

Controls Mentor
@rnazaretian

Previous teams:
Team Fusion, FRC 364
Garnet Squadron, FRC 4901
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 02:24.

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