Go to Post Being the GDC is not an easy job, anything can happen. Lunacy happened ::rtm:: - Conor Ryan [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 18-11-2014, 18:20
weaversam8 weaversam8 is offline
Team Captain
AKA: Sam Weaver
FRC #4534 (Wired Wizards)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wilmington, North Carolina
Posts: 137
weaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to behold
Robot Spins on Start

Hello, our team is reconstructing a robot, and it is simply giving full power to the chassis motors when starting. It is not a programming issue, as it is disabled, and there is no code in the disabled method. Any thoughts? It still happens whenever the PWM cables are removed.
  #2   Spotlight this post!  
Unread 18-11-2014, 18:23
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Robot Spins on Start

Just to be safe, can you provide your code?

Is there any short or problem with your motor controllers that could be providing the motors power?
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
  #3   Spotlight this post!  
Unread 18-11-2014, 18:26
Monochron's Avatar
Monochron Monochron is offline
Engineering Mentor
AKA: Brian O'Sullivan
FRC #4561 (TerrorBytes)
Team Role: Engineer
 
Join Date: Feb 2007
Rookie Year: 2002
Location: Research Triangle Park, NC
Posts: 910
Monochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond reputeMonochron has a reputation beyond repute
Re: Robot Spins on Start

Verify that it can happen while the robot is disabled and when the PWMs are unplugged. If this is the case then you have an electrical issues which you should be able to find by tracing each of your wires.

If you can't find it visually you could first unplug everything, then slowly plug things back in (after turning the robot off again) and finding which individual thing is causing, or part of the problem. Do this as a last resort though, as forcing your robot to short like this isn't the best solution.

Last edited by Monochron : 18-11-2014 at 18:30.
  #4   Spotlight this post!  
Unread 18-11-2014, 18:50
weaversam8 weaversam8 is offline
Team Captain
AKA: Sam Weaver
FRC #4534 (Wired Wizards)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wilmington, North Carolina
Posts: 137
weaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to behold
Re: Robot Spins on Start

I am our team's programmer, so I will post code, but I am certain that it is not the issue.

This code is from Ultimate Ascent, but it was our very basic rookie code.

Code:
Code:
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved.                             */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.camera.AxisCamera;

/**
 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the SimpleRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
 */
public class RobotTemplate extends SimpleRobot {
    /**
     * This function is called once each time the robot enters autonomous mode.
     */
    
    RobotDrive chassis = new RobotDrive (1, 2);
    Joystick leftStick = new Joystick(1);
    Joystick rightStick = new Joystick(2);
    Jaguar shooterMotor1 = new Jaguar(3);
    Jaguar shooterMotor2 = new Jaguar(4);
    AxisCamera camera;
    
    public void autonomous() {
        /*
        chassis.setSafetyEnabled(false);
        chassis.drive(-0.5, 0.0);
        Timer.delay(2.0);
        chassis.drive(0.0, 0.0);
        */
    }
    
    public void disabled() {
        chassis.drive(0.0, 0.0);
        
    }
    
    /**
     * This function is called once each time the robot enters operator control.
     */
    public void operatorControl() {
        chassis.setSafetyEnabled(true);
        // value from joystick's wheel
        double v1;
        camera = AxisCamera.getInstance();
        chassis.drive(0.0, 0.0);
        while (isOperatorControl() && isEnabled()) {
            
            double left = leftStick.getY();
            double right = rightStick.getY();
            
//            if (left > -.1 && left < .1)
//            {
//                left = 0;
//            }
//            if (right > -.1 && right < .1)
//            {
//                right = 0;
//            }
            
            if (right < 0)
            {
                right = -1 * right * right;
            }
            if (right > 0)
            {
                right = right * right;
            }
            
            if (left < 0)
            {
                left = -1 * left * left;
            }
            if (left > 0)
            {
                left = left * left;
            }
            
            chassis.tankDrive(left, right);
            
            // get value from the little wheel below stick
            v1 = leftStick.getRawAxis(3);
            // -1.0 is all the way up, 1.0 all the way down
            //System.out.println(v1);
            shooterMotor1.set(-v1);
            shooterMotor2.set(-v1);
            
            Timer.delay(0.01);
            
            
        }

    }
    
    /**
     * This function is called once each time the robot enters test mode.
     */
    public void test() {
        chassis.setSafetyEnabled(false);
        chassis.drive(1, 1);
        Timer.delay(2.0);
        chassis.drive(-1, -1);
        Timer.delay(2.0);
        chassis.drive(0.0, 0.0);
    }
}
The robot is disabled and PWM unplugged and it is still occurring.
  #5   Spotlight this post!  
Unread 18-11-2014, 19:00
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Robot Spins on Start

This sounds like a common failure mode when voltage is applied to the wrong side of your motor controllers.

Be sure that the power coming from the power distribution board goes into the terminals labelled V+ and V- on the case of your Jaguars. The motor leads should attach to the M+ and M- terminals. Unfortunately, there is no protection against applying power to the wrong side of them, and most times will not work properly again if this has occurred. The best thing to do is to trace all of your wiring to ensure it is going to the proper place.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #6   Spotlight this post!  
Unread 18-11-2014, 19:14
weaversam8 weaversam8 is offline
Team Captain
AKA: Sam Weaver
FRC #4534 (Wired Wizards)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wilmington, North Carolina
Posts: 137
weaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to behold
Re: Robot Spins on Start

Thank you. Apparently, the warning stickers are on the wrong side of all of our Jaguars! I hope we haven't broken them. Can you believe that the warning sticker was on the wrong side? Can we sue?
  #7   Spotlight this post!  
Unread 18-11-2014, 19:28
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,813
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Robot Spins on Start

Quote:
Originally Posted by weaversam8 View Post
Thank you. Apparently, the warning stickers are on the wrong side of all of our Jaguars! I hope we haven't broken them. Can you believe that the warning sticker was on the wrong side? Can we sue?
All the terminals are marked with an M+, M-, V+, or V-. And there's only one of each marking. The markings aren't necessarily the clearest, though--shine a flashlight at the terminals, they're molded into the case next to 'em.

As for breaking the Jags... Reverse voltage like that does have a tendency to release the magic smoke. If you've smelled magic smoke, your Jags are toast. They might work... but I wouldn't trust them.


By the way, Cecil's answer was the first thing I thought of when I saw the problem description...
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #8   Spotlight this post!  
Unread 18-11-2014, 19:32
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Robot Spins on Start

Always double check your wiring, and then have another person double check just to be sure. Mistakes happen, and many teams have had the same thing happen (our team is no exception). If you correct the problem and they still work, then use them until they finally do die. I would highly recommend NOT using them in a competition environment again, as they will most likely fail unexpectedly, often at the worst time.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #9   Spotlight this post!  
Unread 18-11-2014, 20:25
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Robot Spins on Start


Consider doing a root cause analysis to determine why the jags were wired improperly. This would necessarily involve determining who wired them that way, and under what circumstances. This is not a witch hunt. The purpose is not to assign blame. The purpose is to determine what changes need to be made to reduce the likelihood it will happen again. More and/or better training? Certification required in order to be permitted to do electrical work? Mandatory inspection by a second party before powering after wiring? Better labeling on all motor controllers? Better labeling of wires? All of the above? None of the above? Whatever is appropriate for your team.


  #10   Spotlight this post!  
Unread 18-11-2014, 21:11
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: Robot Spins on Start

Quote:
Originally Posted by weaversam8 View Post
Thank you. Apparently, the warning stickers are on the wrong side of all of our Jaguars! I hope we haven't broken them. Can you believe that the warning sticker was on the wrong side? Can we sue?
What warning sticker do you mean?
  #11   Spotlight this post!  
Unread 18-11-2014, 21:31
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,081
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: Robot Spins on Start

Quote:
Originally Posted by Alan Anderson View Post
What warning sticker do you mean?
Most Jaguars have a warning sticker that warns against applying an input of reversed polarity. Apparently the OP is saying the Jaguars they got had the stickers on the output side instead of the input side.
__________________
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)

  #12   Spotlight this post!  
