Hi,
I have a project for which I would like to control three seperate stepper motors independently using the analog sticks on a game-pad. One analog stick will control one pair of steppers (x and y) and the second stick will control the final motor. I was initially planning on doing this with a Raspberry Pi and a PS3 game pad. This way I could use the shoulder buttons to switch between coarse and fine motions (i.e. full steps and micro-steps). Now I'm wondering if it will be possible to do it with a Teensy 3.0 instead of a Rasperry Pi. I prefer the simplicity of the Teensy for this task. I know that analog control sticks are available on SparkFun (https://www.sparkfun.com/products/9032) but I like the form factor of the joypad with the buttons, etc. So are there any libraries out there which will allow me to plug a USB joypad into the Teensy and convert position of the analog sticks into whatever output signal I choose (e.g. a "tone" or an analog output) to contol the stepper drivers? I guess an alternative might be open up the joypad, by-pass the USB, and hook up the buttons and analog sticks I need directly to the Teensy input pins. That would be a pain, though. Anyone have suggestions?
EDIT: it seems that this might be one option: http://airspayce.com/mikem/arduino/USBJoystick/ and another: USB host shield and PS3: http://www.circuitsathome.com/mcu/s...usb-host-library/comment-page-1#comment-22205
Any other suggestions would, of course, be welcome!
I have a project for which I would like to control three seperate stepper motors independently using the analog sticks on a game-pad. One analog stick will control one pair of steppers (x and y) and the second stick will control the final motor. I was initially planning on doing this with a Raspberry Pi and a PS3 game pad. This way I could use the shoulder buttons to switch between coarse and fine motions (i.e. full steps and micro-steps). Now I'm wondering if it will be possible to do it with a Teensy 3.0 instead of a Rasperry Pi. I prefer the simplicity of the Teensy for this task. I know that analog control sticks are available on SparkFun (https://www.sparkfun.com/products/9032) but I like the form factor of the joypad with the buttons, etc. So are there any libraries out there which will allow me to plug a USB joypad into the Teensy and convert position of the analog sticks into whatever output signal I choose (e.g. a "tone" or an analog output) to contol the stepper drivers? I guess an alternative might be open up the joypad, by-pass the USB, and hook up the buttons and analog sticks I need directly to the Teensy input pins. That would be a pain, though. Anyone have suggestions?
EDIT: it seems that this might be one option: http://airspayce.com/mikem/arduino/USBJoystick/ and another: USB host shield and PS3: http://www.circuitsathome.com/mcu/s...usb-host-library/comment-page-1#comment-22205
Any other suggestions would, of course, be welcome!
Last edited: