Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: XBOXPadMicro - A firmware that turns Arduino Micro (Leonardo) into an XBOX pad!  (Read 58431 times)

0 Members and 4 Guests are viewing this topic.

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 87
  • Last login:December 29, 2018, 12:48:52 am
  • I want to build my own arcade controls!
I was chatting with sharpfork about the lack of MinimusAVR cheap alternatives and he mentioned that people started to make pad-hacks again thanks to the AVR shortage.

I've then created a firmware for cheapo Arduino Mini clones like this one: http://www.ebay.com/itm/401051886672

Beta testers are welcome!  ;D

Instructions can be found at: https://drive.google.com/open?id=1wF3S697crrigmpRB93IHXBsS6oylC_RSxvSNOloRzB4



Cheers

bootsector
« Last Edit: December 20, 2016, 07:05:49 am by bootsector »

plazma

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:April 11, 2021, 11:37:54 am
  • I want to build my own arcade controls!
Nice. I bought cheap S controller clones for rewiring.

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 805
  • Last login:Yesterday at 02:42:27 am
Does the library manage the rumble motors?

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 87
  • Last login:December 29, 2018, 12:48:52 am
  • I want to build my own arcade controls!

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:March 25, 2024, 08:10:48 pm
  • ...
So this is for use with the original xbox?

I'm assuming it doesn't show up on a PC as an xinput controller?


bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 87
  • Last login:December 29, 2018, 12:48:52 am
  • I want to build my own arcade controls!
So this is for use with the original xbox?

I'm assuming it doesn't show up on a PC as an xinput controller?

Yes, this is a Classic/Original XBOX encoder, so it shows up to the XBOX as a regular controller. It works with the Classic/Original XBOX only, not PCs or any other console.

pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10871
  • Last login:Yesterday at 11:58:22 pm
  • Obey.
    • The Chris Burke Band
Thanks, man, this was starting to be a real problem for using original Xbox.


sokignano

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:February 09, 2022, 01:52:41 pm
  • I want to build my own arcade controls!
I was looking at the pinout and I have one question? Where does the out to the xbox get wired in? The micro usb port?

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 87
  • Last login:December 29, 2018, 12:48:52 am
  • I want to build my own arcade controls!
Yes, you connect it to the XBOX via  the micro USB port.

shaolindrunkard

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 570
  • Last login:August 19, 2021, 11:13:43 am
Forgive me and no offense but, why?

pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10871
  • Last login:Yesterday at 11:58:22 pm
  • Obey.
    • The Chris Burke Band
Cheap and easy way to wire up arcade controls to an Xbox.


sokignano

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:February 09, 2022, 01:52:41 pm
  • I want to build my own arcade controls!
So I flashed the board hooked up some buttons and it worked!!!!!!! Thank you!

I have one request. Can you program on the unused pins to be a multiple button press. Like the 2 triggers, back, and black button, so that I can wire up one button to reset the system.

Thank you again!

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 87
  • Last login:December 29, 2018, 12:48:52 am
  • I want to build my own arcade controls!
So I flashed the board hooked up some buttons and it worked!!!!!!! Thank you!

I have one request. Can you program on the unused pins to be a multiple button press. Like the 2 triggers, back, and black button, so that I can wire up one button to reset the system.

Thank you again!

So we have the first beta-tester!  ;D

There are no unused pins. All pins are mapped to some functionality of an original XBOX controller.

You could always wire up a single button to all desired functions to a single GND wire, that would achieve what you just mentioned.

Did you have the chance to check if all pin functions in the diagram below are correct?



You can use the Test Pad App in order to verify that!

Let me know!

sokignano

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:February 09, 2022, 01:52:41 pm
  • I want to build my own arcade controls!
With this stick I was making for a friend and only needed it for arcade games so I gave him a simple Capcom style layout. With a few extra buttons for Coin, Start, L3 and System Reset. So I wired up the L, R, Back, and Black buttons together, and anytime i pressed any of the aforementioned buttons the system would reset lol So i thought if I could get one of the pins that wasnt being used to emulate the L,R,B,BL reset on one pin that would have been great! :)

sokignano

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:February 09, 2022, 01:52:41 pm
  • I want to build my own arcade controls!
I just read the rest of the post, the buttons I tested were, UP, DOWN, LEFT, RIGHT, A, B, X, Y, LT, RT, BACK, START ,R3, BLACK. I didnt have any use for the analog Sticks, or L3, or WHITE

MaxRod

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:November 10, 2018, 09:20:47 am
  • I want to build my own arcade controls!
As I've mentioned. I still have a stash of minimus here. There doesn't seem to be much demand for them to continue pursuing a larger order of these. I have about 40 left.

Re: the minimus site. I asked about the site but didnt get a definitive answer. I know people that could host the site

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19955
  • Last login:Yesterday at 10:19:17 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
