View Single Post
  #4   Spotlight this post!  
Unread 21-02-2011, 16:21
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: Limit Switch Issue

Quote:
Originally Posted by Yodamadashi View Post
I have also linked a picture of the wiring.
Your wiring is wrong.

The DIO pins have an internal pullup resistor to +5 volts. When nothing is connected, or when your switch is open, the value will be TRUE. When your switch is closed, the value will be...TRUE.

You need to put the switch between the SIG and (-) pins (the white and black wires on a standard PWM extension cable). Do not connect anything to the center +5 pin. That way, when the switch is closed, the SIG pin will be pulled to ground and read FALSE.
Reply With Quote