Go to Post Man I hate it when people muddy up our rampant speculation with facts and logic, jeez :D - rsisk [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #46   Spotlight this post!  
Unread 24-06-2014, 14: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: Pneumatics system code

Quote:
Originally Posted by compwiztobe View Post
They likely haven't seen them go on because you have never commanded a relay output before. The Relay output lights indicate the current output value.

Another thing to check: Are there any errors appearing on the diagnostics tab of the driver station? You can click Clear Errors to see if any new ones are being reported at the moment. Do this in Teleop Enabled as well. It might be that one of your safety loops is timing out, locking up your outputs. However, you report the other outputs working, so I'm not sure how this could be...

Do you have a multimeter on hand? It might also be worthwhile to unplug the cable from the spike and probe its ends, to see if the digital sidecar is sending an output despite its LED state.

These are the errors that show up on driver station after I click clear :

Code:
WARNING <Code> 44008 occurred at FRC_NetworkCommunications <radioLostEvents>  3178.632 <radioSeenEvents>
FRC:  Robot radio detection times.
Warning <Code> 44002 occurred at Ping Results:  link-GOOD,  DS radio(.4)-bad,  robot radio(.1)-bad,  cRIO(.2)-GOOD,  FMS-bad Driver Station
<time>6/24/2014 2:19:05 PM<unique#>118
FRC:  Driver Station ping status has changed.
I am not sure what these errors mean exactly.

We are getting 3 V on PWM section, 0 V on the relay section, and 0 V on DIO.

Correction:

We are getting 4 V on DIO

Last edited by Team 4939 : 24-06-2014 at 14:32.
  #47   Spotlight this post!  
Unread 24-06-2014, 21:30
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: Pneumatics system code

Any help with this issue would be greatly appreciated.

Also my team is pressuring me to re-check the code, because they think that is the case.

Here is the current code that I am running:

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;
import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.Relay;
 
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);
    Compressor compressor = new Compressor(1, 1);
    Relay spike = new Relay(7);
    
    public void robotInit() {
        compressor.start();
    }

    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 = mainStick.getY();
            double rot = -mainStick.getX();
            chassis.arcadeDrive (speed, rot);

            // Solenoid
                spike.set(Relay.Value.kReverse);
        }
    }
If somebody could please check over this code?

Last edited by Team 4939 : 24-06-2014 at 21:53.
  #48   Spotlight this post!  
Unread 24-06-2014, 22:48
Domenic Rodriguez's Avatar
Domenic Rodriguez Domenic Rodriguez is offline
Registered User
FRC #0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Grove City, PA
Posts: 213
Domenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura about
Re: Pneumatics system code

This line...
Code:
compressor.start();  // Relay port 1
...and this line...
Code:
spike.set(Relay.Value.kReverse);  // Relay port 7
...should be activating the green LED for Relay 1 and the red LED for Relay 7 on the Digital Sidecar when the robot is enabled in teleop mode. They should turn on regardless of whether Spikes are connected or not. If the LEDs are not activating and you are not measuring any voltage off of these ports, then my conclusion is that there is an issue with either your digital sidecar or the cable connecting it to your cRIO. The code looks fine to me, and it compiles without error in NetBeans.
__________________

LuNaTeCs - Learning Under Nurturing Adults Teaching Engineering Concepts and Skills - Small and Mighty!

FRC 316 LuNaTeCs - Student (2011-2014), Lead Programmer (2011-2014), Team Captain (2013-2014), Operator (2013), Drive Coach (2014), Mentor (2015-????)
'11 Philly Regional Finalists, '13 Chestnut Hill Finalists, '13 Lenape Champions, '13 Archimedes Division, '14 Chestnut Hill Champions, '14 Lenape Champions
FTC 7071 EngiNerds - Founding Advisor (2013-2014) | FRC 5420 Velocity - Founding Advisor (2015)
Grove City College Class of '18, Electrical/Computer Engineering (B.S.E.E)


Last edited by Domenic Rodriguez : 25-06-2014 at 08:17.
  #49   Spotlight this post!  
Unread 25-06-2014, 04:45
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: Pneumatics system code

Quote:
Originally Posted by Team 4939 View Post
These are the errors that show up on driver station after I click clear :

Code:
WARNING <Code> 44008 occurred at FRC_NetworkCommunications <radioLostEvents>  3178.632 <radioSeenEvents>
FRC:  Robot radio detection times.
Warning <Code> 44002 occurred at Ping Results:  link-GOOD,  DS radio(.4)-bad,  robot radio(.1)-bad,  cRIO(.2)-GOOD,  FMS-bad Driver Station
<time>6/24/2014 2:19:05 PM<unique#>118
FRC:  Driver Station ping status has changed.
I am not sure what these errors mean exactly.
The warning you're seeing is something that usually pops up, simply indicating current status (because, like it says, the ping status has changed and it wants to let you know). So I don't think that's part of it.

