|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: How to hook up Nason pressure switch
You connect the signal (white) and ground (black). You can just put a piece of electrical tape on the positive wire because it is not needed.
|
|
#2
|
|||
|
|||
|
Re: How to hook up Nason pressure switch
Thank you, hopefully I get this working tomorrow.
|
|
#3
|
|||||
|
|||||
|
Re: How to hook up Nason pressure switch
You must put insulation on the center/red/positive wire.
|
|
#4
|
|||
|
|||
|
Re: How to hook up Nason pressure switch
I can't seem to get the compressor to turn on with the relay. I put in the code (C++)
#include "WPILib.h" #include "vxWorks.h" #include "Vision/AxisCamera2010.h" #include "PCVideoServer.h" #include "Compressor.h" #include "Utility.h" #include "DriverStationLCD.h" class RobotDemo : public SimpleRobot { RobotDrive myRobot; // robot drive system Joystick stick; public: RobotDemo(void): myRobot(1, 2), // these must be initialized in the same order stick(1) // as they are declared above. { GetWatchdog().SetExpiration(1.0); GetWatchdog().SetEnabled(false); AxisCamera &camera = AxisCamera::getInstance(); camera.writeResolution(k640x480); camera.writeBrightness(10); camera.writeCompression(25); Compressor *airc = new Compressor (1,1); airc->Start(); } void Autonomous(void) { GetWatchdog().SetEnabled(false); myRobot.Drive(0.5, 0.0); // drive forwards half speed Wait(2.0); // for 2 seconds myRobot.Drive(0.0, 0.0); // stop robot } void OperatorControl(void) { GetWatchdog().SetEnabled(true); while (IsOperatorControl()) { GetWatchdog().Feed(); myRobot.ArcadeDrive(stick); Wait(0.005); // wait for a motor update time } } }; START_ROBOT_CLASS(RobotDemo); |
|
#5
|
|||||
|
|||||
|
Re: How to hook up Nason pressure switch
Describe how you have the switch and compressor wired. We might notice something that doesn't match the code you posted.
|
|
#6
|
||||
|
||||
|
Re: How to hook up Nason pressure switch
Also, manually fire up the compressor and take your system up to pressure. Have a digital multimeter across the ears of the pressure switch and measure resistance to ensure that it is, indeed, actuating.
|
|
#7
|
|||
|
|||
|
Re: How to hook up Nason pressure switch
I just got this and the solenoids to work.
Thanks for your help anyways. |
|
#8
|
||||
|
||||
|
Re: How to hook up Nason pressure switch
When hooking it up, as far as I can understand it goes in a digital I/O port on the digital sidecar, but is there a difference as to which wire (signal or ground) you connect to which terminal (NC or C) ?
|
|
#9
|
|||||
|
|||||
|
Re: How to hook up Nason pressure switch
Quote:
It is a simple switch so there is no polarity issues. There is no active circuitry inside. |
|
#10
|
|||||
|
|||||
|
Re: How to hook up Nason pressure switch
Electrically it makes no difference.
If you want to be a stickler for convention, however, the "C" stands for Common and ought to be wired to ground. The "NC" or Normally Closed contact ought to be wired to the signal input pin. |
|
#11
|
|||||
|
|||||
|
Re: How to hook up Nason pressure switch
Alan,
In this case "common" refers to a physical part of a switch rather than power supply. Is it rarely used in a single pole single throw switch but may appear on switch bodies that are used for many different products. Depending on the designer and the circuit used, the "common" terminal could be connected to the power supply rail. |
|
#12
|
||||
|
||||
|
Re: How to hook up Nason pressure switch
Ah, thanks a lot everyone!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| nason pressure switch wire | holty531 | Pneumatics | 3 | 31-01-2008 22:18 |
| Nason Pressure Switch? | DPPT1717 | Pneumatics | 10 | 09-01-2007 22:31 |
| No value in digital ins using NASON pressure switch. | Ari Allyn-Feuer | Programming | 1 | 18-02-2006 01:18 |
| Urgent need for Nason pressure switch!! PLEASE HELP! | haverfordfords | Pneumatics | 12 | 18-02-2005 02:04 |
| Nason pressure switches | JP_1163 | Pneumatics | 11 | 03-03-2003 23:03 |