View Single Post
  #3   Spotlight this post!  
Unread 17-02-2009, 20:26
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: How sensitive are the driver station digital inputs?

Quote:
Originally Posted by FRC4ME View Post
I'm confused. It seems to me like you're saying:

When switch is off, signal should be connected to ground.
When switch is on, signal should be connected to 5V going through 10K resistor.

That's a little difficult to do with a SPST switch...
You're close, but backwards and incomplete.

When switch is off, signal should be connected to 5V going through 10K resistor (this will be read as true).
When switch is on, signal should be connected to ground -- and still connected to 5V going through 10K resistor. The resistor will keep the 5V and ground on opposite sides of itself (this will be read as false).

When done as Doug suggests, there is always a 10K resistor from +5V to the signal line. The switch leaves the signal alone when open, and pulls it to ground when closed.
Reply With Quote