|
Re: wiring the 2010 digital limit switches
If you actually mean "it dosen't work right" instead of just "it dosen't work at all", maybe its a simple software thing you overlooked.
All inputs on the DSC are pulled high. That means when unconnected, they will be 1 and not 0. Since you have the limit switch wired NO, between GND and SIG, when the switch is not pressed it will be 1. Then when it is pressed it will be 0. If you are wiring this to a PWM cable, connect the White and Black wires to the COM and NO on the limit switch. Put something on the black wire so it dosen't touch anything, electrical tape works. It dosen't matter which way you insert it or what wire goes to what because the circuit is either made or broken between the outer two pins. How are you reading it in software?
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|