Go to Post Good work I appoint you skillz points. - Kingofl337 [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 06-02-2014, 18:07
anthonygraff24 anthonygraff24 is offline
Registered User
FRC #2872 (CyberCats)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Long Island
Posts: 38
anthonygraff24 is an unknown quantity at this point
Pressure Switch Not Working?

We are having some trouble with getting our compressor to work on its own. What we want it to do is to start on its own (it does that), stop when the system hits ~120psi, and restart when it drops back down to ~90psi. Our code looks like this:

if (airCompressor.getPressureSwitchValue()) {
airCompressor.setRelayValue(edu.wpi.first.wpilibj. Relay.Value.kOff);
}
else {
airCompressor.setRelayValue(edu.wpi.first.wpilibj. Relay.Value.kOn);
}

However, the compressor just runs without stopping. Any ideas on why this might happen?
  #2   Spotlight this post!  
Unread 06-02-2014, 18:15
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: Pressure Switch Not Working?

The Compressor class provided by WPI should handle everything for you.
Initialize it like this:

new Compressor(int pressureSwitchChannel, int compressorRelayChannel)

and then call the method start() to turn it on. It will automatically turn itself off when the pressure switch switches.

If it's still not working it could be a wring issue or the pressure switch is in the wrong place. Double check there's no short circuits in the wires for your pressure switch. The pressure switch should be located before your 60 psi working air regulator.

http://www.wbrobotics.com/javadoc/ed...ompressor.html
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
  #3   Spotlight this post!  
Unread 06-02-2014, 21:40
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Pressure Switch Not Working?

I can't comment on your code, but you can test if the switch closes at ~90 PSI and opens at ~120 with an ohmmeter.

Then verify (using code) that the DIO port is 'seeing' the switch change properly.

If it is, then make a program to command the compressor relay on and off, and see if you can get that to work. Pay attention to the LEDs at the DSC Relay ports.

If you do these 3 things, good chance you'll find the issue.
__________________

I am N2IRZ - What's your callsign?
  #4   Spotlight this post!  
Unread 07-02-2014, 16:29
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 67
jfitz0807 is an unknown quantity at this point
Re: Pressure Switch Not Working?

We're having a similar problem. R82 states "“Working” air pressure on the ROBOT must be no greater than 60 psi and must be provided through one primary adjustable, relieving, pressure regulator." It recommends the Norgren R07-100-RNEA. Our Norgren R07-100-RNEA regulator "bleeds" at 60psi. If the regulator bleeds to relieve pressure at 60psi, how can we possibly get more than 60psi upstream?
  #5   Spotlight this post!  
Unread 07-02-2014, 16:34
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,078
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Pressure Switch Not Working?

Quote:
Originally Posted by jfitz0807 View Post
Our Norgren R07-100-RNEA regulator "bleeds" at 60psi. If the regulator bleeds to relieve pressure at 60psi, how can we possibly get more than 60psi upstream?
The intent of a regulator is that downstream pressure isn't more than 60psi, ever. The pressure switch should be located on the "high pressure" side of the robot.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

  #6   Spotlight this post!  
Unread 07-02-2014, 16:41
Mr V's Avatar
Mr V Mr V is offline
FIRST Senior Mentor Washington
FRC #5588 (Reign)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Maple Valley Wa
Posts: 996
Mr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond repute
Re: Pressure Switch Not Working?

Quote:
Originally Posted by jfitz0807 View Post
We're having a similar problem. R82 states "“Working” air pressure on the ROBOT must be no greater than 60 psi and must be provided through one primary adjustable, relieving, pressure regulator." It recommends the Norgren R07-100-RNEA. Our Norgren R07-100-RNEA regulator "bleeds" at 60psi. If the regulator bleeds to relieve pressure at 60psi, how can we possibly get more than 60psi upstream?

It is bleeding because you have the high side input connected to one of the output ports. If you look at the bottom of the regulator there will be an arrow showing the direction of the flow. The port that lines up with the non pointy end of the arrow is the input, the other 3 ports are the output and they will bleed off any pressure in excess of the pressure the regulator is set at.
__________________
All statements made on Chief Delphi by me are my own opinions and are not official FIRST rulings or opinions and should not be construed as such.




https://www.facebook.com/pages/Team-...77508782410839
  #7   Spotlight this post!  
Unread 07-02-2014, 16:41
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 67
jfitz0807 is an unknown quantity at this point
Re: Pressure Switch Not Working?

We have that. We can see our high pressure gauge increase along with the gauge on the regulator. The problem is that when the pressure gets to 60psi, the regulator lets air out so the upstream side can't get any more pressure than 60psi.

For testing, we used the adjustable regulator with the yellow ring in place of the Norgren. I know this is illegal according to the rules, but I wanted to prove the concept. Since the yellow regulator doesn't bleed, we were able to get up to 115psi on the high side and 60psi on the low side.

How can you get more than 60psi on the high side if the regulator bleeds at 60psi?
  #8   Spotlight this post!  
Unread 07-02-2014, 16:44
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: Pressure Switch Not Working?

Quote:
Originally Posted by jfitz0807 View Post
We have that. We can see our high pressure gauge increase along with the gauge on the regulator. The problem is that when the pressure gets to 60psi, the regulator lets air out so the upstream side can't get any more pressure than 60psi.

For testing, we used the adjustable regulator with the yellow ring in place of the Norgren. I know this is illegal according to the rules, but I wanted to prove the concept. Since the yellow regulator doesn't bleed, we were able to get up to 115psi on the high side and 60psi on the low side.

How can you get more than 60psi on the high side if the regulator bleeds at 60psi?
As previously stated, it sounds like you have your regulator plumbed incorrectly. Are you 100% certain it is plugged in the right direction?
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
  #9   Spotlight this post!  
Unread 07-02-2014, 16:54
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
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: Pressure Switch Not Working?

Quote:
Originally Posted by jfitz0807 View Post
We have that. We can see our high pressure gauge increase along with the gauge on the regulator. The problem is that when the pressure gets to 60psi, the regulator lets air out so the upstream side can't get any more pressure than 60psi.

For testing, we used the adjustable regulator with the yellow ring in place of the Norgren. I know this is illegal according to the rules, but I wanted to prove the concept. Since the yellow regulator doesn't bleed, we were able to get up to 115psi on the high side and 60psi on the low side.

How can you get more than 60psi on the high side if the regulator bleeds at 60psi?
We had a similar issue with the Norgren regulator we got from FIRST Choice this year - We triple checked that it was plumbed correctly but it would bleed regardless of which side we put the high pressure into. We pulled it and replaced it with another we had in our pneumatics box, and that one worked perfect on the first try. I figured we had damaged the first some somehow (overtightened or something).
__________________
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 07-02-2014, 17:59
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 67
jfitz0807 is an unknown quantity at this point
Re: Pressure Switch Not Working?

Got it. It looks like we had it plumbed backwards. What's the emoticon for a sheepish grin?

Thanks for the quick responses!
  #11   Spotlight this post!  
Unread 07-02-2014, 18:19
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: Pressure Switch Not Working?

Quote:
Originally Posted by jfitz0807 View Post
Got it. It looks like we had it plumbed backwards. What's the emoticon for a sheepish grin?

Thanks for the quick responses!
heh, I'm pretty sure everyone on this thread who said it was plumbed backwards also learned the hard way. See you at the competition.
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
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 16:37.

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