Joystick
Archiver
Posts: 46,084
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
>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
······· 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:
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.
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
--- 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/
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.
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]
"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]
······· Now is a good time, I'llbe in California and Nevada all next week.
Regards,· Theron
"Johnny E. Bates" wrote:
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/
Thanks
Rusty·
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/
>
>
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:
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.
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]
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/
>
>
>
where i can buy them?
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?
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]