|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Pressure Sensors
This year we only have one pressure sensor for the pneumatics. last year we had two one for high and one for low. how do we use this years pressure sensor or is there another one that we are getting at a later date? Thanks
|
|
#2
|
|||||
|
|||||
|
From team update 2, the following pnumatic parts will be in the late shipment:
SMC pneumatic parts: • Double Solenoid Base Ported Valve • Flow Control • Fitting, Straight ¼” Tube • Fitting, 90 Elbow ¼” Tube • Fitting, Tee Union ¼” Tube • Fitting, Male Run T 1/8 NPT ~ ¼” Tube • ¼” OD Tubing Does Flow Control=Pressure Sensor? |
|
#3
|
||||||
|
||||||
|
The reason that we had two pressure sensors last year was to do a "hysteresis". You would turn off the pump when the pressure got to whatever the high sensor was set at (say 115 PSI) and only turn on again when the pressure got below the low sensor (say 100 PSI). This kept the pump from cycling on and off rapidly.
If you read the Pneumatics Manual from this year, you will see that the provided switch provides hysteresis. All you need to do is something like: if pump_switch is 1, turn on pump, else turn off pump This is much easier then last year :-) |
|
#4
|
||||
|
||||
|
use one sensor, much easier, and on top of that, you save a whole .1 lbs!!!
![]() |
|
#5
|
||||
|
||||
|
It should be pretty easy....
We plan to put the compressor spike on RLY 7 output and wire the pressure switch to rc_sw1 (pins 1 & 3) of the RC digital input. Then we just use the following code:
relay7_fwd = rc_sw1 relay7_rev = 0 in place of the current relay 7 code. This will have the compressor relay state follow the state of the pressure switch. (Low pressure = closed, high pressure = open). You could use this same scheme with any of the relay outputs and switch inputs. It works OK with the emulator. Hopefully today or Monday we'll check it against the hardware (I never really trust that software stuff. My favorite programming language is solder.) Bruce C. |
|
#6
|
||||
|
||||
|
Re: It should be pretty easy....
Quote:
PWM8 = rc_sw1 * 254 That was the first bit of code I actually wrote, early in the build period, in 2002. |
|
#7
|
||||
|
||||
|
just remember, if you do your code like that, it will cycle. you're better off if you can do some cheesy timer that will keep the compressor off for x number of seconds, so it doesn't cycle. something to consider, if you have variable space.
|
|
#8
|
||||
|
||||
|
Cycle?
Why do you say it will cycle? This year's pressure switch has about 20 psi of hysteresis. That's the whole point of the new switch, so it won't cycle.
|
|
#9
|
||||
|
||||
|
oh, nevermind then. i haven't played with the new switch. heck, i saw it for a whole two seconds
. i assumed it was like the other ones. ok, this makes it even easier to program now. ![]() |
|
#10
|
|||
|
|||
|
does anyone have a program written up for this year's pressure switch yet?
|
|
#11
|
||||
|
||||
|
Quote:
|
|
#12
|
|||||
|
|||||
|
The "flow control" is the elbowed fitting that reduces air flow to slow down say the extension of a piston.
Last year we just used one sensor and built hysteresis into the program. We hooked up the sensor today, in the program simply, if 1 then turn comp on, if 0 turn comp off, (or whatever the numbers and code is) i thnk the limits are 115 and 95. It works very nicely though. Even when it shuts off at 115, the pressure goes a little above 120. |
|
#13
|
|||
|
|||
|
Quote:
|
|
#14
|
||||||
|
||||||
|
Quote:
relayX_fwd=rc_swY relayX_rev=0 where X is the relay your pump is connected to and Y is the switch your pressure sensor is wired to. Quote:
Last edited by rbayer : 12-01-2003 at 17:20. |
|
#15
|
|||||
|
|||||
|
Quote:
EDIT: I went back and checked the other posts, and I found my answer. Thanks. Last edited by Jeff Waegelin : 12-01-2003 at 19:29. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Robotics Tournament at Sensors Expo & Conference | Kyle Fenton | Off-Season Events | 4 | 04-05-2003 12:15 |
| Q&A Discuss: optical sensors | CD47-Bot | Extra Discussion | 0 | 15-02-2003 22:58 |
| pressure sensors | archiver | 2001 | 0 | 24-06-2002 02:15 |
| Need help with 255 Variable | Joseph F | Programming | 18 | 26-02-2002 14:49 |
| Pneumatic pressure sensor | Curtis Williams | Pneumatics | 3 | 04-02-2002 20:09 |