Shop OBEX P1 Docs P2 Docs Learn Events
Controlling my robot via computer commands — Parallax Forums

Controlling my robot via computer commands

noobmunchernoobmuncher Posts: 124
edited 2010-01-05 06:21 in Robotics
Hello,

I need to have a program that will allow me to simply click a keyboard button (or an onscreen button) or at the very least type a one letter command in order to make my robot go forward, backward, right and left turn etc. I have never actually tried to control one from a computer through a BS2 so any help is appreciated. (I would prefer suggestions for the BS2) I am sufficient in my programming skills, I just have no idea how to interface it to the computer.

Thank you smile.gif

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-09-25 06:06
    Look at Selmaware's Stamp Plot Pro. You can find it on Parallax's website or Selmaware's (www.selmaware.com).
  • iDaveiDave Posts: 252
    edited 2009-09-25 06:37
    I did this by using rf link between my laptop on my boe bot. Went something like this.

    laptop-->bs2 on a boe(board of education) thru my standard old usb to serial cable-->rf transmitter on the boe--> rf reciever on my boebot

    Have the program on the bs2 thats connected to the computer waiting for any keyboard press( i used...I= forward, j=left,k=right and m= back and anything else stopped the bot). Then serially send out a number that the recieving bs2 "knows" that means to go forward or whatever.

    The transmitter & reciever i got off ebay were under $10 total and do the job(up to 30 or 40 feet in my house)


    Well...that's one way to do it

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "A complex design is the sign of an inferior designer."
  • SRLMSRLM Posts: 5,045
    edited 2009-09-25 15:17
    I posted some code to do just that here: http://forums.parallax.com/showthread.php?p=775202

    Note that it uses a wireless link, but you could just replace that in the receiver program with whatever your source of characters is.
  • SandgroperSandgroper Posts: 62
    edited 2009-09-27 09:15
    Have a close look at the Debug, DebugIn, Serout and Serin commands.
  • tronsnavytronsnavy Posts: 70
    edited 2009-10-02 13:31
    If you are still looking to control your bot via computer, have you considered the blue tooth module

    http://forums.parallax.com/forums/default.aspx?f=6&m=351119
  • Rob7Rob7 Posts: 275
    edited 2009-10-02 13:46
    Here is an Easy Blue tooth Module with Boe-Bot you can try.
    It is fairly easy and the tutorial has great info in it if this is your first attempt at remote control.

    http://forums.parallax.com/forums/default.aspx?f=6&m=351119
  • NoorNoor Posts: 13
    edited 2009-12-30 21:29
    iDave Hi,
    Do you have the program code for control boe bot via pc
    can you paste it in the forum
    or anyone
  • NoorNoor Posts: 13
    edited 2009-12-30 21:33
    iDave Hi,
    Do you have the program code for control boe bot via pc
    can you paste it in the forum
    or anyone
  • Mike GreenMike Green Posts: 23,101
    edited 2009-12-30 22:33
    Noor,
    You have to do some work. Several people have already provided links to other threads where there are code examples. Take a look at those references.
  • noobmunchernoobmuncher Posts: 124
    edited 2010-01-05 06:21
    Hey everybody thanks for the responses. I am actually using a xbee module that is advertised up to 16 km line of sight, so we will see how it works, I will probably be trying to set it up with the propeller chip though so if you have any suggestions (or code and schematics [noparse]:)[/noparse] ) that would be great!

    Thanks again
Sign In or Register to comment.