DIY Nintendo Switch/Xinput Fighstick code for ATMEGA32U4

The place for all discussion on gaming hardware
Post Reply
fluffymadness
Posts: 15
Joined: Thu Aug 18, 2016 5:31 pm

DIY Nintendo Switch/Xinput Fighstick code for ATMEGA32U4

Post by fluffymadness »

For the people that are interested in custom DIY-Arcadestick building, here's my code that I use for my Nintendo Switch Fightstick.
The whole project is flashable via Arduino IDE.
It has a digital mode, fake analog, and fake analog mode for Super Smash Ultimate Mode with modifier key.
You can use START+SELECT to switch the mode.

The code itself emulates a Pokken Tournament Controller. You connect the microcontroller to a pc or the nintendo switch via usb after flashing. It works on both.
I use it on a pro micro board, because it has enough buttons and is dirt cheap. 2-3 bucks.
https://www.aliexpress.com/item/New-Pro ... st=ae803_3

Further Info on building and flashing the project is found on my github.
https://github.com/fluffymadness/ATMega ... Fightstick
---------------------------
Here's a similar project but for xinput (Xbox 360 Emulator)
https://github.com/fluffymadness/ATMega ... Fightstick

Have fun!
Last edited by fluffymadness on Thu Apr 04, 2019 12:42 pm, edited 2 times in total.
skum
Posts: 107
Joined: Tue May 08, 2018 6:34 pm
Location: Denmark

Re: DIY Nintendo Switch Fighstick code for ATMEGA32U4

Post by skum »

Didn't try it, don't need it, but just wanted to say you're cool to make something like this and open source it! :)
User avatar
Star1
Posts: 155
Joined: Thu Dec 03, 2015 9:28 pm
Location: Norway

Re: DIY Nintendo Switch Fighstick code for ATMEGA32U4

Post by Star1 »

Might try my hand at this, I have a pro micro I'm not using for anything. Cool stuff!
User avatar
emphatic
Posts: 7923
Joined: Mon Aug 18, 2008 3:47 pm
Location: Alingsås, Sweden
Contact:

Re: DIY Nintendo Switch Fighstick code for ATMEGA32U4

Post by emphatic »

Very cool, man.
Image | My games - http://www.emphatic.se | (Click) I have YEN stickers for sale
RegalSin wrote:Street Fighters. We need to aviod them when we activate time accellerator.
User avatar
Konsolkongen
Posts: 2315
Joined: Fri May 16, 2008 8:28 pm
Location: Denmark

Re: DIY Nintendo Switch Fighstick code for ATMEGA32U4

Post by Konsolkongen »

Does it work on PC and PS3 (PS3 works with pretty much any UBS controller) too? :)

I have ordered a bunch of those Retro-Bit Mega Drive Controllers and would like to install this into one of them.
fluffymadness
Posts: 15
Joined: Thu Aug 18, 2016 5:31 pm

Re: DIY Nintendo Switch Fighstick code for ATMEGA32U4

Post by fluffymadness »

Konsolkongen wrote:Does it work on PC and PS3 (PS3 works with pretty much any UBS controller) too? :)

I have ordered a bunch of those Retro-Bit Mega Drive Controllers and would like to install this into one of them.
Works fine on pc, but I have no idea if it works on ps3.
User avatar
Konsolkongen
Posts: 2315
Joined: Fri May 16, 2008 8:28 pm
Location: Denmark

Re: DIY Nintendo Switch Fighstick code for ATMEGA32U4

Post by Konsolkongen »

Most likely works fine. Thanks :)
SuperSpongo
Posts: 320
Joined: Sat Mar 17, 2018 2:49 pm
Location: Germany

Re: DIY Nintendo Switch Fighstick code for ATMEGA32U4

Post by SuperSpongo »

Very cool project! Thanks!
User avatar
buttersoft
Posts: 383
Joined: Sun Jul 24, 2016 7:49 am

Re: DIY Nintendo Switch Fighstick code for ATMEGA32U4

Post by buttersoft »

Sweet project, thank you for sharing. I need to look into replacing some of the zero delay encoders i'm using with something that lags less, you wouldn't have any information regarding that, would you?
fluffymadness
Posts: 15
Joined: Thu Aug 18, 2016 5:31 pm

Re: DIY Nintendo Switch Fighstick code for ATMEGA32U4

Post by fluffymadness »

buttersoft wrote:Sweet project, thank you for sharing. I need to look into replacing some of the zero delay encoders i'm using with something that lags less, you wouldn't have any information regarding that, would you?
You could try going the xinput route.
It is by far the most convenient I think, because nothing needs to be configured in games and apps.
Here's my code https://github.com/fluffymadness/ATMega ... Fightstick
XINPUT should get the USB polling down to 4ms (250hz) instead of the 8ms that DirectInput gives us.
And yes, runs on the same dirt-cheap pro micro :)
I have not done any professional lag testing, but I think it should perform pretty well.
Post Reply