custom USB controller adapters

https://github.com/MiSTer-devel/Main_MiSTer/wiki

Moderators: Mug UK, Zorro 2, spiny, Greenious, Sorgelig, Moderator Team

Slade
Atari freak
Atari freak
Posts: 54
Joined: Tue Dec 27, 2016 11:02 pm

Re: custom USB controller adapters

Postby Slade » Sun Dec 31, 2017 3:39 am

I realise this is for a different device, but if you have an Arduino UNO or clone around you could try this: https://github.com/AlanChatham/UnoJoy

Bit more of a headache to set up, but it's an option and the 328p clone hardware is dirt cheap. If only I could find the 3-4 of them I have floating around.

Sorgelig
Atari God
Atari God
Posts: 1509
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: custom USB controller adapters

Postby Sorgelig » Sun Dec 31, 2017 7:18 am

Slade wrote:I realise this is for a different device, but if you have an Arduino UNO or clone around you could try this: https://github.com/AlanChatham/UnoJoy

Bit more of a headache to set up, but it's an option and the 328p clone hardware is dirt cheap. If only I could find the 3-4 of them I have floating around.

this is completely unnecessary and redundant. Arduino micro is much smaller and emulates HID device without such hassle.

Slade
Atari freak
Atari freak
Posts: 54
Joined: Tue Dec 27, 2016 11:02 pm

Re: custom USB controller adapters

Postby Slade » Sun Dec 31, 2017 12:52 pm

Sorgelig wrote:
Slade wrote:I realise this is for a different device, but if you have an Arduino UNO or clone around you could try this: https://github.com/AlanChatham/UnoJoy

Bit more of a headache to set up, but it's an option and the 328p clone hardware is dirt cheap. If only I could find the 3-4 of them I have floating around.

this is completely unnecessary and redundant. Arduino micro is much smaller and emulates HID device without such hassle.


I have a bunch of nano's based on the Atmega 328P. They're 18x44mm, so small enough to do what you need. It's an alternative, for people who have them on hand, rather than buying new hardware (even if it is dirt cheap).

I realise the Uno is huge and it's not an ideal solution to put into a joystick. The nano on the other hand should work fine.

Sorgelig
Atari God
Atari God
Posts: 1509
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: custom USB controller adapters

Postby Sorgelig » Sun Dec 31, 2017 1:39 pm

Nano doesn't have native USB port, so it won't be able to emulate HID device. You need Arduino based on ATMega32U4.

Slade
Atari freak
Atari freak
Posts: 54
Joined: Tue Dec 27, 2016 11:02 pm

Re: custom USB controller adapters

Postby Slade » Thu Jan 25, 2018 12:25 pm

Newsdee wrote:I can get directions working but not the buttons. I followed the example to the letter and tested for connectivity on relevant pins, I even tried using shorter connections but none of the button work. Maybe a problem with my board? Unfortunately I only have one right now :(


I tested some of the examples on Windows and they worked fine. I ordered a board from Aliexpress, which arrived today. I've only done a quick test, but so far the simple joystick test works ok (4 directions + fire button). As does the buttons example.

I need to solder the pin headers in place to test it properly, and I should order some more joystick parts to make a smaller 2 button joystick.

User avatar
Newsdee
Atari God
Atari God
Posts: 1090
Joined: Fri Sep 19, 2014 8:40 am

Re: custom USB controller adapters

Postby Newsdee » Thu Jan 25, 2018 11:40 pm

Which board did you get exactly?

Slade
Atari freak
Atari freak
Posts: 54
Joined: Tue Dec 27, 2016 11:02 pm

Re: custom USB controller adapters

Postby Slade » Fri Jan 26, 2018 7:42 am

This is the one I ordered: https://www.aliexpress.com/item/5sets-l ... 47161.html

Yes, that's the correct URL, it just points to a different item than you think it will.

THaase
Retro freak
Retro freak
Posts: 11
Joined: Mon Oct 16, 2017 8:39 am
Location: Germany

Re: custom USB controller adapters

Postby THaase » Tue Jan 30, 2018 1:54 pm

cvenditti wrote:
Sorgelig wrote:You don't need any other components for you converter. Just wire any retro joystick directly to its GPIO and write the firmware :)

nes.png
No need to write the firmware, this guy already did it (partially):
https://github.com/mcgurk/Arduino-USB-H ... ickAdapter



I've checked this ... the code itself isn't working (anymore) due to an update of the Joystick Lib ..... and I personally don't like the flying leads to the Joystick connectors and ... and ... and ....

So I've played a little bit (having some Pro Micro clones laying around) ....

I've started for now with DB9 for Atari Joysticks (Competition Pro Retro) (that have also the possibility to have 3 Buttons (Atari ST / Amiga) .... I've a modified one with 3 button support
Nice overview:http://wiki.icomp.de/wiki/DB9-Joystick

Output from my side:
A small PCB (KiCAD) for 2xDB9 and one Arduino Pro Micro wired for 3 Button support on both DB9
Pro Micro FW adopted to this PCB.

As I'm not allowed to attach any files - I've uploaded the stuff to dropbox https://www.dropbox.com/s/ekqlb35r581zg5q/USB2DB9.zip?dl=0.
At the moment I can't gurantee that everything is working as expected as I've not received any PCBs till now (and this will take at least 2 weeks (epacket to Germany)

cu
Thomas

Sorgelig
Atari God
Atari God
Posts: 1509
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: custom USB controller adapters

Postby Sorgelig » Tue Jan 30, 2018 2:02 pm

THaase wrote:As I'm not allowed to attach any files - I've uploaded the stuff to dropbox https://www.dropbox.com/s/ekqlb35r581zg ... 9.zip?dl=0.

If you want, i can add you into MiSTer github group, so you will be able to add your repository(ies) where you will be able to update your work.

THaase
Retro freak
Retro freak
Posts: 11
Joined: Mon Oct 16, 2017 8:39 am
Location: Germany

Re: custom USB controller adapters

Postby THaase » Tue Jan 30, 2018 2:07 pm

This is nice - but I think at the moment too much .....
I first need to buy my FPGA Board, solder my SDRam Board and so on - before I can't really test it makes no sense to me!
Nevertheless - THANKS!

Sorgelig
Atari God
Atari God
Posts: 1509
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: custom USB controller adapters

Postby Sorgelig » Tue Jan 30, 2018 2:11 pm

no problem - just let me know.


Return to “MiSTer”

Who is online

Users browsing this forum: No registered users and 1 guest