natinusala
Member
Hello,
I would like to build a USB Game Controller using a Teensy, to use it with a Raspberry Pi on a handheld retro console.
The controller will have 14 buttons, using momentary push buttons :
And 2 joysticks, from what I understood each has 2 analog pins (X and Y axis).
That makes a total of 14 push buttons, and 4 analog. From what I've read, the push buttons can be used with either digital or analog inputs, but the joysticks obviously need analog inputs.
I would like to fit everything on a single Teensy to make a "standalone" controller (self-powered via USB, so I'll be using the 3.3v pins of the board), working on Windows for testing and eventually the Raspberry Pi (and maybe other devices too). The code will be a simple loop where I check for each pin and send them as joystick buttons / axis via USB.
Now here is my question : which Teensy should I buy ? Will a Teensy 3.2 be enough for that ? Will it have enough pins, and of the right type ? I also want to add VOL-, VOL+ and MENU buttons but I need to emulate a keyboard for them, so I'll wire them directly to the Raspberry Pi (unless the Teensy has enough pins AND the capability to emulate both a USB keyboard and joystick).
Thanks for the input
I would like to build a USB Game Controller using a Teensy, to use it with a Raspberry Pi on a handheld retro console.
The controller will have 14 buttons, using momentary push buttons :
- A, B, X, Y
- START, SELECT
- LT, RT, LB, RB
- DPAD UP, DOWN, LEFT, RIGHT
And 2 joysticks, from what I understood each has 2 analog pins (X and Y axis).
That makes a total of 14 push buttons, and 4 analog. From what I've read, the push buttons can be used with either digital or analog inputs, but the joysticks obviously need analog inputs.
I would like to fit everything on a single Teensy to make a "standalone" controller (self-powered via USB, so I'll be using the 3.3v pins of the board), working on Windows for testing and eventually the Raspberry Pi (and maybe other devices too). The code will be a simple loop where I check for each pin and send them as joystick buttons / axis via USB.
Now here is my question : which Teensy should I buy ? Will a Teensy 3.2 be enough for that ? Will it have enough pins, and of the right type ? I also want to add VOL-, VOL+ and MENU buttons but I need to emulate a keyboard for them, so I'll wire them directly to the Raspberry Pi (unless the Teensy has enough pins AND the capability to emulate both a USB keyboard and joystick).
Thanks for the input