Go to Post Now let's get back onto the original topic! :) - Calvin Hartley [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-2012, 18:41
WarriorRobotics WarriorRobotics is offline
Registered User
FRC #3676
 
Join Date: Jan 2012
Location: Arlington, TX
Posts: 6
WarriorRobotics is an unknown quantity at this point
Can't Get Compressor to Run

The compressor on our robot will not run. The Spike is not receiving a signal to give power to the compressor. We have checked wiring many times and we have also checked the programming a few times. It all seems to be correct. Any suggestions to what we should check to try to make it work? We have the pressure switch and the spike wired. The spike does turn on and we believe they are both wired correctly. We used the wiring diagrams available on the FIRST website to check the wiring. I'm not sure if it matters, but our programmer is using Java to program it and everything else on the robot besides the pneumatics works fine. Is there anything that needs to be done to make it work that we may be missing? Thanks.
  #2   Spotlight this post!  
Unread 07-02-2012, 20:16
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Re: Can't Get Compressor to Run

So when wiring the spike, what you need to do is Connect GND to black on PDB and 12v to red on PDB, make sure u use the smaller slots on the PDB. when you turn your bot on, your spike's led should be glowing orange-ish or red-ish.

(make sure your fuse isnt broken)
then what you need to do is connect the 3pin cable from the relay ports on the digital sidecar to the spike.
relay ports are the ones next to the phone jack and right under the DIO ports.

On the spike, it has a B which means the black of the PWM cable goes on it. or what ever color ur GND is.

now coding wise, we used the Relay class
our code looked like:

Code:
if(forward == true)
{
spike.set(Relay.Value.kOn);
spike.set(Relay.Value.kForward);
}
else if (reverse == true)
{
spike.set(Relay.Value.kOn);
spike.set(Relay.Value.kReverse);
}
if(!forward && !reverse)
{
spike.set(Relay.Value.kOff);
}
now when you set forward, your LED on the spike should switch from orange to green and when you set reverse, the LED should switch from orange to red.

If that is working, then wire the compressor to the spike, Red to M+ and black to M- and get rid of the code that lets the relay go reverse. And then when you turn on the bot, the relay should start.

Let me know if this helps
  #3   Spotlight this post!  
Unread 07-02-2012, 21:11
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: Can't Get Compressor to Run

Sand500, for the compressor, you really shouldn't use your own code for controlling the spike...WPILIB has built in methods handling the compressor. You should be doing something like:
Code:
Compressor compressor = new Compressor(pressureswitch INT, relay INT);
Then in robotInit:
Code:
compressor.start();
And your done. It handles all the safety hierarchies and controls the compressor based on the pressure switch which you MUST have in order to compete.

Correct any parts if they look incorrect anyone.
__________________
"No, you can't use the Kinect to do pelvic thrusts."

Last edited by jp1247 : 07-02-2012 at 21:11. Reason: Forgot semicolins...
  #4   Spotlight this post!  
Unread 08-02-2012, 11:37
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Re: Can't Get Compressor to Run

Quote:
Originally Posted by jp1247 View Post
Sand500, for the compressor, you really shouldn't use your own code for controlling the spike...WPILIB has built in methods handling the compressor. You should be doing something like:
Code:
Compressor compressor = new Compressor(pressureswitch INT, relay INT);
Then in robotInit:
Code:
compressor.start();
And your done. It handles all the safety hierarchies and controls the compressor based on the pressure switch which you MUST have in order to compete.

Correct any parts if they look incorrect anyone.
we were just testing our spike with our comressor. I had no idea there was a compressor class, thanks for the info.
  #5   Spotlight this post!  
Unread 08-02-2012, 16:17
ColonelThrtyTwo's Avatar
ColonelThrtyTwo ColonelThrtyTwo is offline
Registered User
FRC #3676
 
Join Date: Jan 2011
Location: Somewhere in Texas
Posts: 13
ColonelThrtyTwo is an unknown quantity at this point
Re: Can't Get Compressor to Run

