View Single Post
  #5   Spotlight this post!  
Unread 09-02-2015, 23:54
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,113
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: Micro Switch Wiring & Programming

Quote:
Originally Posted by GeeTwo View Post
For a single-pole switch (two terminals), you need to add a resistor.
You don't need to add a resistor to sense a contact closure. The roboRIO digital inputs already have one. Just connect the switch between the GND (black) and SIG (white) wires.

Programming depends on the language you're using.