Dual-Axis Joystick w/ Basic Stamp
Dan Taylor
Posts: 207
I purchased the Daul-Axis Joystick from the website· and ran the test program. Now I am having problems getting results from tilting both directions. Tilting to the·up position and to the right I will get a 1 on the different variables, but in any other case the both return with 0. How can I tell if it is tilted back or to the left if it returns the same as if it is not tilted.
Also can it return a Analog signal? So that I could vary the speed of my Boe-Bot based on how far the joystick is tilted.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
Also can it return a Analog signal? So that I could vary the speed of my Boe-Bot based on how far the joystick is tilted.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
HIGH 1
· PAUSE 2
· RCTIME 1, 1, UD
· HIGH 0
· PAUSE 2
· RCTIME 0, 1, LR
· DEBUG HOME, "UD =· ", DEC UD, CLREOL, CR,
············· "LR =· ", DEC LR, CLREOL
· PAUSE 50
·I have it connected just as it says in the documentation. VDD, VSS, and the U/D to pin 1 and the L/R to pin 0.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Thanks for any·insight that you can give.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Not using any capacitors right now either. (If thats what you meant by value caps.) Is that what I need to incorporate·for this to work?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
Yup!
Look at page 151 of What's a Microcontroller.
Rich H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Simple Servo Tester, a kit from Gadget Gangster.
Thanks for your help with this!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
What do I do?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor
Post Edited (Dan Taylor) : 5/10/2010 4:21:24 AM GMT
www.parallax.com/Portals/0/Downloads/docs/prod/sens/27800-2-AxisJoyStick-v1.0.pdf
Rich H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Simple Servo Tester, a kit from Gadget Gangster.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor