Shop OBEX P1 Docs P2 Docs Learn Events
Joystick control for robot — Parallax Forums

Joystick control for robot

ArchiverArchiver Posts: 46,084
edited 2000-10-01 05:19 in General Discussion
I have a program that reads joystick data and would like to use this
data to control a simple robot. The robot could be liked to the
computer with a radio but that is not crucial at this point.
I called parallax customer support and asked them if the serial port
of the basic stamp II was used exclusively for downloanding the
programs or if could be used to send interactive commands to the
basic stamp. I was told that the only use for the serial port was
downloading the program. Is this true?
I would apreciate any advice I could get on this subject.

Thanks,

Augusto Opdenbosch

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-09-29 20:56
    We have a project that could be easily adapted for use with
    the BASIC Stamp using the Pot command to control your
    robot using RF remote control with a joystick at:
    http://www.rentron.com/ruf-bot.htm

    Regards,

    Bruce
    webmaster@r...
    http://www.rentron.com



    Original Message
    From: <opdenbosch@m...>
    To: <basicstamps@egroups.com>
    Sent: Friday, September 29, 2000 1:42 PM
    Subject: [noparse][[/noparse]basicstamps] Joystick control for robot


    | I have a program that reads joystick data and would like to use this
    | data to control a simple robot. The robot could be liked to the
    | computer with a radio but that is not crucial at this point.
    | I called parallax customer support and asked them if the serial port
    | of the basic stamp II was used exclusively for downloanding the
    | programs or if could be used to send interactive commands to the
    | basic stamp. I was told that the only use for the serial port was
    | downloading the program. Is this true?
    | I would apreciate any advice I could get on this subject.
    |
    | Thanks,
    |
    | Augusto Opdenbosch
    |
    |
    |
    |
    |
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-29 20:57
    Carl Kollar has a good example of using a joystick -- complete with schematics.
    Check out http://members.tripod.com/~divelec/joystick_program.html
    and http://members.tripod.com/~divelec/joystick_schematic.html

    >I have a program that reads joystick data and would like to use this
    >data to control a simple robot. The robot could be liked to the
    >computer with a radio but that is not crucial at this point.
    >I called parallax customer support and asked them if the serial port
    >of the basic stamp II was used exclusively for downloanding the
    >programs or if could be used to send interactive commands to the
    >basic stamp. I was told that the only use for the serial port was
    >downloading the program. Is this true?
    >I would apreciate any advice I could get on this subject.
    >
    >Thanks,
    >
    >Augusto Opdenbosch
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-29 21:00
    No, this isn't true. If you just take the ATN line and add a jumper to it,
    you can remove the jumper then use the stamps serial port as an extra
    serial, then replace the jumper for programming. Just connect SIN and SOUT
    to TX and RX respectively.

    Original Message
    From: opdenbosch@m... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=eEOPJ9r1Q7Td7W9x7KjkAQevjn0J6cFNtSrODVlk_6rraRbHBJZlOdj5UB9ZlPBwaJMNn7LUAp-rEjEaPgA]opdenbosch@m...[/url
    Sent: Friday, September 29, 2000 12:42 PM
    To: basicstamps@egroups.com
    Subject: [noparse][[/noparse]basicstamps] Joystick control for robot


    I have a program that reads joystick data and would like to use this
    data to control a simple robot. The robot could be liked to the
    computer with a radio but that is not crucial at this point.
    I called parallax customer support and asked them if the serial port
    of the basic stamp II was used exclusively for downloanding the
    programs or if could be used to send interactive commands to the
    basic stamp. I was told that the only use for the serial port was
    downloading the program. Is this true?
    I would apreciate any advice I could get on this subject.

    Thanks,

    Augusto Opdenbosch
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-29 21:08
    Bruce:

    Thank you for replying so quickly. I took a look at your link and saw your
    joystick-robot project. Most impressive!
    I would like to know if there is a big implementation difference if the
    joystick is connected to the computer instead of being directly connected to
    the transmitter. I would like the instructions for motion to come from a
    computer because eventually they will not be joystick-generated but
    web-generated.
    Is it possible to connect a transmitter to the computer's serial port so the
    commands coming from the computer could be then transmitted to the robot?
    If this is true, what kind of electronic parts do I need to purchase?
    Also, can all these components be purchased from Parallax Inc?

    Thanks,

    -Augusto

    Original Message
    From: Bruce [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=nHN-RP_PHTKZiTOFr_tYi_jfXqFz094cWQtdi3e5iGzwqQfVOL1P7jGJnJqM0zJCqjq5rJoULU-LEw]breyno2@r...[/url
    Sent: Friday, September 29, 2000 3:56 PM
    To: basicstamps@egroups.com
    Subject: Re: [noparse][[/noparse]basicstamps] Joystick control for robot

    We have a project that could be easily adapted for use with
    the BASIC Stamp using the Pot command to control your
    robot using RF remote control with a joystick at:
    http://www.rentron.com/ruf-bot.htm

    Regards,

    Bruce
    webmaster@r...
    http://www.rentron.com



    Original Message
    From: <opdenbosch@m...>
    To: <basicstamps@egroups.com>
    Sent: Friday, September 29, 2000 1:42 PM
    Subject: [noparse][[/noparse]basicstamps] Joystick control for robot


    | I have a program that reads joystick data and would like to use this
    | data to control a simple robot. The robot could be liked to the
    | computer with a radio but that is not crucial at this point.
    | I called parallax customer support and asked them if the serial port
    | of the basic stamp II was used exclusively for downloanding the
    | programs or if could be used to send interactive commands to the
    | basic stamp. I was told that the only use for the serial port was
    | downloading the program. Is this true?
    | I would apreciate any advice I could get on this subject.
    |
    | Thanks,
    |
    | Augusto Opdenbosch
    |
    |
    |
    |
    |
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-29 21:24
    In a message dated 9/29/00 2:44:56 PM Central Daylight Time,
    opdenbosch@m... writes:

    > I was told that the only use for the serial port was downloading the
    program.
    > Is this true?

    You can use the programming port for general serial communications. In SERIN
    and SEROUT, the pin number is 16. Be aware that the Stamp will echo
    everything sent to it, so you may have to filter this with your software
    (it's not hard to do -- see Jan Axelson's book, "Serial Port Complete").

    -- Jon Williams
    -- Dallas, TX
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-29 22:32
    Hello Augusto,

    | Thank you for replying so quickly. I took a look at your link and saw your
    | joystick-robot project. Most impressive!

    Thanks, but full credit for this project goes to Rob Arnold.

    The TWS/RWS RF modules we have are easy to control using
    asynchronous serial methods. The Stamp serout command
    can directly control the transmitter (TWS-434). The serin command
    can extract data from the receiver (RWS-434).

    | I would like to know if there is a big implementation difference if the
    | joystick is connected to the computer instead of being directly connected to
    | the transmitter. I would like the instructions for motion to come from a
    | computer because eventually they will not be joystick-generated but
    | web-generated.

    If you use the joystick attached to your PC, you'll need to figure out a way
    to send this joystick data to the Stamp, or to the transmiter module. It can
    be done in many ways, but depends on the capabilities of your program that
    reads the joystick.

    | Is it possible to connect a transmitter to the computer's serial port so the
    | commands coming from the computer could be then transmitted to the robot?

    Yes. You can, but you'll need to use a max232 to convert the RS-232 voltages
    to TTL level.

    | If this is true, what kind of electronic parts do I need to purchase?
    | Also, can all these components be purchased from Parallax Inc?

    Pretty much all you'll need is the transmitter/receiver, and max232 if you plan
    to
    directly control the transmitter without the Stamp interface. I would use the
    Stamp to grab serial data from the PC, and then control the transmitter.

    Parallax has some excellent RF modules that will work for your application.
    They sell for about $148.00 per pair (transmitter/receiver) + shipping. Ours
    sell
    for $13.00 per pair + shipping, and work very much the same.

    I'll be posting a project soon that shows how to interface the TWS transmitter
    to the PC serial port for wireless control of the Scott Edwards Mini SSC II
    serial
    servo controllers.

    If you need help with your project, email me directly at the address below.

    Regards,

    Bruce
    webmaster@r...
    http://www.rentron.com


    | Thanks,
    |
    | -Augusto
    |
    |
    Original Message
    | From: Bruce [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=lIFmBLYIyaCJ-CdBf_e85nYWSMJc6SWwrg957T1lmlPluYCiRZhJeWmKyGlKZ1NflbLTLXq4Zw]breyno2@r...[/url
    | Sent: Friday, September 29, 2000 3:56 PM
    | To: basicstamps@egroups.com
    | Subject: Re: [noparse][[/noparse]basicstamps] Joystick control for robot
    |
    | We have a project that could be easily adapted for use with
    | the BASIC Stamp using the Pot command to control your
    | robot using RF remote control with a joystick at:
    | http://www.rentron.com/ruf-bot.htm
    |
    | Regards,
    |
    | Bruce
    | webmaster@r...
    | http://www.rentron.com
    |
    |
    |
    |
    Original Message
    | From: <opdenbosch@m...>
    | To: <basicstamps@egroups.com>
    | Sent: Friday, September 29, 2000 1:42 PM
    | Subject: [noparse][[/noparse]basicstamps] Joystick control for robot
    |
    |
    | | I have a program that reads joystick data and would like to use this
    | | data to control a simple robot. The robot could be liked to the
    | | computer with a radio but that is not crucial at this point.
    | | I called parallax customer support and asked them if the serial port
    | | of the basic stamp II was used exclusively for downloanding the
    | | programs or if could be used to send interactive commands to the
    | | basic stamp. I was told that the only use for the serial port was
    | | downloading the program. Is this true?
    | | I would apreciate any advice I could get on this subject.
    | |
    | | Thanks,
    | |
    | | Augusto Opdenbosch
    | |
    | |
    | |
    | |
    | |
    |
    |
    |
    |
    |
    |
    |
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-30 04:06
    Check out my site at http://members.tripod.com/~divelec/r3rcjs01.html
    for a schematic and program that allows radio & joystick control with a
    standard RC receiver and a BS2.

    Carl

    >
    Original Message
    > From: <opdenbosch@m...>
    > To: <basicstamps@egroups.com>
    > Sent: Friday, September 29, 2000 1:42 PM
    > Subject: [noparse][[/noparse]basicstamps] Joystick control for robot
    >
    >
    > | I have a program that reads joystick data and would like to use this
    > | data to control a simple robot. The robot could be liked to the
    > | computer with a radio but that is not crucial at this point.
    > | I called parallax customer support and asked them if the serial port
    > | of the basic stamp II was used exclusively for downloanding the
    > | programs or if could be used to send interactive commands to the
    > | basic stamp. I was told that the only use for the serial port was
    > | downloading the program. Is this true?
    > | I would apreciate any advice I could get on this subject.
    > |
    > | Thanks,
    > |
    > | Augusto Opdenbosch
    > |
    > |
    > |
    > |
    > |
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-30 07:10
    The stamp has two pins reserved to receive the code and you can not use
    these for anything, you can interface the stamp to a serial port using the
    I/O pins which you have available and some code.

    Hope it helps,
    Alex

    Original Message
    From: opdenbosch@m... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=uLB73-6lLpOX-4PYN83zTFaZVzB-atRiFdFT8NXhbdWFnB7a3pkdShlV6Ho6omTcMBL0TmWdG_I0Zh08ZMa1QOw]opdenbosch@m...[/url
    Sent: Friday, September 29, 2000 3:42 PM
    To: basicstamps@egroups.com
    Subject: [noparse][[/noparse]basicstamps] Joystick control for robot


    I have a program that reads joystick data and would like to use this
    data to control a simple robot. The robot could be liked to the
    computer with a radio but that is not crucial at this point.
    I called parallax customer support and asked them if the serial port
    of the basic stamp II was used exclusively for downloanding the
    programs or if could be used to send interactive commands to the
    basic stamp. I was told that the only use for the serial port was
    downloading the program. Is this true?
    I would apreciate any advice I could get on this subject.

    Thanks,

    Augusto Opdenbosch
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-30 16:42
    Hello Carl;

    I am much interested in your web page and the info it may have on it,
    however; the page is all scrambled when it comes up in my browser.

    Would you be so kind to send along a text file of the code you present and
    the images of the schematics?

    Thanks in advance.

    James


    Original Message
    From: Carl A. Kollar [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=hNEIFTQKaLC2oa2Uhl-XtEek7n5yWNiaQNc_444l53kDvlOf0k2-7o-Momv3xiRtTT1M6435FhWPbctPZQ]carlk3jml@b...[/url
    Sent: Friday, September 29, 2000 8:07 PM
    To: basicstamps@egroups.com
    Subject: Re: [noparse][[/noparse]basicstamps] Joystick control for robot


    Check out my site at http://members.tripod.com/~divelec/r3rcjs01.html
    for a schematic and program that allows radio & joystick control with a
    standard RC receiver and a BS2.

    Carl

    >
    Original Message
    > From: <opdenbosch@m...>
    > To: <basicstamps@egroups.com>
    > Sent: Friday, September 29, 2000 1:42 PM
    > Subject: [noparse][[/noparse]basicstamps] Joystick control for robot
    >
    >
    > | I have a program that reads joystick data and would like to use this
    > | data to control a simple robot. The robot could be liked to the
    > | computer with a radio but that is not crucial at this point.
    > | I called parallax customer support and asked them if the serial port
    > | of the basic stamp II was used exclusively for downloanding the
    > | programs or if could be used to send interactive commands to the
    > | basic stamp. I was told that the only use for the serial port was
    > | downloading the program. Is this true?
    > | I would apreciate any advice I could get on this subject.
    > |
    > | Thanks,
    > |
    > | Augusto Opdenbosch
    > |
    > |
    > |
    > |
    > |
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-01 05:19
    James,

    I'm sorry you're having problems reading that page. I just checked it out
    and it looks OK to me. I'll check further. Meanwhile, if you click on the
    "download" icon near the bottom of the page, you can download a zip file
    with all the info. That should be good. Let me know offlist how you make
    out. If you still have problems, we'll get a good copy to you one way or
    the other.
    I can fax it to you if possible. (BTW, I'd be interested in knowing what
    browser you're using- It might give me a clue as to what is going on)

    Carl
    Diverse Electronic Services


    Original Message
    From: James Holbrook <aercam@e...>
    To: <basicstamps@egroups.com>
    Sent: Saturday, September 30, 2000 11:42 AM
    Subject: RE: [noparse][[/noparse]basicstamps] Joystick control for robot


    > Hello Carl;
    >
    > I am much interested in your web page and the info it may have on it,
    > however; the page is all scrambled when it comes up in my browser.
    >
    > Would you be so kind to send along a text file of the code you present and
    > the images of the schematics?
    >
    > Thanks in advance.
    >
    > James
    >
    >
    >
    Original Message
    > From: Carl A. Kollar [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=_3y7aaTT3lTIYQVdqExkDvjVpjSbHi2JyyVDzLrz0WCJFvL2IGPxf3uN0ZR89SbinM01IPZU2c0iVav-8Psg]carlk3jml@b...[/url
    > Sent: Friday, September 29, 2000 8:07 PM
    > To: basicstamps@egroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] Joystick control for robot
    >
    >
    > Check out my site at http://members.tripod.com/~divelec/r3rcjs01.html
    > for a schematic and program that allows radio & joystick control with a
    > standard RC receiver and a BS2.
    >
    > Carl
    >
    > >
    Original Message
    > > From: <opdenbosch@m...>
    > > To: <basicstamps@egroups.com>
    > > Sent: Friday, September 29, 2000 1:42 PM
    > > Subject: [noparse][[/noparse]basicstamps] Joystick control for robot
    > >
    > >
    > > | I have a program that reads joystick data and would like to use this
    > > | data to control a simple robot. The robot could be liked to the
    > > | computer with a radio but that is not crucial at this point.
    > > | I called parallax customer support and asked them if the serial port
    > > | of the basic stamp II was used exclusively for downloanding the
    > > | programs or if could be used to send interactive commands to the
    > > | basic stamp. I was told that the only use for the serial port was
    > > | downloading the program. Is this true?
    > > | I would apreciate any advice I could get on this subject.
    > > |
    > > | Thanks,
    > > |
    > > | Augusto Opdenbosch
    > > |
    > > |
    > > |
    > > |
    > > |
    > >
    > >
    > >
    > >
    >
    >
    >
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-01 05:19
    James,

    I'm sorry you're having problems reading that page. I just checked it out
    and it looks OK to me. I'll check further. Meanwhile, if you click on the
    "download" icon near the bottom of the page, you can download a zip file
    with all the info. That should be good. Let me know offlist how you make
    out. If you still have problems, we'll get a good copy to you one way or
    the other.
    I can fax it to you if possible. (BTW, I'd be interested in knowing what
    browser you're using- It might give me a clue as to what is going on)

    Carl
    Diverse Electronic Services


    Original Message
    From: James Holbrook <aercam@e...>
    To: <basicstamps@egroups.com>
    Sent: Saturday, September 30, 2000 11:42 AM
    Subject: RE: [noparse][[/noparse]basicstamps] Joystick control for robot


    > Hello Carl;
    >
    > I am much interested in your web page and the info it may have on it,
    > however; the page is all scrambled when it comes up in my browser.
    >
    > Would you be so kind to send along a text file of the code you present and
    > the images of the schematics?
    >
    > Thanks in advance.
    >
    > James
    >
    >
    >
    Original Message
    > From: Carl A. Kollar [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=wMXvLcA-QYV6FtufXEMI19zZ3n4eXr4jAbrhdEMSDcoXP_YYCD5VwJAuIgXDcQ9hC-zYHTrsRsPXXeh8QGnWsA]carlk3jml@b...[/url
    > Sent: Friday, September 29, 2000 8:07 PM
    > To: basicstamps@egroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] Joystick control for robot
    >
    >
    > Check out my site at http://members.tripod.com/~divelec/r3rcjs01.html
    > for a schematic and program that allows radio & joystick control with a
    > standard RC receiver and a BS2.
    >
    > Carl
    >
    > >
    Original Message
    > > From: <opdenbosch@m...>
    > > To: <basicstamps@egroups.com>
    > > Sent: Friday, September 29, 2000 1:42 PM
    > > Subject: [noparse][[/noparse]basicstamps] Joystick control for robot
    > >
    > >
    > > | I have a program that reads joystick data and would like to use this
    > > | data to control a simple robot. The robot could be liked to the
    > > | computer with a radio but that is not crucial at this point.
    > > | I called parallax customer support and asked them if the serial port
    > > | of the basic stamp II was used exclusively for downloanding the
    > > | programs or if could be used to send interactive commands to the
    > > | basic stamp. I was told that the only use for the serial port was
    > > | downloading the program. Is this true?
    > > | I would apreciate any advice I could get on this subject.
    > > |
    > > | Thanks,
    > > |
    > > | Augusto Opdenbosch
    > > |
    > > |
    > > |
    > > |
    > > |
    > >
    > >
    > >
    > >
    >
    >
    >
    >
    >
    >
    >
    >
Sign In or Register to comment.