(I'm the programmer for the team)

Yea, I was using the compressor class. I've even put a comressor.setRelayValue(Relay.Value.kOn) in my teleopPeriodic and it still doesn't work. We just now wired the compressor straight to the battery and it works, so it's either the spike or our wiring.

Just to be sure, the spike PWM is plugged into the Relay section and the pressure sensor to the Digital IO section, correct? I thought that last year we plugged one of them into the PWM section, though I wasn't the electronics person.

EDIT: Which side is negative on the Spike PWM? I heard that it was towards the "B" but I don't see anything on the spike datasheet.

EDIT2: Okay, it started randomly working. I guess we had a loose connection?

Last edited by ColonelThrtyTwo : 08-02-2012 at 17:03.
  #6   Spotlight this post!  
Unread 08-02-2012, 17:59
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Re: Can't Get Compressor to Run

Quote:
Originally Posted by ColonelThrtyTwo View Post
(I'm the programmer for the team)

Yea, I was using the compressor class. I've even put a comressor.setRelayValue(Relay.Value.kOn) in my teleopPeriodic and it still doesn't work. We just now wired the compressor straight to the battery and it works, so it's either the spike or our wiring.

Just to be sure, the spike PWM is plugged into the Relay section and the pressure sensor to the Digital IO section, correct? I thought that last year we plugged one of them into the PWM section, though I wasn't the electronics person.

EDIT: Which side is negative on the Spike PWM? I heard that it was towards the "B" but I don't see anything on the spike datasheet.

EDIT2: Okay, it started randomly working. I guess we had a loose connection?

GND means ground which is negative.
  #7   Spotlight this post!  
Unread 09-02-2012, 17:41
ColonelThrtyTwo's Avatar
ColonelThrtyTwo ColonelThrtyTwo is offline
Registered User
FRC #3676
 
Join Date: Jan 2011
Location: Somewhere in Texas
Posts: 13
ColonelThrtyTwo is an unknown quantity at this point
Re: Can't Get Compressor to Run

Started not working again.

Quote:
Originally Posted by sand500 View Post
GND means ground which is negative.
There is no GND symbol on the Spike relay.

The problem is in the pressure switch, because I can turn on the compressor manually. Are the pressure switches open or closed when low on pressure? Ours is open when low which doesn't match the Java compressor code and it didn't trip at 120psi.
  #8   Spotlight this post!  
Unread 09-02-2012, 18:05
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,851
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Can't Get Compressor to Run

How do you have the pressure switch wired?
It should be signal & ground, the outside wires of a PWM cable, no power.

To bypass it you can short across the pressure switch terminals. The compressor should turn on then.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #9   Spotlight this post!  
Unread 09-02-2012, 18:22
ColonelThrtyTwo's Avatar
ColonelThrtyTwo ColonelThrtyTwo is offline
Registered User
FRC #3676
 
Join Date: Jan 2011
Location: Somewhere in Texas
Posts: 13
ColonelThrtyTwo is an unknown quantity at this point
Re: Can't Get Compressor to Run

Quote:
Originally Posted by Mark McLeod View Post
How do you have the pressure switch wired?
It should be signal & ground, the outside wires of a PWM cable, no power.
Yep

Quote:
Originally Posted by Mark McLeod View Post
To bypass it you can short across the pressure switch terminals. The compressor should turn on then.
Doesn't seem to work. The switch seems to be closed normally (without pressure), so shorting them wouldn't do anything afaik.
  #10   Spotlight this post!  
Unread 09-02-2012, 18:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,851
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Can't Get Compressor to Run

Quote:
Originally Posted by ColonelThrtyTwo View Post
The switch seems to be closed normally (without pressure), so shorting them wouldn't do anything afaik.
It just eliminates the switch as the cause of your problems.
It is closed below ~95psi, and open at ~115psi, remaining open until it drops below 95psi again.

So it's not the switch, since it's out of the picture when you short across it's terminals.

Does the Digital Sidecar have all three power lights bright green? Some times it's a lack of proper power, other times the DIO pins could be shorted improperly.

I assume the Relay indicator on the Sidecar is not turning green either.

After that it's most probably your code.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #11   Spotlight this post!  
Unread 09-02-2012, 18:34
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Can't Get Compressor to Run

Quote:
Originally Posted by ColonelThrtyTwo View Post
There is no GND symbol on the Spike relay.
The B symbol on the Spike is logically equivalent to a GND symbol. The reason is that PWM cables usually have the ground cable color coded black.

Quote:
Originally Posted by ColonelThrtyTwo View Post
The switch seems to be closed normally (without pressure), so shorting them wouldn't do anything afaik.
The point of shorting the circuit across the pressure switch is to see if the pressure switch itself is broken. Alternatively, take a multimeter to the switch and check continuity (can also be done by reading resistance) and see whether the switch is tripped when you reach 115 psi (note that the switch opens when you reach 115 psi and will not close until the system falls below 95 psi).
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #12   Spotlight this post!  
Unread 09-02-2012, 19:28
WarriorRobotics WarriorRobotics is offline
Registered User
FRC #3676
 
Join Date: Jan 2012
Location: Arlington, TX
Posts: 6
WarriorRobotics is an unknown quantity at this point
Re: Can't Get Compressor to Run

The thing started to work correctly, so thanks for all your help.
  #13   Spotlight this post!  
Unread 09-02-2012, 19:30
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Can't Get Compressor to Run

Quote:
Originally Posted by WarriorRobotics View Post
The thing started to work correctly, so thanks for all your help.
Great to hear.

What was the source of the problem?
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #14   Spotlight this post!  
Unread 09-02-2012, 19:33
WarriorRobotics WarriorRobotics is offline
Registered User
FRC #3676
 
Join Date: Jan 2012
Location: Arlington, TX
Posts: 6
WarriorRobotics is an unknown quantity at this point
Re: Can't Get Compressor to Run

Not really sure, we switched the pressure switch with another one we had laying around and it still seemed to be doing the same thing. Our programmer then said that he just fixed some indents or something in the code and resent it to the robot. It started working after that.
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 11:29.

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