Thread: Compressor
View Single Post
  #2   Spotlight this post!  
Unread 25-01-2003, 17:36
Jferrante Jferrante is offline
Registered User
#0506
 
Join Date: Aug 2002
Location: New York
Posts: 67
Jferrante is an unknown quantity at this point
Send a message via AIM to Jferrante Send a message via Yahoo to 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.