Custom portable Pi using xbox 360 controller split in half.
-
I am creating a potable pi, and to help make comfortable controls I have cut a xbox controller in half and wiring the buttons to a teensey 3.2 https://www.pjrc.com/teensy/teensy31.html It is supposed to act like a generic usb gamepad.
I thought it was going to be straight forward. I have run into one big problem. I connected a general ground wire to the board, a 3.3v to power the thumbsticks and a wire to each button. It looks like when I have the 3.3v connected to power the Thumbsticks (potentiometers) work properly, but then the buttons won't register. The opposite is true if I disconnect the 3.3v then buttons works, but not thumbsticks.
I can't think of what to do next, do I have to break up the ground, so the thumsticks (and trigger) don't share a ground with buttons? Finding that does not seem like a fun task.
I have seen people post their custom projects here, maybe someone has better electronic / circuit knowledge can shed some light.
-
@maz i think you might have the ground and 3.3v backwards on the thumbsticks. I would test to verify they are a shared ground. Then test to verify that the buttons are indeed on ground and not 3.3v. To test that you need to test with the analogs hooked up and not hooked up. And there is a possibility that the analogs might work with only 5v or ground hooked up. It is how older joysticks and paddles are.
-
Thanks, I will test that after work tonight. I should have thought of that as I couldn't find an exact pinout for the thumbsticks on the board. I just looked at how they are setup on thumbsticks you get from sparkfun / adafruit.
Wish I tried that last night, now I have to sit here at working thinking about something so simple for so long. -
I can't say thank you enough @edmaul69 I totally should have thought of that before. I am pretty sure I will always remember in the future at least.
That worked, I swapped what I thought was ground and 3.3v and it turns out I soldered to the wrong pings on the board!
-
@maz glad to help.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.