User input
[noparse][[/noparse]EDIT: i just realized this may be better off in the Robotics forum ]
Hello, I'm new to BASIC and this program and I need some major help if at all possible.
I'm using the Parallax SumoBot
I need to know if there is a way to input data into the program (and robot) without a computer. (I was thinking maybe testing each of the holes in the center of the board to get the input...)
To help you better understand, I need to make a program where I can input the distance (between 5 and 10 meters at half meter intervals) and the robot will move strait for that distance.
Also, is it possible to make the program not run until the reset button on the robot is pressed?
I really need help ASAP or I am in big trouble
Post Edited (pizzaguy) : 2/6/2009 4:53:07 AM GMT
Hello, I'm new to BASIC and this program and I need some major help if at all possible.
I'm using the Parallax SumoBot
I need to know if there is a way to input data into the program (and robot) without a computer. (I was thinking maybe testing each of the holes in the center of the board to get the input...)
To help you better understand, I need to make a program where I can input the distance (between 5 and 10 meters at half meter intervals) and the robot will move strait for that distance.
Also, is it possible to make the program not run until the reset button on the robot is pressed?
I really need help ASAP or I am in big trouble
Post Edited (pizzaguy) : 2/6/2009 4:53:07 AM GMT
Comments
If you look into the demo code for the sumobot, you will see a nifty way to use the reset button as you mention.
Unless you add something to your bot, you can't input distances to travel without reprogramming. For example, you could get a IR data sensor like they use in TV's and use a universal remote control. Or, you could get a wireless thing going with some RF modules. But the stock sumobot has no way to do this.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
There are all sorts of keypads and sample code available for their use. Look through the Nuts and Volts Columns. There's a link to the index off Parallax's main webpage under the Resources tab.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."