Unread 18-11-2014, 21:31
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 236
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Robot Spins on Start

My bet is that the pwm's are wired backward, so power is going through the signal, which is telling the motor to always be on
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #13   Spotlight this post!  
Unread 18-11-2014, 21:32
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,081
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: Robot Spins on Start

Quote:
Originally Posted by TimTheGreat View Post
My bet is that the pwm's are wired backward, so power is going through the signal, which is telling the motor to always be on
Power is the center pin.
__________________
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)

  #14   Spotlight this post!  
Unread 18-11-2014, 21:34
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 236
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Robot Spins on Start

I had this problem with the spike. The pwm was backward, so the compressor was always running. Maybe not the power replacing signal, but still a result of backward pwm.
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #15   Spotlight this post!  
Unread 19-11-2014, 01:06
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,813
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Robot Spins on Start

Quote:
Originally Posted by TimTheGreat View Post
I had this problem with the spike. The pwm was backward, so the compressor was always running. Maybe not the power replacing signal, but still a result of backward pwm.
I find a backwards PWM to be hard to believe. Unless someone built either the end of the PWM or the socket for it without the tabs that usually prevent backwards PWMs, OR installed the end of the PWM backwards (which is highly possible if you're making your own cable).


The Jags are rather known for being easy to wire backwards, for a number of reasons (colored screws that can be easily swapped to denote which wire goes where, difficult markings to read, and there isn't anything really obvious if the screws are swapped around). I've seen someone wire power to both sides of one, and motors to both sides of another one--thankfully that was caught before power-on! I've yet to hear of anybody actually swapping a PWM around on one. Talons and Victors were harder to mistake the markings, but still could have their input/output swapped fairly easily.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

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 01:47.

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