How do I set up a push button..? for sumo bot?
Kd7lax
Posts: 42
Hi,
well I finally got my sumo bots servo's connected, and I am going to do a presentation on microcontrollers for my (computer sci-100) class this monday... and I wanted to show off my mini-sumo-bot (home brewed version)... but I cant figure out how to hook up a pushbutton? what pins it should go to ect... also what code I should use for a 5sec delay ect. I think I just want it to do a little dance/demo ( because I won't have to sensors up and running by then).
So if some one could help me out that would be great!
thanks!
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit my website @ www.kd7lax.com- Devoted to ham radio
well I finally got my sumo bots servo's connected, and I am going to do a presentation on microcontrollers for my (computer sci-100) class this monday... and I wanted to show off my mini-sumo-bot (home brewed version)... but I cant figure out how to hook up a pushbutton? what pins it should go to ect... also what code I should use for a 5sec delay ect. I think I just want it to do a little dance/demo ( because I won't have to sensors up and running by then).
So if some one could help me out that would be great!
thanks!
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit my website @ www.kd7lax.com- Devoted to ham radio
Comments
·· You can find schematics on connecting a button to the SumoBot (Or any BASIC Stamp) in the Help File under the BUTTON command.· Now, I am not recommending the BUTTON command for your application, but the circuits apply to almost anything.· The code will be dependant on what you have and where in the code you want to read the buttons.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
· http://www.parallax.com/detail.asp?product_id=28152
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
Http://www.parallax.com
·
I want to run this moter testing code after Said button is pressed ( the button is hooked up to pin 9) .
Can some one help me make a code that will do this? or atleast get me started.
thanks so much!
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit my website @ www.kd7lax.com- Devoted to ham radio