View Single Post
  #10   Spotlight this post!  
Unread 10-02-2004, 22:31
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Help! My 2003 Bot compressor won't shut off

Quote:
Originally Posted by RoboCoder
Code:
select rc_sw2
  case 1
    relay3_fwd = 1
    relay3_rev = 0
  case 0
    relay3_fwd = 0
    relay3_rev = 1
endselect
this is assuming that the pressure switch is normally closed (when 120 psi has NOT been reached). If the compressor doesnt turn on at all, swap the lines "case 1" and "case 0". hope this helps!
I don't think applying reverse polarity to a compressor will shut it off. The last line before the endselect should probably say relay3_rev = 0, setting both wires to the compressor to ground.