Go to Post 15 thread derailment points - EmileH [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 16-02-2010, 20:30
Wiz Wiz is offline
Registered User
no team
 
Join Date: Dec 2009
Location: New Hampsha
Posts: 18
Wiz is infamous around these partsWiz is infamous around these parts
Question Pressure switch problem

Hey everyone

We have put a pressure switch on our pneumatics system. I programed it to turn of the compressor, but I don't know how to set the pressure it should turn off at. When the compressor runs, the pressure will go up to 110 psi then run out the release valve. Does anyone know how to program a pressure switch to turn of a compressor?

I want the pressure to switch the compressor of at about 100 psi

I am using labview, I am also a first year programmer, so please keep it simple.

thanks
  #2   Spotlight this post!  
Unread 16-02-2010, 20:47
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,855
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: Pressure switch problem

The pressure switch that came in the Kit is set for 115-120psi.
There's no way to reset that.

The pressure relief valve that came in the Kit should have been preset for 125psi, but obviously yours is set too low for the pressure switch to work. You need to adjust it. There are directions in the bag it came in.


Quote:
Originally Posted by Team Update 11
If the relief valve is not set to 125psi, teams are required to adjust to release air at 125psi.
The valve may or may not have been calibrated prior to being supplied to teams.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 16-02-2010 at 21:02.
  #3   Spotlight this post!  
Unread 17-02-2010, 10:01
NinjaWithBurnin NinjaWithBurnin is offline
Professional FBI-C
AKA: The Ender
FRC #1749 (Renesiance)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2015
Location: nashua, NH
Posts: 18
NinjaWithBurnin is an unknown quantity at this point
Re: Pressure switch problem

Continuing this thread for Wiz; (we're on the same team)

Ok We've reset the pressure release valve to hold pressure until 120 psi, but our pressure switch still won't turn off the compressor.

our compressor is controlled by a spike, and I programmed the pressure switch to turn off the spike.

does anyone see a problem I'm missing?

Also we know its NOT a problem with wiring as we've tested all the wires and spikes
  #4   Spotlight this post!  
Unread 17-02-2010, 10:14
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,855
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: Pressure switch problem

Does your compressor code resemble this in Begin.vi with a Close in Finish.vi and absolutely nothing else?

The only reason I ask is that sometimes teams try to control the Pressure Switch and the Compressor Relay directly in Teleop.vi or some other inappropriate place.

You might try temporarily upping the Pressure Relief Valve to 125 or 130 psi to see if your Pressure Switch is set to trip a smidgen high.

Your compressor Spike wiring is obviously working. The only possible pressure switch wiring problem would be a short. It obviously trips the DIO so the code turns on the compressor. You could try swapping out the pressure switch for another one.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 17-02-2010, 10:25
NinjaWithBurnin NinjaWithBurnin is offline
Professional FBI-C
AKA: The Ender
FRC #1749 (Renesiance)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2015
Location: nashua, NH
Posts: 18
NinjaWithBurnin is an unknown quantity at this point
Re: Pressure switch problem

Yes we do have a proper Open and Close function, but I was also putting the control for the pres. switch into the Teleop. section of the code.

is that wrong? where should the code for a pressure switch be? I tried putting it into the Main vi but there was still no difference.
  #6   Spotlight this post!  
Unread 17-02-2010, 10:29
NinjaWithBurnin NinjaWithBurnin is offline
Professional FBI-C
AKA: The Ender
FRC #1749 (Renesiance)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2015
Location: nashua, NH
Posts: 18
NinjaWithBurnin is an unknown quantity at this point
Re: Pressure switch problem

Also is the pressure switch a DIO input in Labview?
  #7   Spotlight this post!  
Unread 17-02-2010, 10:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,855
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: Pressure switch problem

No other code is necessary at all.

The Compressor Start in Begin.vi actually sets off a parallel task that constantly monitors the pressure switch and turns the compressor on and off as necessary during the entire time your robot is on.

The Pressure switch does go into, usually, DIO 1 by default. You specify which DIO in the Compressor Open.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #8   Spotlight this post!  
Unread 17-02-2010, 11:31
NinjaWithBurnin NinjaWithBurnin is offline
Professional FBI-C
AKA: The Ender
FRC #1749 (Renesiance)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2015
Location: nashua, NH
Posts: 18
NinjaWithBurnin is an unknown quantity at this point
Re: Pressure switch problem

Yes both our spike and pres. switch are in the #1 slots. The only code I have currently is in the Begin and End code.

In the Begin. It starts with an Open. block with both registrys set, then it continues into a Registry Set func. then to a Start func. after that it goes into the Error relay

Is that right? I'll try messing around with it a bit more but I've been stuck on this for a week

I don't know how to post a pic of what i'm doing so I hope thats clear
  #9   Spotlight this post!  
Unread 17-02-2010, 11:37
NinjaWithBurnin NinjaWithBurnin is offline
Professional FBI-C
AKA: The Ender
FRC #1749 (Renesiance)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2015
Location: nashua, NH
Posts: 18
NinjaWithBurnin is an unknown quantity at this point
Re: Pressure switch problem

OK I re programed to match the diagram you posted earlier but now the compressor wont turn on at all

any ideas?
  #10   Spotlight this post!  
Unread 17-02-2010, 11:41
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,855
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: Pressure switch problem

Do you have another DIO Open that you were using with the pressure switch before?

Multiple Opens clobber one another and the Compressor Open counts as Opening DIO 1 and Relay 1. Just make sure an Open of DIO 1 doesn't show up anywhere else.

I think the order you have in Begin sounds fine.

You can double-check the Pressure Switch wiring - only the black & white wires from a PWM cable.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-02-2010 at 19:50.
  #11   Spotlight this post!  
Unread 17-02-2010, 11:54
NinjaWithBurnin NinjaWithBurnin is offline
Professional FBI-C
AKA: The Ender
FRC #1749 (Renesiance)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2015
Location: nashua, NH
Posts: 18
NinjaWithBurnin is an unknown quantity at this point
Re: Pressure switch problem

Woohoo!!!! Finally got it working! turns out there was some unesesary code left over!

thanks for your help, the compressor works great now
  #12   Spotlight this post!  
Unread 17-02-2010, 13:42
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,855
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: Pressure switch problem

Happy competing!
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #13   Spotlight this post!  
Unread 17-02-2010, 17:53
George Nishimura's Avatar
George Nishimura George Nishimura is offline
Lurker
no team
Team Role: Alumni
 
Join Date: Sep 2008
Rookie Year: 2007
Location: London
Posts: 231
George Nishimura has much to be proud ofGeorge Nishimura has much to be proud ofGeorge Nishimura has much to be proud ofGeorge Nishimura has much to be proud ofGeorge Nishimura has much to be proud ofGeorge Nishimura has much to be proud ofGeorge Nishimura has much to be proud ofGeorge Nishimura has much to be proud ofGeorge Nishimura has much to be proud of
Re: Pressure switch problem

This is slightly unrelated, but it doesn't deserve its own thread. Our compresser.stop() [we use java] won't stop the compressor, but if we createa a DigitalOutput with the same channel as teh compressor, and set it equal to false, it does stop. Compressor.start() works though.

Kind of a random one, and not a big deal (because of the DO adjustment) but curious as to what we are doing wrong.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressure Switch Problem? P.Svilans Programming 6 09-03-2009 16:47
pressure switch M.Jesus Pneumatics 2 16-02-2008 16:23
[OCCRA]: Problem with the compressor, pressure switch, or Bosch relay. BrittanyV OCCRA 3 16-10-2006 15:42
pressure switch Michael Long Pneumatics 1 11-02-2003 11:21
pressure switch piconysm Technical Discussion 5 14-02-2002 23:15


All times are GMT -5. The time now is 21:25.

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