Shop OBEX P1 Docs P2 Docs Learn Events
USB joystick — Parallax Forums

USB joystick

Jim BockJim Bock Posts: 8
edited 2008-09-29 00:15 in Robotics
My students often use USB joysticks connected to a PC to control BASIC Stamp functions on ROVs, but we would much prefer to connect the joystick directly to the Stamp and do away with the PC. It seems this should be feasible with an FTDI host chip, but USB still eludes me. Can anyone give me a start? We use both BS2's and SX's, but will try any chip if better suited.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-09-28 04:24
    The Parallax USB Memory Stick Datalogger uses the FTDI Vinculum USB host chip and is capable of talking to a USB joystick. You'd have to download and read the Vinculum firmware manual (downloadable from Vinculum's website) to see what commands to use. You'd also have to figure out the specifics of the USB joystick you'd be using. Joysticks are all different and the details of the internal registers of the joystick are all different. That's why there's usually a specific driver for each joystick.

    One of the forum users has developed an HID (human-computer interface device) driver for the Propeller that functions much the same as the Vinculum chip, but only for HID devices like joysticks. The Vinculum chip is easier to use.
  • Jim BockJim Bock Posts: 8
    edited 2008-09-29 00:15
    Thanks, Mike. That should keep us busy for a while.
Sign In or Register to comment.