Build Your Own Arcade Controls Forum
Main => Main Forum => Topic started by: Mega-emu on May 17, 2012, 12:30:28 pm
-
I just posted rev b version of 4 snes controlers to usb .
if any one would like to try it out the schematic and hex file can be downloaded from MEGA-EMU.COM
MEGA-EMU.COM is the home of the new game control for arcade and game console emulators.
-
Hmm using an Atmel AT90USB162 eh? I have tons of minimus avr dev mods here. Wonder if they will work. Tried unsuccessfully to use the lufa libs to make a standard usb hid controller using them once in order to make a dirt cheap arcade encoder. Failed though, just not a very good coder.
Sounds like you have a great project on your hands! :)
-
The USB162 is not a typical AVR. It has a dedicated USB controller in it, which is what LUFA will drive. You won't be able to use any "normal" AVR in its place, but the other USB enabled AVRs should all have a compatible controller (and of course the same CPU core).
I've used LUFA before. It's pretty clean, actually. It's MUCH better than most vendor provided USB stacks. I wish it had better inherent handling of multiple HID interfaces, but you can wrap it and make that reasonably nice.
One thing to watch out for with LUFA: many of the "overridable events" in LUFA are implemented using weak binding. If you create a source file that has nothing but event overrides in it, the linker will ignore the whole file, instead substituting the weak reference from LUFA. I had to place something that was directly referenced from another part of my code into that file in order to get the linker to link it in and override LUFA's weakly referenced stubs. I'm not sure if there's a linker option to fix that or if it might actually be considered a bug in the toolchain I was using (this was a couple years ago).
-
The code for the at90usb162 4 SNES was done using the atmel stack .
it took me a long time to learn how to write the code in C for decoding 4 SNES .
I use the at90usb162 4 SNES code on my MEGA-EMU PCB
The mega-emu pcb works great in arcade cabinet's. If you use multi emulators like mame, zsnes,bliss,bee,kega,stella,
or any other classic emulator the mega-emu pcb can be plugged into the usb port or a classic printer port, connect your buttons, plug in your classic controlers, map your buttons and start playing.
The Technical data for the mega-emu pcb will soon be available for download @ Mega-emu.com
-
:dizzy: