Go to Post So once and a while no matter how addicted you may be, try to think outside the 48'x24' box of FIRST. - Tytus Gerrish [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 14-02-2002, 18:13
piconysm piconysm is offline
Registered User
#0971 (em... don't remember)
 
Join Date: Jan 2002
Location: Mountain View HS, CA
Posts: 18
piconysm is an unknown quantity at this point
Send a message via AIM to piconysm Send a message via Yahoo to piconysm
pressure switch

does anyone know how the pressure switch work? how to make it automatically turn on and off? thanks..
  #2   Spotlight this post!  
Unread 14-02-2002, 18:35
junkyarddawg junkyarddawg is offline
Registered User
no team
 
Join Date: Jan 2002
Location: Zeeland, Michigan
Posts: 36
junkyarddawg is an unknown quantity at this point
The pressure switch functions by balancing the pressure applied from the inlet side vs. the spring tension from the adjustment screw(remove the black rubber plug from one end and you'll see a slotted adjustment device). As the adjustment reduces spring tensiion against the internal diaphragm, it takes less air pressure to overcome the spring tension and make/break the switch. As the adjustment increases the tension against the diaphram, it takes a greater air pressure to overcome the spring tension and make/break the switch. All devices of this type have an inherent dead zone. If the switch makes/breaks as the air pressure reaches 90 psi, lowering the pressure to 89.9 psi will not result in a reversal of state. The pressure will have to drop through the dead zone before the spring tensioin can overcome the air pressure against the diaphragm and make/break the switch. Put an ohmmeter across the switch terminals and run the compressor until the switch changes state. Record the pressure from the guage attached to the compressor side of the system. Slowly let the air escape until the switch reverts to its original state. record the psi. The difference is the dead zone. If you want a different range of pressures, turn the adjustment 1 turn ccw or cw and re-perform the experiment. continue until you get the results you need. This year they gave you two of thses devices. use one to turn it on and the other to turn it off if you like.
  #3   Spotlight this post!  
Unread 14-02-2002, 19:37
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Talking

Hey Junkyard, that sounds like an "engineer" answer. I was thinking Pico was looking for a "programmer" answer. (Or maybe he needs an electrical technician's answer.)

In any case, here's my programmer answer:

FIRST gave you two switches this year. They are preset to trigger at two different pressures. If you turn the pump on when the lower pressure switch closes, and turn it off when the high pressure switch opens, you will prevent the pump from cycling excessively (which is what your electrical people want you, the programmer, to do.)

There are other threads that also tell you how to do this, but I will give you my answer here:

Code:
'( Make sure you know which switch is which before you use this code.)
if low_pressure_switch = 0 then DontTurnOn
    ' The low pressure switch is closed, (and the high pressure
    ' switch is assumed to be also) so turn on the compressor.
    pumpRelayOn = 1

DontTurnOn:
if high_pressure_switch = 1 then DontTurnOff
    ' The high pressure switch is open, (and the low pressure
    ' switch is assumed to be also) so turn the compressor off.
    pumpRelayOn = 0

DontTurnOff:
If you don't want to take the trouble to figure out which switch is which, this code should work:
Code:
if (switch1 = 0) or (switch2 = 0) then DontTurnOn
    ' Both of the switches are closed, so turn on the
    ' compressor.
    pumpRelayOn = 1

DontTurnOn:
if (switch1 = 1) or (switch2 = 1) then DontTurnOff
    ' Both of the switches are now open, so turn the
    ' compressor off.
    pumpRelayOn = 0

DontTurnOff:
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me

Last edited by Greg Ross : 15-02-2002 at 04:26.
  #4   Spotlight this post!  
Unread 14-02-2002, 21:52
piconysm piconysm is offline
Registered User
#0971 (em... don't remember)
 
Join Date: Jan 2002
Location: Mountain View HS, CA
Posts: 18
piconysm is an unknown quantity at this point
Send a message via AIM to piconysm Send a message via Yahoo to piconysm
Thanks to both of you for your sincere and helpful answer. I'll try it and see if there is other questions come up. Thanks a lot.
  #5   Spotlight this post!  
Unread 14-02-2002, 22:43
CharlieWilken CharlieWilken is offline
Registered User
#0634 (Robowolves)
 
Join Date: Jan 2002
Location: Van Nuys, CA
Posts: 46
CharlieWilken is an unknown quantity at this point
how do you wire it?

How do you wire them up? What kind of wire and where do you wire them to?
  #6   Spotlight this post!  
Unread 14-02-2002, 23:15
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
You can use either of the small wire cables you were given, either the two-wire cable (one run per switch, with black carrying ground, red the signal), or the three-wire shielded cable (one run does both switches), using the black to go to both switches, and red to one and white to the other.

It doesn't matter which terminal is connected to ground. We use ring terminals at the switch terminals.

Ours are wired with 3-wire; the black goes to pin 3 of the digital input (one of several grounds), and red to 2, and white to 1. You can pick any digital input you wish, we use rc_sw1 (pin 1) and rc_sw2 (pin 2).

When the switch is below the set-point pressure, it is closed, and the input the program sees is a '1'. When the pressure goes higher than the set-point, the switch opens and the program sees a '0'.
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
spike for pressure switch? Rob Colatutto Rules/Strategy 4 23-02-2003 15:42
pressure switch Michael Long Pneumatics 1 11-02-2003 11:21
pressure switch Antonio Pneumatics 10 31-01-2003 03:52
lost pressure switch Josh Hambright Pneumatics 0 29-01-2003 08:30
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46


All times are GMT -5. The time now is 22:58.

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