Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   push-button switch on robot (http://www.chiefdelphi.com/forums/showthread.php?t=43718)

Conan 10-02-2006 20:39

push-button switch on robot
 
Hello, for autonomous mode, we were thinking about putting a momentary push-button switch on the front of the robot so we would know if we hit an obstacle (wall, robot, etc.). So, I went down to Radio Shack and picked up a button. The button (like most switches) has two leads that are connected when the button is pushed. How would be attach this to the robot controller? Doesn't the controller have three leads (power, signal, ground)? Thanks.

steven114 10-02-2006 21:10

Re: push-button switch on robot
 
In general, connect one leg of the switch to ground and the other to signal. The RC has internal pullups on inputs 1-6 at least - I believe for some of the higher ones you have to provide external pullups. Check the RC docs.

Conan 10-02-2006 21:16

Re: push-button switch on robot
 
Quote:

Originally Posted by steven114
In general, connect one leg of the switch to ground and the other to signal. The RC has internal pullups on inputs 1-6 at least - I believe for some of the higher ones you have to provide external pullups. Check the RC docs.

Thank you. I'm pretty sure we'll only have two switches, so the use of higher inputs should be unneccessary. So, for the red wire, do we just not hook it up to anything?

steven114 10-02-2006 21:55

Re: push-button switch on robot
 
Nope, just make sure it doesn't touch anything :)

Conan 10-02-2006 22:03

Re: push-button switch on robot
 
Thank you very much.


All times are GMT -5. The time now is 10:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi