|
Re: compressor problems
Glad to see you got it working! For future reference:
White - Signal
Red - +5V
Black - Ground
For the digital I/O ports, all you ever need to do is put a switch on a white and a black wire. In the programming, you'll also notice how when you turn a switch on, it reads as 0 in the programming, and when it is off, it reads one. I'm not entirely sure, but I believe this is due to the pull-up resistor in the RC. It reads 1 when the pull-up resistor puts a +5V current on the pin, and when you apply a negative current on it, it shorts it out, and reads as 0 in the programming.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian
Previous mentor and student from Team Fusion, FRC 364
|