Go to Post ...the hardest part of engineering is communication. - EricVanWyk [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2014, 13:36
Vkamra20 Vkamra20 is offline
Registered User
FRC #5094
 
Join Date: Feb 2014
Location: Brampton
Posts: 16
Vkamra20 is an unknown quantity at this point
Compressor Problem!

Our compressor's not working but the spike rely is receiving power. Here how our program looks-

package edu.wpi.first.wpilibj.templates;

public class RobotTemplate extends SimpleRobot {
Compressor compressor = new Compressor(2,2);

public void operatorControl() {
// autonomous();
compressor.start();

}

}

Any advice will help

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2014, 13:42
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Compressor Problem!

Quote:
Originally Posted by Vkamra20 View Post
Our compressor's not working but the spike rely is receiving power. Here how our program looks-

package edu.wpi.first.wpilibj.templates;

public class RobotTemplate extends SimpleRobot {
Compressor compressor = new Compressor(2,2);

public void operatorControl() {
// autonomous();
compressor.start();

}

}

Any advice will help

Thanks
Have you verified that the spike and the switch are both plugged into the correct spots on the digital sidecar?
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2014, 13:48
Vkamra20 Vkamra20 is offline
Registered User
FRC #5094
 
Join Date: Feb 2014
Location: Brampton
Posts: 16
Vkamra20 is an unknown quantity at this point
Re: Compressor Problem!

Yes we have
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2014, 13:52
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Compressor Problem!

Quote:
Originally Posted by Vkamra20 View Post
Yes we have
Have you verified that the switch actually works and is giving the signal you'd expect?
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2014, 14:00
Vkamra20 Vkamra20 is offline
Registered User
FRC #5094
 
Join Date: Feb 2014
Location: Brampton
Posts: 16
Vkamra20 is an unknown quantity at this point
Re: Compressor Problem!

We know the switch is getting a signal as well. There is a clicking sound.

Last edited by Vkamra20 : 13-02-2014 at 14:02.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2014, 14:06
ksafin's Avatar
ksafin ksafin is offline
Registered User
AKA: Kirill Safin
FRC #3992 (Eagles Robotics Xperience)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Delray Beach, FL
Posts: 498
ksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant future
Re: Compressor Problem!

Make sure your pressure switch is correctly wired and works as expected.

Our biggest problem with getting that exact code to work in past years is that even if the relay is properly set up, a messed up pressure switch will not allow the compressor to start.

If the pressure switch returns a value of false (or true, i dont remember) then the compressor will not start.
__________________
FTC Teams 5257, 6568 & FRC Team 3992
Eagles Robotics Xperience
2014 FTC WORLD CHAMPIONS
14 Trophies in 3 Years
Reply With Quote
  #7   Spotlight this post!  
Unread 13-02-2014, 14:06
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Compressor Problem!

Quote:
Originally Posted by Vkamra20 View Post
We know the switch is getting a signal as well. There is a clicking sound.
What is the light on the spike doing?
Reply With Quote
  #8   Spotlight this post!  
Unread 13-02-2014, 14:11
hrench's Avatar
hrench hrench is offline
Mechanical build mentor
AKA: Bob Hrenchir
FRC #1108 (Panther Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Paola, KS
Posts: 220
hrench is a name known to allhrench is a name known to allhrench is a name known to allhrench is a name known to allhrench is a name known to allhrench is a name known to all
Re: Compressor Problem!

[my team has had worlds of trouble with the ViAir compressor--so much so that we even mounted that blue-box fan thingy that came with the KOP on the top of it to blow air down on the head constantly and it STILL LOCKED UP.

I'd say if you've tested and proved that you have 12V to the compressor, the only logical thing is the compressor doesn't work.

We have the old Thomas (415?) compressor on our robot now and it's WONDERFUL. if you can lay hands on one and have the weight, that's the ticket.
Bob team 1108.
Reply With Quote
  #9   Spotlight this post!  
Unread 13-02-2014, 14:19
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 526
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Compressor Problem!

Is the switch wired to the GROUND and SIGNAL on the PWM?
White and Black, Red not used. . .
__________________
The sooner we get behind schedule, the more time we have to catch up.

Reply With Quote
  #10   Spotlight this post!  
Unread 13-02-2014, 14:29
Vkamra20 Vkamra20 is offline
Registered User
FRC #5094
 
Join Date: Feb 2014
Location: Brampton
Posts: 16
Vkamra20 is an unknown quantity at this point
Re: Compressor Problem!

The light is orange(not blinking though). The wires on the switch are indeed black and white. Turning on "Tele Op" we hear the click sound. The compressor does work when we manually power it.
Reply With Quote
  #11   Spotlight this post!  
Unread 13-02-2014, 14:39
kmusa kmusa is offline
Registered User
AKA: Karlis Musa
FRC #0639 (Code Red Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2006
Location: Ithaca, NY
Posts: 117
kmusa is just really nicekmusa is just really nicekmusa is just really nicekmusa is just really nice
Re: Compressor Problem!

Quote:
Originally Posted by hrench View Post
We have the old Thomas (415?) compressor on our robot now and it's WONDERFUL. if you can lay hands on one and have the weight, that's the ticket.
For what it's worth, I believe it's a 405ADC.

Our experience has been similar - the Thomas compressor is pretty indestructible. (Though the actual performance, especially at elevated pressure, of the Viair is better.)

-Karlis
__________________
"A society without contrasting ideas will never move forward; however those contrasting ideas must be based on fact, must be rational/logical, and must be presented in a respectful manner." -Arthur Dutra IV

"If the district can spend $1.5M on turf, it should be able to fund a FRC team." -Sophie Halter
Reply With Quote
  #12   Spotlight this post!  
Unread 13-02-2014, 15:05
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,809
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: Compressor Problem!

Quote:
Originally Posted by Vkamra20 View Post
The light is orange(not blinking though). The wires on the switch are indeed black and white. Turning on "Tele Op" we hear the click sound. The compressor does work when we manually power it.
Where is this click coming from? Personally, I've never heard the pressure switch give an audible click...

Take out your multi-meter and measure the resistance of the switch as you pressurize the system - you should see the change when you get to 110-120 PSI. You'll see it change back when it gets down to about 90 PSI. That's how you know the pressure switch is working.

Next, plug it into the DSC, and add a print statement in your code so you can see the value of the switch. Go through the same pressurization routine and make sure the value flips as expected. That's how you know the system is recognizing the pressure switch is being triggered.

Now, take a look at the LED's next to the relays on the DSC - does one of them light up when you expect the compressor to turn on? That's how you know the code is starting the compressor correctly.

Almost there, now take a look at the spike. It should have a solid orange LED when the compressor should be off, but when it should be on (aka when the LED on the DSC turns on), the light should switch to green. That's how you know the relay is doing what its supposed to to.

Finally, does the compressor turn on when the light on the relay turns on? That's how you know you have a complete working system.

Walk through these steps one at a time, from top to bottom. Eventually, you'll find the step where stuff stops working, and you'll be able to isolate your problem and fix it. Until you do that, we can't tell if it's code, a bad wire to the spike, a bad wire to the pressure switch, a bad pressure switch, a bad DSC, or a bad compressor.
__________________
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
Reply With Quote
Reply


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 18:35.

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