Go to Post Geekier than me? That's a goal you can shoot for. You might make it, too -- in twenty years or so. :cool: - Richard Wallace [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2015, 19:43
adampaskowitz adampaskowitz is offline
Registered User
FRC #4345
 
Join Date: Dec 2011
Location: Los Angeles
Posts: 11
adampaskowitz is an unknown quantity at this point
No compressor light on PCM, no compressor power, no CAN recognition of compressor

I'm with a rookie team. We're programming in Java and trying to figure it out as we go. We have no real Java experts, and can't figure out if we have a hardware issue or a coding issue. All of lights on our PCM work except for the "Comp" light, which does not turn on at all. Our compressor works when we supply direct power, but we can't seem to power it through the PCM. When we run the self-test, the computer does not seem to recognize that a compressor is attached.

We tried creating a c.setClosedLoopControl for the compressor, and we tried to just create a DoubleSolenoid, but nothing responds. Can anyone tell me how to tell if we got a bad PCM, and what can I do about it if we did? Alternatively, is there any kind of very basic Java code we can plug in just to rule out bad programming as the issue?
  #2   Spotlight this post!  
Unread 07-02-2015, 19:53
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,609
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor

We aren't doing pneumatics this year on my team, so I'm not familiar with the new system except that I've read some of the documentation. Here are some initial questions (sort of at the "is it plugged in" level) that might help solve your problem:
  • Do you have a pressure switch in your system, connected back to the appropriate terminals on the PCB? As I recall, the pressure switches are normally closed, so if you don't have one, the PCB will think that you always have full pressure.
  • Same problem, different cause: Is the pressure switch working correctly? That is, when you do not have pressure on the switch, is there connectivity (that is, essentially 0 ohms) between the terminals? Are you getting connectivity between the two wires to the pressure switch at the PCB end?
  • Is your PCB powered from the correct port on the PDP?
  • Is the compressor connected into the appropriate ports on the PCB?
  • Is the PCB in the CAN bus?
  • Is the CAN bus terminated? The easiest way to do this is to have the PDP be the last item on the CAN bus, at the opposite end from the RoboRIO, and have the jumper next to the CAN connectors set to terminator on.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
  #3   Spotlight this post!  
Unread 07-02-2015, 23:26
Gregor's Avatar
Gregor Gregor is offline
#StickToTheStratisQuo
AKA: Gregor Browning
no team
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Kingston, Ontario, Canada
Posts: 2,447
Gregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond repute
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor

Please take a picture of your PCM, solenoid, and PDP where the PCM wires to.
__________________
What are nationals? Sounds like a fun American party, can we Canadians come?
“For me, insanity is super sanity. The normal is psychotic. Normal means lack of imagination, lack of creativity.” -Jean Dubuffet
"Insanity is doing the same thing over and over again and expecting different results." -Albert Einstein
FLL 2011-2015 Glen Ames Robotics-Student, Mentor
FRC 2012-2013 Team 907-Scouting Lead, Strategy Lead, Human Player, Driver
FRC 2014-2015 Team 1310-Mechanical, Electrical, Drive Captain
FRC 2011-xxxx Volunteer
How I came to be a FIRSTer
<Since 2011
  #4   Spotlight this post!  
Unread 08-02-2015, 10:37
techplex's Avatar
techplex techplex is offline
Blake B
AKA: Blake
FRC #4909 (The Bionics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Massachusetts
Posts: 94
techplex is just really nicetechplex is just really nicetechplex is just really nicetechplex is just really nice
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor

Make sure you have at least one Solenoid or DoubleSolenoid decleared in your code. The compressor will not be initialized without having at least one:

Code:
Solenoid name = new Solenoid(1);
This code should actuate the double solenoid based on joystick button:
Code:
package org.usfirst.frcEasyJ.team5122;

import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.DoubleSolenoid;

public class MyRobot extends IterativeRobot {

    Joystick JS1 = new Joystick(1);
    DoubleSolenoid DValve1 = new DoubleSolenoid(1, 2);
    public void autonomousInit() {

    }
    public void autonomousPeriodic() {

    }
    public void teleoperatedPeriodic() {
        if (JS1.getRawButton(1)) {
            DValve1.set(DoubleSolenoid.Value.kForward);
        } else {
            DValve1.set(DoubleSolenoid.Value.kReverse);
        }

    }
    public void teleoperatedInit() {

    }
}
__________________
Blake
Electrical, Programming and Design

Creator FRC Q&A 2017
Mass FRC Team 4909: The Bionics
Maine FRC Team 5122: The RobOTies (2014-2015)
Maine FRC Team 2648: Infinite Loop (2008-2011)
  #5   Spotlight this post!  
Unread 08-02-2015, 16:35
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor

Just release a new PCM User's Guide today...
http://www.crosstheroadelectronics.c...ol_system.html
...please read section 4.1 and follow the steps in order to help troubleshoot.
  #6   Spotlight this post!  
Unread 08-02-2015, 17:27
adampaskowitz adampaskowitz is offline
Registered User
FRC #4345
 
Join Date: Dec 2011
Location: Los Angeles
Posts: 11
adampaskowitz is an unknown quantity at this point
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor

I'm not sure if you can tell what's what on this photo, but I think everything pretty much matches the wiring diagrams with the exception of the CAN cables, which I reordered to match GeeTwo's suggestion to have the CAN bus terminate at the PCM. Based on the new manual, it looks like we may have software issues.

Last edited by adampaskowitz : 08-02-2015 at 20:30.
  #7   Spotlight this post!  
Unread 08-02-2015, 21:12
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,192
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor

Quote:
Originally Posted by adampaskowitz View Post
II reordered to match GeeTwo's suggestion to have the CAN bus terminate at the PCM.
I think he suggested the two ends of the CAN bus are:
RoboRio
Power Distribution Board (with the Termination jumper set to On)

The Pneumatic Control Module would be in the middle.
That said, my team wired the CAN bus wrong, and it still worked.
  #8   Spotlight this post!  
Unread 08-02-2015, 21:58
adampaskowitz adampaskowitz is offline
Registered User
FRC #4345
 
Join Date: Dec 2011
Location: Los Angeles
Posts: 11
adampaskowitz is an unknown quantity at this point
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor

You're right. Thanks. I'll switch it back, but I honestly didn't notice any difference between the way the robot responded when wired with either of those two arrangements.
  #9   Spotlight this post!  
Unread 09-02-2015, 12:54
feverittm's Avatar
feverittm feverittm is online now
Registered User
FRC #0997 (Spartans)
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Corvallis, OR
Posts: 121
feverittm will become famous soon enoughfeverittm will become famous soon enough
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor

If your CAN is hosed (disconnected of wired wrong) you will get a red light on the PCM status indicator. Make sure everything is green.

Check your pressure switch. It should be a normally closed switch, so you should sense continuity (using a meter) across the wires going into the PCM.

If the status is green, and the switch if closed, but are the PCM indicator is flashing showly, and the compressor will not start, then it probably still disabled and you need to look into the code.

Please also remember the code suggestions given above. The compressor WILL NOT start unless either the compressor/PCM is defined in the code or there is some pneumatic element (solenoid) defined.

If you don't have any solenoids defined you will need to define the compressor:

Code:
public status final Compressor myCompressor = new Compressor(0);
We had this problem over the weekend and it took a few hours to figure this out.
__________________
Floyd Moore
Mentor Electrical and Pneumatics
Team 997 - Spartan Robotics
Corvallis High School, Corvallis Oregon
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 17:11.

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