View Single Post
  #4   Spotlight this post!  
Unread 15-02-2015, 06:17
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,240
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Use positive signal to trigger digital input

You short the signal wire of the switch to ground through a resistor.

When the switch is open, the signal is shorted to ground, and thus reads 0 volts.

When the switch is closed, power flows from the switch to the roboRio and it sees +5 volts.

The value of the resistor you use is dependent upon your switch. If you can't find anything in the spec sheet of the switch, try starting with 10K ohms, and work down from there.

I think the RoboRio pulls the signal line to +5 through an internal resistor, and that is what you need to overcome.