View Full Version : push-button switch on robot
Conan
02-10-2006, 08:39 PM
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
02-10-2006, 09:10 PM
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
02-10-2006, 09:16 PM
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
02-10-2006, 09:55 PM
Nope, just make sure it doesn't touch anything :)
Conan
02-10-2006, 10:03 PM
Thank you very much.
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.