As I've mentioned. I still have a stash of minimus here. There doesn't seem to be much demand for them to continue pursuing a larger order of these. I have about 40 left.

Re: the minimus site. I asked about the site but didnt get a definitive answer. I know people that could host the site
What were you selling them for again?
***Build what you dig, bro. Build what you dig.***

MaxRod

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:November 10, 2018, 09:20:47 am
  • I want to build my own arcade controls!
initially i was just offering them at prices depending on who wanted them and how many they wanted.

pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10871
  • Last login:Yesterday at 11:58:22 pm
  • Obey.
    • The Chris Burke Band
initially i was just offering them at prices depending on who wanted them and how many they wanted.

:dizzy:


yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19955
  • Last login:Yesterday at 10:19:17 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
initially i was just offering them at prices depending on who wanted them and how many they wanted.

:dizzy:
Sooooooooo..... bro price for one shipped?
***Build what you dig, bro. Build what you dig.***

MaxRod

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:November 10, 2018, 09:20:47 am
  • I want to build my own arcade controls!
pm me a place where a postman can hand it to you.

Rodent.Vienna

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:November 20, 2020, 03:47:26 am
  • I want to build my own arcade controls!
Hi,

thank you for porting this over to 32u4!

an Option to turn the right analog stick pins into mouse x+ x- y+ y- pins for trackball, spinners or encoders would be nice :)

Thank you for your efforts!
Alex

Brian74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1089
  • Last login:March 10, 2024, 01:55:58 pm
  • Yep... I built that!!
Subscribed
         

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 87
  • Last login:December 29, 2018, 12:48:52 am
  • I want to build my own arcade controls!
My super cheap Arduino Micro clone boards from eBay has just arrived. I've flash the firmware as per documentation and everything works as intended.

Since the purpose of this firmware is solely to prevent people to padhack classic XBOX joysticks in order to get their arcade built in a simple and cheap way, I shall not add more features to this firmware, unless it's a critical bug.

As for the features such as adding analog capabilities, I will leave that to the upcoming KADE miniArcade 2.0 board...

scroeffie

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 36
  • Last login:September 02, 2020, 04:05:48 pm
  • I want to build my own arcade controls!
KADE miniArcade 2.0 < ?? there is going to be a kade 2.0 ? for the xbox ??

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 87
  • Last login:December 29, 2018, 12:48:52 am
  • I want to build my own arcade controls!
KADE miniArcade 2.0 < ?? there is going to be a kade 2.0 ? for the xbox ??

For the XBOX and for all the devices listed in the "Output Systems" below:



Output will be plug-and-play and automatic (no need to change firmware between output systems).

It will be based on an Atmega32u4 (Arduino Micro is not an option because it lacks a couple of usable pins) and it will support several analog input ports, mappable to any button for output systems.

PL1 should get a sample soon and he should share his discoveries in a post around here...
« Last Edit: January 31, 2017, 02:57:44 pm by bootsector »

scroeffie

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 36
  • Last login:September 02, 2020, 04:05:48 pm
  • I want to build my own arcade controls!
so its just a software change not the hardware

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 87
  • Last login:December 29, 2018, 12:48:52 am
  • I want to build my own arcade controls!
so its just a software change not the hardware

Both Software AND Hardware have changed compared to the original KADE miniArcade

scroeffie

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 36
  • Last login:September 02, 2020, 04:05:48 pm
  • I want to build my own arcade controls!
so when does the new kade come out ? wil they have another kickstarter

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 87
  • Last login:December 29, 2018, 12:48:52 am
  • I want to build my own arcade controls!
so when does the new kade come out ? wil they have another kickstarter

No ETA. We still need to discuss how this is going to be released. Probably not via kickstarter.

scroeffie

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 36
  • Last login:September 02, 2020, 04:05:48 pm
  • I want to build my own arcade controls!
oke

scroeffie

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 36
  • Last login:September 02, 2020, 04:05:48 pm
  • I want to build my own arcade controls!
if it wil be solder only its not for me but wil see :)

scroeffie

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 36
  • Last login:September 02, 2020, 04:05:48 pm
  • I want to build my own arcade controls!
any update !

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Online Online
  • Posts: 9393
  • Last login:Today at 08:42:35 am
  • Designated spam hunter
any update !
How about an unexpected XBOXPadMicro update?

Since I know that you're looking for a no-soldering solution, here it is.

The Arduino Micro knockoff board here sold by "gowoops" comes with header pins already soldered onto it.   ;D

