|
Re: How to wire a digital input device
You actually want one end of the switch to go to SIG, and the other side of the switch to go to ground. There is an internal pullup to 5V on the signal line, so you do not need to hook up to the 5V line at all. You are right that what you currently are doing is creating a short, which is not good.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
|