Go to Post If you thought two alliances racing to tip the bridge in auto was exciting, wait until they play autonomous chicken on the center line. :D - Alpha Beta [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 20-01-2013, 19:00
Sinani201 Sinani201 is offline
Registered User
AKA: Daniel
FRC #1836 (Milken Knights)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Los Angeles, CA
Posts: 12
Sinani201 is an unknown quantity at this point
Motors move by themselves

Recently our robot has been having a strange problem in which certain motors on the robot make small moements without being told to in the code. The problem occurs only when the robot is active (i.e. in teleop or auton). When printing out the victor outputs, I always get 0 even when they're moving.

Anyone know what could be causing this?

Thanks.
__________________
Enjoy your day.
  #2   Spotlight this post!  
Unread 20-01-2013, 19:17
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,598
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Motors move by themselves

Are you sure it's not your code? A PWM output updates nearly immediately after you set it in the code. If you're setting the PWM to a non-zero value near the beginning of your loop and then setting it to zero somewhere later on, you might see something like this.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #3   Spotlight this post!  
Unread 20-01-2013, 19:19
jp1247's Avatar
jp1247 jp1247 is offline
No the cRio does not like aluminum!
FRC #1247 (ROK BOT)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: New Hampshire
Posts: 60
jp1247 is an unknown quantity at this point
Re: Motors move by themselves

Is this happening during teleop or while the robot is disabled? If its during teleop make sure you have a dead-zone on all of your joystick axis.
__________________
"No, you can't use the Kinect to do pelvic thrusts."
  #4   Spotlight this post!  
Unread 20-01-2013, 19:27
pasco27 pasco27 is offline
Programming Captain-Team RUSH
FRC #0027
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Michigan
Posts: 15
pasco27 is on a distinguished road
Re: Motors move by themselves

We had this happen before, though I dont know if it's the same same reason. We found out a wire was shorting out and it made everything act crazy. Make sure your PWMs are plugged in the right direction(both on motor controller and digital side car) and that in the disabled case you set your motor output to zero. Hopefully it helps!
  #5   Spotlight this post!  
Unread 20-01-2013, 19:36
AlexH AlexH is offline
Registered User
no team
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2010
Location: PA
Posts: 215
AlexH is a name known to allAlexH is a name known to allAlexH is a name known to allAlexH is a name known to allAlexH is a name known to allAlexH is a name known to all
Re: Motors move by themselves

sounds like your pwm output isn't zero'ed or your picking up electrical noise which is causing interference.

i don't program so i don't know what it's called in in the FIRST control systems but in RC control land there is something called trim which is used to 'zero' the pwm signal.
__________________
My Instructables
  #6   Spotlight this post!  
Unread 20-01-2013, 20:40
brunoUC's Avatar
brunoUC brunoUC is offline
Registered User
AKA: Bruno Toso
FRC #1156 (Under Control)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Novo Hamburgo, RS, Brasil
Posts: 20
brunoUC is an unknown quantity at this point
Re: Motors move by themselves

Check if your victors aren't uncalibrated, this might cause the issue.

To calibrate your victor do the following:

User Calibration:
1. Power ON the speed controller.
2. Press and hold the Cal button. After a moment, the
LED indicator on the Victor will begin alternating
between RED and GREEN to indicate a cal mode.
3. While continuing to hold the Cal button, move the
joystick to the maximum and minimum positions.
This can be done in any order and as many times as
desired.
4. While continuing to hold the Cal button, return the
joystick to center (neutral position).
5. Release the Cal button.
6. A flashing GREEN indicator confirms a successful
calibration.
7. A flashing RED indicator denotes an unsuccessful
calibration.
An unsuccessful calibration occurs when either:
a) Insufficient joystick travel was detected in forward
and/or reverse.
b) The trim tab is too far from center.


Resetting Calibration to Factory Pre-calibration:
1. Power OFF the speed controller.
2. Press and hold the Cal button.
3. While continuing to hold the Cal button, Power ON
the speed controller.
4. A flashing GREEN indicator denotes calibration is
reset. Release the Cal button.
  #7   Spotlight this post!  
Unread 20-01-2013, 22:16
Sinani201 Sinani201 is offline
Registered User
AKA: Daniel
FRC #1836 (Milken Knights)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Los Angeles, CA
Posts: 12
Sinani201 is an unknown quantity at this point
Re: Motors move by themselves

The motors are being zero'd out in the code, and there are safeguards to prevent axis "jitter." The problem does not happen while disabled, but it happens even when there aren't any joysticks plugged in.

I'll look into the other suggestions tomorrow and post the results.
__________________
Enjoy your day.
  #8   Spotlight this post!  
Unread 20-01-2013, 23:26
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: Motors move by themselves

Another thing you might check is if the parallel port from the cRIO to the Digital Sidecar is plugged in all the way. This gave us some troubles last year.
  #9   Spotlight this post!  
Unread 21-01-2013, 12:11
Andy A. Andy A. is offline
Getting old
FRC #0095
Team Role: Coach
 
Join Date: Jun 2001
Rookie Year: 2001
Location: New Hampshire
Posts: 1,013
Andy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond repute
Re: Motors move by themselves

Could you just confirm that you are seeing this behavior only with Victor speed controllers? I've noticed sometimes Victor is used as a catchall for the various speed controllers, and like to check.

The 884 has, the last time I looked it up, something like a 4% built in deadband around neutral. Any command, intentional or otherwise, in this range won't result in any output current being sent to the motors. While not impossible, it'd take some pretty serious jitter to get out of that deadband.

I do not know what, if any, deadband the Jaguars and Talons have.

My guess is that this is code related. The next leading alternative is something centered around the digital sidecar or ribbon cable connecting it to the cRio module. Swap the sidecar out if you have a spare and ensure you don't have any other electrical wire or device near the ribbon cable, and that it is properly assembled and connected.
  #10   Spotlight this post!  
Unread 21-01-2013, 15:49
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 240
BitTwiddler is on a distinguished road
Re: Motors move by themselves

May I suggest that you move the pwm cable of the questionable motor to another motor controller to see what happens? If the problem moves to the other motor then your problem is coming from the Joystick to PWM link.
If it continues with the same motor then the problem is the Victor.
I'm betting its coming from the Victor motor controller.
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:55.

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