View Single Post
  #9   Spotlight this post!  
Unread 10-02-2008, 19:27
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
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