Quote:
Originally posted by Jferrante
What relay # are you using? Are you using one or two pressure switches? What port(s) are they connected to?
If you had the compressor hooked up to relay1 and the pressure switch to rc_sw1 you're code could be as simple as:
relay1_fwd = 1 - rc_sw1
Of course you would need to add in some sort of timer to keep your compressor from cycling once the system filled up.
|
You probably want to use relay1_fwd=rc_sw1 instead since the pressure switch is normally close (1) and only opens (0) when the pressure gets high enough. Also, due to the way this year's switch works (opens at 115, but doesn't close again until 95psi), you don't need any special code to avoid cycling.