The NEW Build Your Own Arcade Controls

Main => Audio/Jukebox/MP3 Forum => Topic started by: Burke LaShell on February 20, 2010, 02:41:19 pm

Title: Jukebox USB joystick hack - HOWTO
Post by: Burke LaShell on February 20, 2010, 02:41:19 pm
I thought I'd post the details of my USB joystick hack, in case it could help someone.

I purchased a USB joystick from DealExtreme. It was just $9.19, shipped, and it's easy to hack.
http://www.dealextreme.com/details.dx/sku.618 (http://www.dealextreme.com/details.dx/sku.618)
(http://www1.dealextreme.com/productimages/sku_0618_1.jpg)

Remove the small screws on the back side of the joystick to open it.  My joystick had one screw hidden under a round sticker.  The wires from the USB cable are really small and delicate.  I added a few globs of hot glue where they connect to the circuit board to give them some more strength.

I removed a couple smaller boards, removed the rumble motors, and removed the left and right triggers.  Remove the arrow buttons.  I only needed three buttons for my jukebox, so the arrows buttons were perfect.  In this picture, you can see the copper pads under where the arrow buttons used to be, with my wires soldered.
(http://lh4.ggpht.com/_J1eC-zlUTEE/S4Av7QeqAzI/AAAAAAAAAG4/JSX3QVLSUi0/s640/IMG_1193.jpg)

When you press down on a button on the joystick, the button "short circuits" across two halves of a copper pad.  To hack the joystick, we need to solder wires to the two halves of the copper pad, and then attach the wires to the terminals of an external button.  That way, when you press the external button, it shorts the two halves of the pad and the joystick will record a button push.

One half of the pad is "ground" and is shared among all the buttons.  Just look at the traces and see which path connects to half of all the pads.  That's the ground (you'll connect this to the common terminal on your external button).  The other half of the pad will be connected to the NO terminal of your external button.

The easiest way to solder a wire to a copper pad is to drill a small hole through the pad, poke the wire up through the hole, apply solder, and then cut the extra wire poking out of the solder.  Amazon has some cheap drill bits for this... http://www.amazon.com/gp/product/B000FMYG8U/ref=oss_product (http://www.amazon.com/gp/product/B000FMYG8U/ref=oss_product)

I nibbled away some of the plastic and ran the wires out of the handle of the joystick.  I mounted the joystick to a small board, and ran the wires to a barrier strip.  You can get this at Radio Shack for a couple of bucks. http://www.radioshack.com/product/index.jsp?productId=2103983 (http://www.radioshack.com/product/index.jsp?productId=2103983)
(http://lh4.ggpht.com/_J1eC-zlUTEE/S4Av73WIcrI/AAAAAAAAAG8/DvK-XczB-tw/s512/IMG_1198.jpg)  Label each of the wires (Up, Down, Left, Right, Ground).

Next, you need to connect the wires to your external buttons.  The common terminal of the buttons are all connected together, and connect to the ground screw on the barrier strip.  The Up, Down, and Right external button NO terminal connects to the corresponding connection on the barrier strip.
(http://lh5.ggpht.com/_J1eC-zlUTEE/S4Av8a4P8pI/AAAAAAAAAHA/r083R9gqGGk/s640/IMG_1195.jpg)

I connected the buttons below the touch screen, and duplicate buttons behind the bar.

For my jukebox, Up=volume up, Down=volume down, and right=skip song.
(http://lh3.ggpht.com/_J1eC-zlUTEE/S4Av9J0y5fI/AAAAAAAAAHE/TYdQKx_FE5M/s512/IMG_1200.jpg)

Once everything is wired up, you need some software to translate the button presses to keys.  I used JoyToKey...  http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm (http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm)

I use AudioSoft eJukebox software.  There are lots of shortcut keys that can be mapped to physical buttons if you want. http://www.audiosoft.net/forums/viewthread.php?tid=2361#pid78520 (http://www.audiosoft.net/forums/viewthread.php?tid=2361#pid78520)

Overall, this was a pretty easy hack, with pretty cool results.
(http://lh5.ggpht.com/_J1eC-zlUTEE/S4Av97i1XeI/AAAAAAAAAHI/ysrxYPv2rFk/s512/IMG_1201.jpg)

--Burke
Title: Re: Jukebox USB joystick hack - HOWTO
Post by: Chris on February 22, 2010, 02:08:33 am
Once everything is wired up, you need some software to translate the button presses to keys.  I used JoyToKey...  http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm (http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm)

Or use jukebox software that can natively use the gamepad input.  Is DWJukebox the only one that can?  ;)

(OK, that was pretty shameless of me... sorry.... :D )

--Chris
Title: Re: Jukebox USB joystick hack - HOWTO
Post by: HaRuMaN on February 22, 2010, 01:01:00 pm
The easiest way to solder a wire to a copper pad is to drill a small hole through the pad, poke the wire up through the hole, apply solder, and then cut the extra wire poking out of the solder.

Just as long as you don't wreck any electronic parts / traces on the other side.  This will depend entirely on the PCB you are working with.

Just out of curiosity, why didn't you just decase the whole thing, and get rid of the plastic shell altogether?
Title: Re: Jukebox USB joystick hack - HOWTO
Post by: Burke LaShell on February 23, 2010, 12:30:43 pm
Quote
Just out of curiosity, why didn't you just decase the whole thing, and get rid of the plastic shell altogether?
I considered it, but
*The USB cable coming off the board is delicate.  Keeping the case protects it.
*I still would have needed to mount the board somewhere.
*The left thumbstick works, so you can adjust volume and skip songs with it.  I thought that was cool.
Title: Re: Jukebox USB joystick hack - HOWTO
Post by: Space Fractal on February 25, 2010, 12:42:27 pm
Once everything is wired up, you need some software to translate the button presses to keys.  I used JoyToKey...  http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm (http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm)

Or use jukebox software that can natively use the gamepad input.  Is DWJukebox the only one that can?  ;)

(OK, that was pretty shameless of me... sorry.... :D )

--Chris

All my jukebox software (Arcade Music Box as well MultiFE) can use native them too. So you are not 100% alone. Howover if it works that way. then that still works. Its hence JoyToKey and such software exits ;-D.

Nice hack anyway and nice installed on your jukecab.
Title: Re: Jukebox USB joystick hack - HOWTO
Post by: prezo1 on March 03, 2010, 02:04:08 pm
were are the  green,blue,orange and brown wires going to. 
Title: Re: Jukebox USB joystick hack - HOWTO
Post by: Burke LaShell on May 17, 2010, 01:51:02 pm
Quote
were are the  green,blue,orange and brown wires going to

Brown - goes to the "common" connection on all the buttons
Green - goes to the NO (normally open) connection on the RIGHT buttons
Orange - goes to the NO (normally open) connection on the DOWN buttons
Blue - goes to the NO (normally open) connection on the UP buttons