Wiring Option 1:
Use pre-fab 4-pin harnesses like this and a daisy-chan ground like this from Paradise Arcade Shop. (If you ask Bryan and Susan, they might be able to substitute a daisy-chain ground with one female dupont pin on one end instead of all 0.187" Quick Disconnects)

Wiring Option 2:
Connect dupont jumpers like the ones here to the desired header pins.

Cut off the other end of the jumper, strip the wire, and feed it into one side of a euro-style terminal strip like this.

On the other side of the terminal strip, connect pre-crimped wires cut from a JAMMA harness. (cut off and discard the big edge connector)


Scott

johnnygal2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:October 08, 2022, 03:16:04 am
  • I want to build my own arcade controls!
I have a Arduino Micro clone (http://www.ebay.co.uk/itm/252639960296?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT) that I'm trying to program with avrdude on widows 8.

I can see them COM port ok in device manager. I have tried the drivers supplied with this XBOXPadMicro zip and also the latest.
I always get the error: Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding

I have tried resetting the Arduino and running avrdude straight away (failing until the com port is re-established) but get the same error.
I can download a sketch ok using Arduino IDE.

After each try, if I rerun avrdude again, it will hang rather than giving the error message above. It will do this until I reset the Arduino.

The verbose output from avrdude is attached.

Any suggestions anyone?

Thanks,
John
« Last Edit: February 12, 2017, 02:10:33 pm by johnnygal2 »

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Online Online
  • Posts: 9393
  • Last login:Today at 08:42:35 am
  • Designated spam hunter
I can see them COM port ok in device manager. I have tried the drivers supplied with this XBOXPadMicro zip and also the latest.
I always get the error: Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding

I have tried resetting the Arduino and running avrdude straight away (failing until the com port is re-established) but get the same error.
I can download a sketch ok using Arduino IDE.
Programming the Micro can be a bit finnicky sometimes.

You might want to use ArduinoBuilder to load the "XBOXPadMicro.hex" firmware file.

There's a simple 3-step tutorial here.


Scott

johnnygal2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:October 08, 2022, 03:16:04 am
  • I want to build my own arcade controls!
Thanks for that Scott. However, even with Arduino Builder I cannot load my hex.

I get the error:
Forcing reset using 1200bps open/close on COM7... no new port found

Searching for similar errors, some people found changing usb port helped - not for me. I'll maybe try another PC.

Just to check....I should be able to program this directly using the USB port on the Arduino Micro? Or should I be using an FTDI adapter connected to the ICSP header on the Arduino?

Thanks.

johnnygal2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:October 08, 2022, 03:16:04 am
  • I want to build my own arcade controls!
Ahh ok, the ICSP header isn't a serial port, so would need a separate programmer to use this port. Guess Im doing it right then by using the onboard usb on the Arduino.

I tried another PC with the same result, even before loading the Arduino drivers it gave the same error so perhaps my issues lies in the drivers.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Online Online
  • Posts: 9393
  • Last login:Today at 08:42:35 am
  • Designated spam hunter
Thanks for that Scott. However, even with Arduino Builder I cannot load my hex.

I get the error:
Forcing reset using 1200bps open/close on COM7... no new port found
Plug in your Micro then open Arduino Builder.

Does it show "COM7" (or "COM8", etc.) to the right of the "Build Only" button?



The "finnicky" part is that while "COM1" always shows up, sometimes the second port "COM7" doesn't.

Here's how I fix COM7 not showing up:
1. Close all Arduino loading software. (Arduino Bulder and Arduino 1.0.6 software)

2. Plug the Micro board into a USB connection.

3. Open the Arduino 1.0.6 software.

4. Open one of the small default sketches. (I usually use "Blink".)

5. Click on the right arrow (Upload) icon.

6. About 1-2 seconds later, press the reset button on the Micro to put it into bootloader mode.

- Perfect timing on the press is just before the software finishes compiling and starts uploading.

- Too soon and the board drops out of bootloader mode before the upload is complete. (upload fails)

- Too late and you interupt the upload. (upload fails)

7. If the upload fails, repeat steps 5 and 6.

8. Once the upload succeeds, go to menu "Tools-Serial Port" to verify that COM7 is visible.

9. Close the Aduno 1.0.6 software.

10. Open Arduino Builder.

11. Set board type to "Arduino Micro".

12. Click on "Load Skech/HEX" and select the "XBOXPadMicro.hex" file.

13. Click on "COM7" to upload the hex to the board.

Just to check....I should be able to program this directly using the USB port on the Arduino Micro? Or should I be using an FTDI adapter connected to the ICSP header on the Arduino?
Yes, you can load the hex via the USB IF you can see the second COM port. (COM7)


Scott

johnnygal2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:October 08, 2022, 03:16:04 am
  • I want to build my own arcade controls!
Thanks Scott, what a polava!

Seeing as though Arduino IDE does it from the GUI, I thought other tools would be able to emulate it without this jumping through hoops ;-)

I didn't have any luck using the exact method you specified, but using ArduinoBuilder and resetting just as I pressed the "COMxx" button, it spotted the new com port and programmed my hex ok.

Cheers,
John
« Last Edit: February 11, 2017, 04:21:48 pm by johnnygal2 »