Amazon.com: ZYOU Arcade Buttons Game USB Encoder PC Joystick - I wanted to connect sega saturn pads to usb. Sega synthetic a few usb saturn controllers on the market in japan, however they're very tough to get. I checked out the saturn controller interface and realized it'd no longer be hard to decode. On the grounds that i had unfastened pins at the atmega8, i decided to also help nes/snes controllers. The 4 directional switches and all buttons are genuinely switches to ground. Internal susceptible pull-united statesinside the avr maintain all lines excessive when the switches aren't closed. There does not seem to be any problem with switch bounce the use of microswitches, or any input lag.
Sega mega force and sg-one thousand mark iii (master system) controllers also use nine pin connectors, and it's far possible to connect them to the equal port as atari joysticks. Pin five is each an enter for fire button three on atari style sticks and 5v deliver for sega controllers. Pin 7 can deliver 5v for amiga joysticks that need it, however it is going to be pulled low for a few milliseconds every time the joystick is study. Thus far i have no longer discovered any joysticks that use 5v, as autofire circuits use the pull-u.S.A.On the fireplace button line to create oscillation. To be able to join atari/amiga fashion joysticks and an antique x-arcade stick with blown controller, i decided to make a usb joystick controller. There are multiple similar tasks at the internet, but they are designed for analogue joysticks and a restricted wide variety of buttons. The x-arcade has 12 buttons, and having greater buttons is useful for emulators like mame.
I found igor cesko's web web page and his usb implementation for atmel avr microcontrollers. I decided to apply it with an atmega8, and modified it for use as a concealed joystick. The device has x/y axis for the joystick and thirteen buttons. The avr desires only a few outside additives. A 12mhz crystal is used to provide accurate usb timing. Other than that, there are just four resistors for the usb interface. Energy is taken from usb, and filtering capacitors do not seem to be necessary.