I looked through the existing threads concerning pneumatic pressure switches, but didnt see anything concerning the steps taken to wire it to the RC. Forgive me if i missed it but how are the two wires from the pressure switch connected via PWM style cables to an input on the RC? Any tips or techniques would be greatly appreciated! Thanks again.
Use the black and white wires on a PWM cable. Then connect it to a digital input.
Ah so do I have to take the PWM connector with 3 prongs completely off and then just use the black and whites to wire the pressure switch? Thanks.
Yes. And be sure to insulate the red (unconnected) wire as it will have 5 volts present on it.
An easy way to prevent the 5 volts from getting into trouble…Using a fine point wire cutter, cut the red wire next to the connector that will be plugged into the RC. If you pull on the wire ( or slip a knife blade between the wires) it will separate from the white and black wires. Pull back about 1/2-1 inch and cut off the excess length of red wire and you’re done.
Alright, great thanks a ton. However, we do have to include code in our program to sense the pressure switch at all, correct? thanks again guys
The code is embedded in the default code, copy and paste as needed and then modify if you are using a different relay output or digital input than those for which the code was written.
Ok, well one more question, is there actual default code that we can access? I thought it was just already in the RC…? I found some code that says its for the pressure switch in the actual manual, is that the one i should use? Thanks!
The section in the default code looks like this:
relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */
relay8_rev = 0;
It was in the Robot Controller as shipped.
The Pressure sensor connects to digital input 18, the connection to the spike handling the compressor goes on Relay 8.
Alright, it is shutting off at 115 now, thanks, i think it was that we had the inputs in the wrong spots. Thanks for the help!
does it matter what sides of the switch you wire the power and ground to?
Nope, there is no positive and negative to the switch