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

Joystick

Dan TaylorDan Taylor Posts: 207
edited 2008-06-20 14:35 in General Discussion
Hey,
I was wondering where to get a joystick that could intefere with my BS2.
Like to control the Boe-Bot.

Any Ideas? Would I have to strip a USB cable to get the wires or can you buy 1 that dosn't have the USB connecter at the end and you can just plug the wires right in to your circuit?

Thanks for any help!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-06-19 20:41
    Most current model joysticke have circuits inside that convert the positions to data, not what you want for a simple control. See if you can find an older model designed for the pc game port as they brought the resistance and switches out so the computer did the processing.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Dan TaylorDan Taylor Posts: 207
    edited 2008-06-19 23:07
    But could you get one with seperate wires for each of the connections. sad.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dan Taylor
  • parts-man73parts-man73 Posts: 830
    edited 2008-06-20 01:15
    Dan,

    Look at my PropJoy board, you could easily adapt it to a Stamp.

    You can plug 2 Atari joysticks into it. PropJoy contains 2 shift registers. The status of each "button" is contained in the bits that you shift out of it. I say buttons, because inside an Atari joystick, there are 4 buttons for up,down,left and right. plus the fire button. There are 4 data lines, plus VDD and VSS.

    The "Latch" line will capture a snapshot of the current joystick status, this is common for both joysticks

    the "clock" line is strobed to shift the data out

    Player1 data and player2 data is the output through which you read the shifted out data.

    if only 1 joystick is used, only Latch,Clock and Player1 need be connected (plus of course VDD and VSS)

    Instead of the SpinStudio connector, wires can be soldered in place for connection to your BS2 or any other MicroController.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Brian

    uController.com - home of SpinStudio - the modular Development system for the Propeller

    PropNIC - Add ethernet ability to your Propeller! PropJoy - Plug in a joystick and play some games!

    SD card Adapter - mass storage for the masses Audio/Video adapter add composite video and sound to your Proto Board
  • ForrestForrest Posts: 1,341
    edited 2008-06-20 03:07
    Yes, an Atari joystick is the way to go. Very simple to interface to a Stamp or any other microcontroller because it's just 5 micro-switches. 4 are for the joystick direction and 1 for the fire button.
  • Dan TaylorDan Taylor Posts: 207
    edited 2008-06-20 06:12
    Hmmm... Thanks for the posts. I'll look into the Atari joystick.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dan Taylor
  • T&E EngineerT&E Engineer Posts: 1,396
    edited 2008-06-20 14:35
    Take a look at this SX-28 video game project by Bean. It uses 1-2 Atari joystick controllers (of which I modified his 1 player PONG game to play 2 player). It shouldn't be that difficult to go from SX/B to PBASIC in this case.

    http://forums.parallax.com/showthread.php?p=602989
Sign In or Register to comment.