Go to Post quick everyone find everything in the whole world that sells for $125 so we can get an edge on our building 2 days before kick off.....ready...go! - Greg Needel [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 09-02-2012, 21:23
CRLS97 CRLS97 is offline
Registered User
FRC #0097
 
Join Date: Jan 2011
Location: Cambridge
Posts: 28
CRLS97 is an unknown quantity at this point
Random Signal

Hey CD,

When I enable our robot,

every 15-20seconds or so (its random), our Drive motor controllers (victors) receive a signal and the robot makes a click noise (from the motor getting that tiny signal). Sometimes it happens when I slow down our shooter and bring it to a stop and for some reason the drive motors get a signal. I've looked through the code many times and there is nothing controlling PWM 1 and 2 where are drive controllers are connected to but Teleop.vi where the default arcade drive is. Any idea why these victors would detect some itsy signal every now and then?

I put a probe while running it labview on the joystick axis values and even sometimes when its 0, it'll still do a jerk without actually moving the robot from its place.

Any help appreciated!
  #2   Spotlight this post!  
Unread 09-02-2012, 21:43
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Random Signal

Can you describe what exactly this signal is? (i.e. how do the Victors respond, what color does the LED turn)

I assume you've checked your DB37 for proper assembly, but if not, check that immediately. Make sure to check for shorts - is your cRIO (and camera, if you have one) electrically isolated from the frame?
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #3   Spotlight this post!  
Unread 09-02-2012, 21:47
CRLS97 CRLS97 is offline
Registered User
FRC #0097
 
Join Date: Jan 2011
Location: Cambridge
Posts: 28
CRLS97 is an unknown quantity at this point
Re: Random Signal

^ yes, everything is electrically isolated from the frame. I checked this a few times and also did the ground test on the robot frame (in as segments as I could).

Also regarding the DB37 cable, we decided to use the round one from previous years.

I don't remember the exact patter the LED signal gives since I won't have access to the bot til tomorrow, but from what I do remember, the blink pattern changes to exactly how it would be if I was to actually drive the robot with the joystick.
  #4   Spotlight this post!  
Unread 09-02-2012, 22:05
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Random Signal

Quote:
Originally Posted by CRLS97 View Post
Also regarding the DB37 cable, we decided to use the round one from previous years.
Bizarrely, FRC has managed to find ribbon cables that violate the laws of physics; some people have noted differences in performance between the old cable and the new one. While I can't imagine why this happens, you might want to try swapping out the cable with the new one to see if that solves your problem.

Quote:
Originally Posted by CRLS97 View Post
I don't remember the exact patter the LED signal gives since I won't have access to the bot til tomorrow, but from what I do remember, the blink pattern changes to exactly how it would be if I was to actually drive the robot with the joystick.
There should be no "blinking" whatsoever if you're providing a signal to your controller; I assume you mean the color response. Check to see if it's consistently red, consistently green, or a mix of the both. (or does it turn the LED off?)
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #5   Spotlight this post!  
Unread 09-02-2012, 22:26
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,567
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: Random Signal

Are there any errors reported in the diagnostics tab of the driver station?
  #6   Spotlight this post!  
Unread 09-02-2012, 22:47
CRLS97 CRLS97 is offline
Registered User
FRC #0097
 
Join Date: Jan 2011
Location: Cambridge
Posts: 28
CRLS97 is an unknown quantity at this point
Re: Random Signal

Thanks to everyone who has responded. I will try the new DB37 cable tomorrow and check if the problem persists (already fixed the cable).

@Joe Ross, the only error we are receiving in the DS is the -44061 re: the loop containing robotdrive not running fast enough/being starved
  #7   Spotlight this post!  
Unread 09-02-2012, 23:32
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,521
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: Random Signal

Quote:
Originally Posted by CRLS97 View Post
Thanks to everyone who has responded. I will try the new DB37 cable tomorrow and check if the problem persists (already fixed the cable).

@Joe Ross, the only error we are receiving in the DS is the -44061 re: the loop containing robotdrive not running fast enough/being starved
That exact error has caused us to have the symptoms you are seeing. Try to determine why you are getting it. Are you developing on the driver station? Running on a busy network? Not deploying your code permanently?
  #8   Spotlight this post!  
Unread 10-02-2012, 00:17
CRLS97 CRLS97 is offline
Registered User
FRC #0097
 
Join Date: Jan 2011
Location: Cambridge
Posts: 28
CRLS97 is an unknown quantity at this point
Re: Random Signal

Quote:
Originally Posted by Tom Line View Post
That exact error has caused us to have the symptoms you are seeing. Try to determine why you are getting it. Are you developing on the driver station? Running on a busy network? Not deploying your code permanently?
The developing is being done on the same computer as the driver station being used to control, but it's not the classmate-PC from KOP. The network has only the robot and computer connected to it and the problem occurs when the code is run from labview for debugging AND when it is permanently built and deployed.

Could it be that the lag gives it that quick little signal?

I'm also thinking it could be the default camera Vision code. I'll try disabling vision tomorrow and see if the error goes away. If it does, does anyone think it would be worth disabling the vision loop overall, except when I deliberately want to use it (ie. case structure w/ joystick button; it's being used for auto-alignment w/ hoop)?

Last edited by CRLS97 : 10-02-2012 at 00:20. Reason: added camera blurb
  #9   Spotlight this post!  
Unread 10-02-2012, 00:56
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Random Signal

Quote:
Originally Posted by CRLS97 View Post
I'm also thinking it could be the default camera Vision code. I'll try disabling vision tomorrow and see if the error goes away. If it does, does anyone think it would be worth disabling the vision loop overall, except when I deliberately want to use it (ie. case structure w/ joystick button; it's being used for auto-alignment w/ hoop)?
Just to toss this out there (I'm not positive if this is pertinent to the issue at hand), but we recently ran into memory leak issues, despite that we use Java, whilst running camera code. We eventually determined that the reason was because the NIvision libraries are written in C++, not Java, so we had to account for that.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #10   Spotlight this post!  
Unread 10-02-2012, 01:55
flargen507 flargen507 is offline
Registered User
FRC #0159
 
Join Date: Feb 2012
Location: Fort Collins, CO
Posts: 12
flargen507 is on a distinguished road
Re: Random Signal

First off, are you using PWM?
If so, our team had a similar issue where, when enabled and recieving no signal from the joystick, it will randomly move the motors a little bit. It looks like the robot is twitching. If this is what is happening to you, go into your code and make sure there are no slots on the Digital Sidecar that are not hooked up (e.g. if you are trying to send values to PWM 7, which has nothing plugged into it.) When you get an active pin with no wire, it builds up a small charge on the Digital Sidecar, which then randomly discharges, and is interpreted by the motor controller as a very small signal.
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 11:13.

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