Shop OBEX P1 Docs P2 Docs Learn Events
User input — Parallax Forums

User input

pizzaguypizzaguy Posts: 4
edited 2009-02-07 17:45 in Robotics
[noparse][[/noparse]EDIT: i just realized this may be better off in the Robotics forum rolleyes.gif ]

Hello, I'm new to BASIC and this program and I need some major help if at all possible. confused.gif

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 freaked.gif

Post Edited (pizzaguy) : 2/6/2009 4:53:07 AM GMT

Comments

  • JonathanJonathan Posts: 1,023
    edited 2009-02-06 04:54
    Pizza,

    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
  • Mike GreenMike Green Posts: 23,101
    edited 2009-02-06 06:15
    You're not allowed to post the same message on more than one forum. It's against the rules (and it doesn't really help either). Please delete your other message. You can use the X box on the right upper corner of your message.

    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 SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-02-06 17:17
    Your duplicate post in the robotics forum was removed. I will instead move this one there since duplicate/cross posts are not allowed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • ercoerco Posts: 20,256
    edited 2009-02-07 17:45
    PG: From my experience, an IR remote is one of the easiest, yet rewarding additions to any Stamp 2 or higher project. A $4 Radio Shack IR sensor (http://www.radioshack.com/product/index.jsp?productId=2049727),· a $5·universal·remote and a single Stamp·input pin, buys you as much input versatility as you want to program.·You can enter digits 0-9 directly, plus many other functions. Parallax·has well-documented software·to read Sony-compatible IR codes at http://www.parallax.com/dl/docs/prod/audiovis/InfraredEmittingDiode.pdf·(18 pages) and even more at http://www.parallax.com/dl/docs/books/edu/Roboticsv2_2.pdf·(360 pages). Have fun!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
Sign In or Register to comment.