brainsnsa.blogg.se

Diy usb converter adapter
Diy usb converter adapter






diy usb converter adapter

(I had to invert the signal read back from the pins as with the 5v pull-up - the signal is high when nothing is happening & low when a button / joystick direction is pressed.) The main loop basically loops over every one of the 21 pins we're interested in, reads the value of each one (using: !(digitalRead(p) & 1) (notice I'm inverting the signal with the ! NOT keyword)) & then outputs a corresponding USB-Joystick button press (using: Joystick.button()). This makes the pins sit at 5v, which can then be grounded by the switches within the Jamma controls. Set all I/O pins to input (With pull-up!).įor (int p = 0 p 20 which are setup as Inputs (using: pinMode(p, INPUT) ) and the pins 5v pull-ups activated (by: digitalWrite(p, HIGH) ). The provided Teensy/Arduino editor (that can be found on the siteĪbove) I wrote the following program (don't worry - it's not too complicated): Where it thinks it's a USB keyboard/mouse/Joystick (simultaniously as it Teensyduino integration is the ability to put the Teensy into a mode Teensy 2's are available at: for $16 and for this project I used Teensyduino which is detailed on the same site.īasically puts the Teensy into a state where it thinks it's an Arduino,Īnd as such is rendered much simpler to program. Is based on a VGA LCD panel, so there is a VGA cable that can beīrought out to the lap-top - handling the visual side of things :D) Short circuited to ground by the controls in the cabinets CP. This arrangement allows the Teensy's I/O pins to be The ground wire from the Jamma connector was wired to the Teensy's So I connected 21 of them to the Player 1 & 2 joystick, coin &īutton (& service) connections of the finger board.įor the Teensy is provided by the computer connected to the USB, and Time I wanted to be able to connect my lap-top to my BarTop (or indeedĪny other Jamma cabinet), so I grabbed one of the fingerboards kindly providedĪ pretty stright forward setup, the Teeny 2 processor has 22 I/O pins. Switching signals (so I could play Mame & run my Jamma boards). Signals from my HotRod Joystick controller & spat out USB joystick and Jamma The past I had built a custom adapter that read the PS2-Keyboard A couple of days ago there seemed to be an onslaught of soap-opera's :/ so it was back into the lab (read corner) to play with some tech.








Diy usb converter adapter