|
Re: Help! My 2003 Bot compressor won't shut off
since you're talking about last year's bot, I am assuming you are using last year's control system, and last years programming language (PBASIC). if this is the case, then add these lines to your code, just before the serout command:
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!
__________________
You might be an Engineering Major....
if you'll assume that a "horse" is a "sphere" in order to make the math easier
if you know vector calculus but you cant remember how to do long division
if it is sunny and 70 degrees outside, and you are working on a computer
Last edited by RoboCoder : 11-01-2004 at 21:52.
|