Shop OBEX P1 Docs P2 Docs Learn Events
Joystick — Parallax Forums

Joystick

ArchiverArchiver Posts: 46,084
edited 2003-02-11 05:09 in General Discussion
At 18:30 06/18/01, Johnny E. Bates wrote:

>Has anyone used a joystick with a stamp? Would you attach the joystick
>directly to the stamp or use the PC and communicate with the stamp that
>way? I am looking for a way to steer a submersibel vehicle like the one
>on the parallax website.

The joysticks I am familiar with present a varying resistance at their
output, plus button presses which are communicated separately. You could
connect directly to the Stamp and measure this resistance and sense the
contact closures. Circuits to do so are in the Stamp manual.

Jim H

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-06-18 02:59
    Rusty,

    ······· I'd suggest connecting thejoystick to the PC and then send signals to the stamp with RS-232. Yousave a lot of wires between the joystick and the sub this way. Also, it'seasier to program for the joystick in C++ or Visual basic than using thestamp, although it can be done.

    Regards, Theron


    "Johnny E. Bates" wrote:
    [size=-1]Hasanyone used a joystick with a stamp?· Would you attach the joystickdirectly to the stamp or use the PC and communicate with the stamp thatway?· I am looking for a way to steer a submersibel vehicle like theone on the parallax website.[/size]·[size=-1]Thanks[/size][size=-1]Rusty[/size]


    To UNSUBSCRIBE, just send mail to:
    · basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed with.· Textin the Subject and Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to the Yahoo!Terms of Service.
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-18 03:37
    Johnny,

    I recently completed a project that uses a simple potentiometric joystick
    that I purchased for $3.50 to control 12 functions of robotic arm. I used
    the center tap switch to toggle between modes. I would be happy to send you
    the code if you are interested.

    Jeff
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-18 03:57
    I would be very interested in seeing the code!
    --- Jeff & Julia <EL-JEFE@P...> wrote:
    > Johnny,
    >
    > I recently completed a project that uses a simple
    > potentiometric joystick
    > that I purchased for $3.50 to control 12 functions
    > of robotic arm. I used
    > the center tap switch to toggle between modes. I
    > would be happy to send you
    > the code if you are interested.
    >
    > Jeff
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed
    > with. Text in the Subject and Body of the message
    > will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >


    __________________________________________________
    Do You Yahoo!?
    Spot the hottest trends in music, movies, and more.
    http://buzz.yahoo.com/
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-18 14:12
    There are three downloads referenced in this explanation all are available for free download:

    1) BASIC Stamp Manual - www.parallaxinc.com -> Downloads
    2) Robotics! - www.stampsinclass.com -> Downloads -> Educational Curriculum
    3) What's a Microcontroller· - www.stampsinclass.com -> Downloads -> Educational Curriculum

    Each potentiometer circuit typically has 3 leads, one for each end of the resistive element plus a center tap lead.· Set your multimeter for resistance measurement, then find a pair of leads connected to each potentiometer that varies in resistance as you operate the joystick.· Once you have isolated pairs of leads that vary with resistance on each potentiometer, connect them as the variable resistor in the RCTIME circuit (see BASIC Stamp Manual RCTIME command).· Then, use the RCTIME command to read the value of each potentiometer.· Robotics!, Chapter 4, Activity 1 has a sample program for reading a pair of resistive elements.·

    You can determine which leads are connected to the pushbutton on the joystick with your multimeter set to read resistance again.· This time, find the pair of leads that has infinite resistance when the button is not pressed and almost zero resistance when the button is pressed.· This is a normally open pushbutton.· What's a Microcontroller, Experiment 2 shows a pushbutton circuit that uses a pull-up resistor in series with the pushbutton.· The·BUTTON command in the BASIC Stamp Manual also shows circuits for reading pushbuttons with example code.

    By combining these two circuits and the code that reads them, you will be up and running with your joystick.·

    Andy Lindsay
    alindsay@parallaxinc.com

    Original Message
    From: Johnny E. Bates [noparse][[/noparse]mailto:drjb@sonet.net]
    Sent: Monday, June 18, 2001 3:30 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Joystick

    Has anyone used a joystick with a stamp?· Would you attach the joystick directly to the stamp or use the PC and communicate with the stamp that way?· I am looking for·a way to·steer a submersibel vehicle like the·one on the parallax website.

    Thanks
    Rusty·



    To UNSUBSCRIBE, just send mail to:
    · basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed with.· Text in the Subject and Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-18 17:59
    [font=arial,helvetica]I believe there are some chip that can translate the joystick output into
    RS232 (or other appropriate format). I've never seen one but I heard of some.
    Also, some old console games (like atari or something) that used joystics (or
    even gamepads, since they are similar to joysticks) should have some sort of
    a decoder. If you need mobility for your application then you should try
    somthing like that, since you probably not going to carry the PC around.[/font]
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-18 18:03
    [font=arial,helvetica]In a message dated 6/18/2001 12:54:12 AM Eastern Daylight Time,
    "Jeff & Julia" <EL-JEFE@PRODIGY.NET> writes:

    Johnny,

    ··I recently completed a project that uses a simple potentiometric joystick
    that I purchased for $3.50 ·to control 12 functions of robotic arm. ·I used
    the center tap switch to toggle between modes. I would be happy to send you
    the code if you are interested.

    Jeff

    If possible could you email the code to me too or post in the files section?
    I think I have an upcoming project that requiers some joystic input. (and if
    you need a VERY cheap joystic, go
    here[noparse]:http:[/noparse]//sales.goldmine-elec.com/prodinfo.asp?prodid=2706, it is a nice
    IBM joysticK)



    [/font]
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-18 19:04
    Rusty,

    ······· Now is a good time, I'llbe in California and Nevada all next week.

    Regards,· Theron

    "Johnny E. Bates" wrote:
    ·[size=-1]Thanks foryour reply.· I still have some basic questions for you when u havethe time.· Let me know when it is convenient and I'll email you alist of questions.[/size]·[size=-1]RB[/size]
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-18 21:20
    Yes! Please make the code available to the list.

    Jon

    --- parkan197@a... wrote:
    > In a message dated 6/18/2001 12:54:12 AM Eastern
    > Daylight Time,
    > "Jeff & Julia" <EL-JEFE@P...> writes:
    >
    > Johnny,
    >
    > I recently completed a project that uses a simple
    > potentiometric joystick
    > that I purchased for $3.50 to control 12 functions
    > of robotic arm. I used
    > the center tap switch to toggle between modes. I
    > would be happy to send you
    > the code if you are interested.
    >
    > Jeff
    >
    > If possible could you email the code to me too or
    > post in the files section?
    > I think I have an upcoming project that requiers
    > some joystic input. (and if
    > you need a VERY cheap joystic, go
    >
    here:http://sales.goldmine-elec.com/prodinfo.asp?prodid=2706,
    > it is a nice
    > IBM joysticK)
    >
    >
    >
    >
    >


    __________________________________________________
    Do You Yahoo!?
    Spot the hottest trends in music, movies, and more.
    http://buzz.yahoo.com/
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-18 23:30
    Has anyone used a joystick with a stamp?· Would you attach the joystick directly to the stamp or use the PC and communicate with the stamp that way?· I am looking for·a way to·steer a submersibel vehicle like the·one on the parallax website.

    Thanks
    Rusty·

  • ArchiverArchiver Posts: 46,084
    edited 2001-06-19 06:00
    Yes, I would love to see the code.

    RB
    Original Message
    From: "Jeff & Julia" <EL-JEFE@P...>
    To: <basicstamps@yahoogroups.com>
    Sent: Sunday, June 17, 2001 9:37 PM
    Subject: Re: [noparse][[/noparse]basicstamps] Joystick


    > Johnny,
    >
    > I recently completed a project that uses a simple potentiometric
    joystick
    > that I purchased for $3.50 to control 12 functions of robotic arm. I
    used
    > the center tap switch to toggle between modes. I would be happy to send
    you
    > the code if you are interested.
    >
    > Jeff
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed with. Text in the Subject
    and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-19 06:07
    Thanks for your reply.· I still have some basic questions for you when u have the time.· Let me know when it is convenient and I'll email you a list of questions.

    RB

    Original Message
    From: Theron Wierenga
    To: basicstamps@yahoogroups.com
    Sent: Sunday, June 17, 2001 8:59 PM
    Subject: Re: [noparse][[/noparse]basicstamps] Joystick

    Rusty,

    ······· I'd suggest connecting the joystick to the PC and then send signals to the stamp with RS-232. You save a lot of wires between the joystick and the sub this way. Also, it's easier to program for the joystick in C++ or Visual basic than using the stamp, although it can be done.

    Regards, Theron
    ·

    "Johnny E. Bates" wrote:
    [size=-1]Has anyone used a joystick with a stamp?· Would you attach the joystick directly to the stamp or use the PC and communicate with the stamp that way?· I am looking for a way to steer a submersibel vehicle like the one on the parallax website.[/size]·[size=-1]Thanks[/size][size=-1]Rusty[/size]··


    To UNSUBSCRIBE, just send mail to:
    · basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed with.· Text in the Subject and Body of the message will be ignored.
    ·

    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


    To UNSUBSCRIBE, just send mail to:
    · basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed with.· Text in the Subject and Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-09 23:23
    does anyone know of an application in which a joystick and a basic stamp are
    used to control motors?

    bill hart

    hellkat909@y...



    Do you Yahoo!?
    Yahoo! Mail Plus - Powerful. Affordable. Sign up now

    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-10 00:15
    http://www.team-mate.org/

    These guys entered in an Underwater ROV challenge.

    It uses a Stamp, and Joysticks to control the ROV.


    --

    http://www.lennard.net.nz/
    Ben Lennard, NCEE, Dip EE

    Electronics R&D - Kiwi Made, Innovative Electronics.

    Hm: +64 4 972 7567
    Mb: +64 21 536 627
    87 Spencer Street
    Crofton Downs
    Wellington
    New Zealand

    "To the optimist, the glass is half full. To the pessimist, the glass is
    half empty. To the engineer, the glass is twice as big as it needs to be."

    No animals were harmed in the transmission of this email, although the
    Dog next door is living on borrowed time, let me tell you! Those of you
    with an overwhelming fear of the unknown will be gratified to learn that
    there is no hidden message revealed by reading this warning backwards.

    > From: william hart <hellkat909@y...>
    > Reply-To: basicstamps@yahoogroups.com
    > Date: Sun, 9 Feb 2003 15:23:00 -0800 (PST)
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] joystick
    >
    >
    > does anyone know of an application in which a joystick and a basic stamp are
    > used to control motors?
    >
    > bill hart
    >
    > hellkat909@y...
    >
    >
    >
    >
    > Do you Yahoo!?
    > Yahoo! Mail Plus - Powerful. Affordable. Sign up now
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    > of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-11 01:39
    Thanks, but i just want the stick with the buttons... anyone knows
    where i can buy them?
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-11 01:52
    Like this one?

    http://sales.goldmine-elec.com/prodinfo.asp?prodid=2706

    Original Message

    > Thanks, but i just want the stick with the buttons... anyone knows
    > where i can buy them?
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-11 05:09
    Speaking of joysticks,

    I'm trying to use a computer gamepad as a remote control for my robot. I
    have tried tracing the board layout to control wires and that does not work
    because the traces are not clearly marked.

    From info on the net I was able to decipher that pin 4 on the computer and
    joystick is the ground. And pins 2, 7, 10 and 14 are button switches. And I
    have 4 buttons on my game pad which I can use now. But I want to use the
    directional pad as well for control. I can't for the life of me figure out
    how to use it. I understand that the PC sees it like a variable resistor.
    But this is a game pad, so I should be able to have direct on/off output from
    the pins on the gamepad. Right??

    Any thoughts or suggestions? I just want to be able to plug in the game pad
    to remote control my robot for transportation. So I can drive it out to my
    car, rather than carry it. ;-) So the four buttons will work, but I want to
    use the thumb pad too, just because I wanna know how it works!

    Thanks,
    -Justin


    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.