Go to Post Even at Mc Donalds, dinner with Dean would be really cool! - Josh Hambright [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 23-10-2014, 18:20
Team 4939 Team 4939 is offline
Registered User
AKA: Anshul Shah
FRC #4939 (All spark 9)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Brampton
Posts: 52
Team 4939 is an unknown quantity at this point
Problem with Robot Status Light

From all of us here at Team 4939 we hope everybody had a wonderful summer vacation.

Here in the GTA there is a off season event(fall fiesta) and for some reason our Robot Status light (the big bulb that blinks yellow) has stopped blinked. We have looked into the programming aspect, the wiring aspect and everything else we can think. When we turn on the robot and everything gets power except for the Robot Status light. We have tried multiple things but at this point have no clue what is going. When we turn the driver station on all the lights are green but when we actually try to control the robot nothing happens (there is also no voltage spike which I found odd).

Here is the code:
Code:
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;
 
public class RobotTemplate extends SimpleRobot {
    
    RobotDrive chassis = new RobotDrive(1,2);
    Joystick mainStick = new Joystick(1);
    Jaguar jaguar = new Jaguar(3);
    Jaguar jag = new Jaguar(4);

    
    public void autonomous(){ 
        chassis.setSafetyEnabled(false);
        chassis.drive (-0.5, 0.08);
        Timer.delay(2.0);
        chassis.drive (0, 0.0);
    }
    
    public void operatorControl() {
        chassis.setSafetyEnabled(true);
        while (isOperatorControl() && isEnabled()) {
            double speed;
            double rot;
            speed = mainStick.getY();
            rot = -mainStick.getX();
            chassis.arcadeDrive (speed, rot);
            if (mainStick.getRawButton(3)){
                jag.set(1);
                jaguar.set(-1);
            }
            else if (mainStick.getRawButton(4)){
                jaguar.set(-1);
                jag.set(1);
            }
            else{
                jaguar.set(0);
                jag.set(0);
            }
    }
    }
    
    public void test() {
       
    }
}
The off season event is in a little over a week and we are hoping to have this fixed by tomorrow afternoon because we are a rookie team and we are still looking into getting some practise.

Our team will be meeting from 2:30 - 4:30 tomorrow evening and we will stay online so that we can go back and worth with anybody who can suggest anything.

If you have any ideas or questions before tomorrow and will happily answer them.

Thank you in Advance.
  #2   Spotlight this post!  
Unread 23-10-2014, 18:22
MrBasse MrBasse is offline
Registered User
FRC #3572 (Wavelength)
Team Role: Coach
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Norton Shores, MI
Posts: 687
MrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond repute
Re: Problem with Robot Status Light

Do you have lights on the digital side car? What are they doing and where are they? This sounds oddly familiar to one of our smoked side car issues of 2013.
__________________
Andrew Basse
Coach - FRC Team 3572 - Wavelength
  #3   Spotlight this post!  
Unread 23-10-2014, 18:24
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: Problem with Robot Status Light

There are four lights on the Digital Sidecar that are relevant here. Three indicate that the DS is getting power: BAT, +5, and +6 volts. Are they all brightly lit? The fourth is a small LED adjacent to the RSL connector. Is it blinking in the pattern you expect the big orange light to be showing?
  #4   Spotlight this post!  
Unread 23-10-2014, 18:24
lucas.alvarez96's Avatar
lucas.alvarez96 lucas.alvarez96 is offline
Registered User
AKA: Lucas Alvarez
FRC #2576 (Chilean Heart)
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Chile
Posts: 123
lucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to all
Re: Problem with Robot Status Light

The RSL isn't controlled by user-programmed code, so you'd do best to check your electrical connections again. Try checking if your DSC is outputting voltage through the RSL pins using a multimeter or oscilloscope. You should double check your wiring and continuity.
__________________
FRC 2576 2015-2016: Mentor
FRC 2576 2013-2015: Programmer & Chairman's Presenter

Los Angeles Regional 2014: Regional Chairman's Award
  #5   Spotlight this post!  
Unread 23-10-2014, 18:33
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: Problem with Robot Status Light

If I'm reading your code correctly, the chassis.arcadeDrive (speed, rot); line will have no effect. Unless button 3 or 4 is pressed, the if statement immediately after it will turn off both speed controllers. Pressing one of those buttons will cause your robot to drive full speed forward or full speed reverse (or perhaps spin in place, depending on your wiring).

If you do want the "full speed" button functionality to remain, I think you should move the arcadeDrive function call into the final else case, replacing the jag.set(0); and jaguar.set(0); lines.
  #6   Spotlight this post!  
Unread 23-10-2014, 18:47
Team 4939 Team 4939 is offline
Registered User
AKA: Anshul Shah
FRC #4939 (All spark 9)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Brampton
Posts: 52
Team 4939 is an unknown quantity at this point
The lights are all lite up on the sidecar though I am unsure of of the small led adjacent to the RSL connector.
  #7   Spotlight this post!  
Unread 23-10-2014, 18:48
Team 4939 Team 4939 is offline
Registered User
AKA: Anshul Shah
FRC #4939 (All spark 9)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Brampton
Posts: 52
Team 4939 is an unknown quantity at this point
Do you think that the code may be the problem?
  #8   Spotlight this post!  
Unread 23-10-2014, 18:56
MrBasse MrBasse is offline
Registered User
FRC #3572 (Wavelength)
Team Role: Coach
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Norton Shores, MI
Posts: 687
MrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond repute
Re: Problem with Robot Status Light

When we cooked our sidecar we were stumped too, the RSL light didn't flash on the sidecar. We landed a nut on the exposed contacts right by where the RSL plugs in. There were no signs or indications that the sidecar was not functioning aside from the lack of a blinking LED. When the sidecar was opened up here was a component burned out that shut the whole robot down. Take a look inside your sidecar and see if anything is fried, it only takes five minutes to remove the case and it eliminates the "try everything else" method of fixing it.
__________________
Andrew Basse
Coach - FRC Team 3572 - Wavelength
  #9   Spotlight this post!  
Unread 23-10-2014, 18:57
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,835
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Problem with Robot Status Light

Look very closely at the lights on the sidecar. If one is out, there can be some "bleed through" from an adjacent one that makes it look like it's lot, just dim. This can happen especially if the sidecar isn't getting 12V (check with a multimeter at the sidecar power plug!)- It gets enough over the ribbon cable from the crio to light up some, but not all, LEDs. Also, it's possible to get some metal shavings in there that can short out on of the power rails, most often causing the 5V light to go out.

The RSL should do exactly what the LED next to the RSL plug does. If that led isn't coming in at all, then the problem isn't in the RSL.

Check and double check the power wiring into the sidecar. Check and try replacing the ribbon cable from the crio to the sidecar. Try unplugging everything but one item from the sidecar, and see if you can get that one working. Try replacing the sidecar.

Lastly, take pictures/video and post them here so we can look. It's hard to diagnose what you can't see!
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #10   Spotlight this post!  
Unread 23-10-2014, 19:24
Team 4939 Team 4939 is offline
Registered User
AKA: Anshul Shah
FRC #4939 (All spark 9)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Brampton
Posts: 52
Team 4939 is an unknown quantity at this point
Re: Problem with Robot Status Light

Unfortunately we won't be able to post pictures till at least tomorrow morning, so we can hopefully continue trouble shooting after some visuals are up so that can help you guys to better help us.

If anyone has any other ideas please let us know.

Could somebody also post a step to step on how to check if the sidecar is burned out so that it is easier for us, all the way from the LED to opening up the sidecar.

Thanks
  #11   Spotlight this post!  
Unread 23-10-2014, 19:31
seg9585's Avatar
seg9585 seg9585 is offline
Registered User
AKA: Eric
FRC #4276 (Surf City Vikings)
Team Role: Engineer
 
Join Date: Feb 2006
Rookie Year: 2001
Location: Boeing (Seal Beach, CA)
Posts: 520
seg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond reputeseg9585 has a reputation beyond repute
Re: Problem with Robot Status Light

You may run into a problem if your code causes an unhandled exception. Check your Netbeans log to see if you are causing an Exception (it will say something like "Robots don't quit! Unhandled Exception")

This has happened for things as simple as SmartDashboard IO, which is why I put all SmartDashboard inputs into try{} statements now.

Something to try if you don't see RSL blinking LED: create a new instance of robot code (new SimpleRobot project, for example), and just load that directly. The robot won't do anything, but the RSL should still work if the code is valid.
__________________
My FIRST legacy:

Team 204 Student 2001, 2002 (Voorhees, NJ)
Team 1493 College Mentor 2006 - 2008 (Troy, NY)
Team 2150 Intern/Professional Mentor 2007, 2009 (Palos Verdes)
Team 4123 Lead Engineering Mentor 2012 (Bellflower, CA)
Team 4276 Engineering Mentor 2012-2016 (Huntington Beach, CA)
  #12   Spotlight this post!  
Unread 23-10-2014, 20:09
microman1934 microman1934 is offline
Registered User
AKA: Uday SHarma
FRC #4939 (Allspark9)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2014
Location: Vaughan
Posts: 7
microman1934 is an unknown quantity at this point
Re: Problem with Robot Status Light

Quote:
Originally Posted by seg9585 View Post
You may run into a problem if your code causes an unhandled exception. Check your Netbeans log to see if you are causing an Exception (it will say something like "Robots don't quit! Unhandled Exception")

This has happened for things as simple as SmartDashboard IO, which is why I put all SmartDashboard inputs into try{} statements now.

Something to try if you don't see RSL blinking LED: create a new instance of robot code (new SimpleRobot project, for example), and just load that directly. The robot won't do anything, but the RSL should still work if the code is valid.
Netbeans doesn't give any errors while compiling or running, so it shouldn't be the code
  #13   Spotlight this post!  
Unread 23-10-2014, 22:34
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Problem with Robot Status Light

The robot status light is not controlled by the code. It will indicate different statuses based on what mode the robot is in... however if you are not getting a solid orange or flashing orange light at all, then it is a mechanical problem..

1. Use a multimeter to check that you get 12v at the light when the robot is powered on and in disabled mode. It may show 12V then 0 then 12 on your meter.

If you dont have 12v check your wireing and polarity... if you are positive the wireing is correct, unplug the connect from the DSC and check that you are getting 12v from the pins.

If you are the DSC is good but your wireing is bad,
If you dont get 12v from the RSL pins on DSC make sure the ribbon cable from cRio is seated properly, or just replace the DSC.

2. If you are getting 12v but the light is off, then the light is bad, could be a blown bulb or bad contact. Just relace the light with another known working light.

Hope this helps,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner

Last edited by NotInControl : 24-10-2014 at 00:49.
  #14   Spotlight this post!  
Unread 24-10-2014, 07:55
Anthony4939 Anthony4939 is offline
Registered User
None #4939
 
Join Date: Feb 2014
Location: Brampton
Posts: 25
Anthony4939 is an unknown quantity at this point
Re: Problem with Robot Status Light

Here is picture of the sidecar.
Attached Thumbnails
Click image for larger version

Name:	Sidecar.JPG
Views:	65
Size:	1.48 MB
ID:	17413  
  #15   Spotlight this post!  
Unread 24-10-2014, 08:29
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: Problem with Robot Status Light

All of the power LEDs are bright, so the Digital Sidecar appears to be powered correctly. That's good.

I can't tell from a still picture whether the small RSL LED is blinking. It looks off in the photo. Is it staying off?

The big clue in the picture is that there are Relay LEDs lit. Was the robot enabled when this photo was taken? If those outputs are active but the robot is disabled, you probably have a broken Digital Sidecar. (It is also possible that the 37-pin cable from the DIO module in the cRIO is either faulty or not properly connected, but I wouldn't expect that to result in Relay outputs being active when the robot is disabled.)
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 20:30.

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