Quote:
Originally Posted by Team 4939 View Post
We are getting 3 V on PWM section, 0 V on the relay section, and 0 V on DIO.

Correction:

We are getting 4 V on DIO
PWM and DIO both look pretty much fine (assuming you're measuring the voltage I think you're measuring). But let's focus on the relay outputs.

On the relay output, is this measured between one of the signal wires (A or B) and ground (-) while Teleop is enabled? Make sure to measure both A and B relative to ground since which one is active depends on whether you are commanding forward or reverse. If you are not enabled, both will of course be off.
  #50   Spotlight this post!  
Unread 25-06-2014, 09:53
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: Pneumatics system code

We tried switching the ribbon cable that connects to the CRIO, and still no reply. The voltage is still dead. We really doubt that the relay section of the sidecar is the only thing disabled, because everything else is working. We measured voltage with teleop enabled as well. We don't know where to go from here.

We don't have a spare sidecar, so any other solutions would be greatly appreciated.
  #51   Spotlight this post!  
Unread 25-06-2014, 11:56
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: Pneumatics system code

Quote:
Originally Posted by Team 4939 View Post
We tried switching the ribbon cable that connects to the CRIO, and still no reply. The voltage is still dead. We really doubt that the relay section of the sidecar is the only thing disabled, because everything else is working. We measured voltage with teleop enabled as well. We don't know where to go from here.

We don't have a spare sidecar, so any other solutions would be greatly appreciated.
What voltages are you measuring? Between which pins?
  #52   Spotlight this post!  
Unread 25-06-2014, 17:32
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: Pneumatics system code

A and neg, B and neg on relay and no voltage.

Red and black, white and black, red and white on wire coming from relay, zero voltage.

All other parts of the SC work perfectly.

No Color on LEDs for relay, never seen them on, but never used the relay either.
  #53   Spotlight this post!  
Unread 26-06-2014, 01:33
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: Pneumatics system code

Quote:
Originally Posted by Anthony4939 View Post
A and neg, B and neg on relay and no voltage.

Red and black, white and black, red and white on wire coming from relay, zero voltage.

All other parts of the SC work perfectly.

No Color on LEDs for relay, never seen them on, but never used the relay either.
Have you tested all of the relay outputs this way? It sounds like somehow your relay outputs don't work, even though the rest of your sidecar is healthy (you are able to drive, right?). It would be real easy to swap in another to test this point in the system, if only you had another. I saw that you're quite close to several other teams in the Toronto area, perhaps you could contact one of them about borrowing one? And I'm sure someone in your area will be more than happy to spend some time helping with anything else.
  #54   Spotlight this post!  
Unread 27-06-2014, 09:25
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: Pneumatics system code

Yes we did test all of our outputs, and it is very odd indeed that only the relay section is not working on the sidecar. By the way we are able to drive the robot.

Unfortunately we are about done for the season, and won't be looking into replacing this sidecar, for the rest of the Summer. When we come back in September a new sidecar will be a priority, and hopefully that fixes the problem.

For now I would like to thank all the people who took out the time to help us try and solve this issue.

Before we end this thread I just wanted to ask, if a pneumatics module would be more reliable in this type of situation?

Thank you once again and have a great summer break everybody.
  #55   Spotlight this post!  
Unread 27-06-2014, 15:59
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: Pneumatics system code

Quote:
Originally Posted by Team 4939 View Post
Yes we did test all of our outputs, and it is very odd indeed that only the relay section is not working on the sidecar. By the way we are able to drive the robot.

Unfortunately we are about done for the season, and won't be looking into replacing this sidecar, for the rest of the Summer. When we come back in September a new sidecar will be a priority, and hopefully that fixes the problem.

For now I would like to thank all the people who took out the time to help us try and solve this issue.

Before we end this thread I just wanted to ask, if a pneumatics module would be more reliable in this type of situation?

Thank you once again and have a great summer break everybody.
Perhaps with the new control system coming next year, it might not be worth buying a new sidecar, unless you need a working 2009-2014 system for demo bots. If you can borrow one for testing, that would be ideal. Again, there are several teams in your area and I'm sure a good chunk of them have an extra sidecar.

Both the solenoid breakout and the sidecar are honestly pretty reliable, but the solenoid breakout on the cRio will only power the solenoids. You still need a relay output and a spike to power any onboard compressor. If you're referring to the new PCM for next year, it's hard to say before we get our hands on the details, but I'm sure it will be more than capable as well.

Perhaps you could remove the casing and do some more inspection of the circuit board with your DMM, referencing the schematic. The behavior does seem a bit curious, and I feel like we're missing something...
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:42.

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