Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Hacking serial db15 (gb15) joysticks?  (Read 4028 times)

0 Members and 1 Guest are viewing this topic.

IG-88

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2042
  • Last login:May 12, 2025, 10:05:04 pm
  • Posts: 48,764
Hacking serial db15 (gb15) joysticks?
« on: March 22, 2009, 03:12:14 pm »
I have a bunch of these that have been adding up over the years. Can these be successfully used as control inputs or is it worth the effort?
"I know what a HAL 9000 is... I was wondering if HAL 7600 was his retarded cousin or something..."
-HarumaN

boomstick

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 32
  • Last login:March 03, 2024, 04:35:07 pm
    • James Clay Photography
Re: Hacking serial db15 (gb15) joysticks?
« Reply #1 on: March 22, 2009, 03:24:05 pm »
In the past i have hacked some old generic game pads that had a DB9 (Serial type) connector that i used to use on my C-64 and megadrive with good results.  I de-soldered and removed the logic chip on the pcb, placed a few bridge wires where needed and re-asembled the pad.  Then wired up a Couple of DB9s to connect to my IPAC that the pads can plug into and hey presto.
Launch your frontend, select your chosen system and play away on the pad.

I would assume the same process could be done with some old joysticks, particularly if they use switches for their x/y axis like some old commadore sticks i had.  I dont think you'd have the same luck with an analogue stick though.

Heres a link you might find usefull:
http://dawgslair.com/joypad/joypad%20hack.html
It gave me the idea.
« Last Edit: March 22, 2009, 03:50:50 pm by boomstick »

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: Hacking serial db15 (gb15) joysticks?
« Reply #2 on: March 22, 2009, 03:53:23 pm »
The DB15 type are usually meant for the old style PC gameport.   They are probably analog controls and do not adapt well to being made digital. Take a look inside and see if there are any pots.

SavannahLion

  • Wiki Contributor
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5986
  • Last login:December 19, 2015, 02:28:15 am
Re: Hacking serial db15 (gb15) joysticks?
« Reply #3 on: March 22, 2009, 04:10:45 pm »
In some odd way, I miss those old DB15 sticks. Some of the best damn sticks ever made in the history of PC's came only with those DB15 connectors. There was even an old stick conversion website that sprouted up dedicated to nothing else but converting
Gameport sticks to USB.

IG-88

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2042
  • Last login:May 12, 2025, 10:05:04 pm
  • Posts: 48,764
Re: Hacking serial db15 (gb15) joysticks?
« Reply #4 on: March 22, 2009, 04:20:18 pm »
Thanks for the reply's. I grabbed a couple of the top of the pile. 1 Gravis, 1 Gravis Blackhawk and a "generic" PC propad 4. I'll assume they are analog. I will tear them apart later tonite. 

I will probably just junk them and use the USB pads I have.

Which leads me to another question, (I probably should post this under a new heading) I have never used a pc gamepad before today to play mame games. How does one remap the esc key in Mame?

SavannahLion:
Any chance of finding that site again? I tried some searching for a hour or 2 this morning on that exact subject without much luck. I know what you mean about missing using those sticks, I just don't know what to do with them...
"I know what a HAL 9000 is... I was wondering if HAL 7600 was his retarded cousin or something..."
-HarumaN

IG-88

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2042
  • Last login:May 12, 2025, 10:05:04 pm
  • Posts: 48,764
Re: Hacking serial db15 (gb15) joysticks?
« Reply #5 on: March 23, 2009, 06:39:53 pm »
Which leads me to another question, (I probably should post this under a new heading) I have never used a pc gamepad before today to play mame games. How does one remap the esc key in Mame?

Answered my own question. I haven't used a newer version than .75 seeing as it had all the games I wanted anyway. I didn't realize that the UI changed at v.107. Now it has that esc key remap option. Nice  ;)
"I know what a HAL 9000 is... I was wondering if HAL 7600 was his retarded cousin or something..."
-HarumaN

SavannahLion

  • Wiki Contributor
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5986
  • Last login:December 19, 2015, 02:28:15 am
Re: Hacking serial db15 (gb15) joysticks?
« Reply #6 on: March 24, 2009, 02:07:14 am »
SavannahLion:
Any chance of finding that site again? I tried some searching for a hour or 2 this morning on that exact subject without much luck. I know what you mean about missing using those sticks, I just don't know what to do with them...

I doubt it. I'm not in touch with the people who frequented that site and that was an eon ago. Another forum, another life. They changed the forum software and the new search engine presentation sucks major major balls. Those ---uvulas--- don't even know how to run servers, my old website code has been exposed for god knows how long and they have no brains to at least hide it.

I'll see if I can log in again and see if I can use their ass tastic search engine front to find those original posts. I wouldn't count on it though.

IG-88

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2042
  • Last login:May 12, 2025, 10:05:04 pm
  • Posts: 48,764
Re: Hacking serial db15 (gb15) joysticks?
« Reply #7 on: March 24, 2009, 06:14:44 pm »
Well, I appreciate the effort. It's not a real big issue of course, but it would be nice to use these suckers. Perhaps I/we can figure something to do with these.....

BobA, I got busy last nite with dodging tornadoes so I didn't get to tearing them apart. I will try soon tho.
"I know what a HAL 9000 is... I was wondering if HAL 7600 was his retarded cousin or something..."
-HarumaN

Bluedeath

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 206
  • Last login:June 19, 2014, 11:20:09 am
Re: Hacking serial db15 (gb15) joysticks?
« Reply #8 on: March 25, 2009, 08:39:26 am »
here in Italy we say "costa pił la salsa del pesce"  (rough translation would be the topping costs more that the fish) for cass like this,  anyhow you can use a codewarrior chip or a u-hid  interface for the hack, both options aare more indicated for stratchbuilt controls rather that hacks, they costs more than a brand new PSX style usb pad (that costs around 9$). 
I give up  fighting keyboard dislexia, I lost.

IG-88

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2042
  • Last login:May 12, 2025, 10:05:04 pm
  • Posts: 48,764
Re: Hacking serial db15 (gb15) joysticks?
« Reply #9 on: March 25, 2009, 02:36:19 pm »
Ya, I think I agree. Unfortunate.  :(
"I know what a HAL 9000 is... I was wondering if HAL 7600 was his retarded cousin or something..."
-HarumaN

Hornpipe2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 82
  • Last login:December 07, 2014, 02:09:52 pm
Re: Hacking serial db15 (gb15) joysticks?
« Reply #10 on: March 25, 2009, 04:54:05 pm »
Yeah hacking those up should be pretty straightforward.  You can either open up your gamepad and solder directly to the traces, or make use of the interface (which is dead simple): button makes a connection from GND to (button pin).  For the sticks they're just 5V pin through 0 - 100K pots and back to individual axis pin, and you could theoretically rig stick signal through a 50k resistor by default, but left shorts around it and right adds another 50k in series.

Two joysticks can be put on one joystick port with a splitter cable (you can build yourself), giving access to 4 buttons and 4 x/y directions, or 2 X/Y and 8 buttons if you separately counted joystick 2 X as 2 inputs (left, right) and joystick 2 Y as 2 inputs (up, down) - but note that you can't hit left+right or up+down at the same time so that does limit your options to about 6.

http://www.epanorama.net/documents/joystick/pc_circuits.html

Hornpipe2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 82
  • Last login:December 07, 2014, 02:09:52 pm
Re: Hacking serial db15 (gb15) joysticks?
« Reply #11 on: March 25, 2009, 04:59:57 pm »
OOPS!  You're talking about adding a game port to your key encoder.  The buttons are easy enough - just hook pins 2, 7, 10 and 14 to separate encoder pads and then pin 4 to common encoder GND.  That leaves the joysticks, which would need a way to differentiate between ~0, ~50k and ~100k resistance and turn that into 0 or 1 button keypresses... probably requiring some fancy A-to-D conversion and a more involving circuit here than it's worth.

BUT - are you dead set on a sound card?  You could just pick one with a gamepad port on the back of it as that would do the translation work for you : )

Also, Microsoft (and maybe others) did the Sidewinder gamepad series a while back that converted button presses to digital signals over the "dumb" analog interface.  They were cool because you could daisy-chain four of them together and play over one joy port, though you needed special drivers to interpret the pulses into direction and button presses.  I have a couple in my garage, been thinking of a hack with them but it hardly seems worth it since nobody has those ports any more.  Of course that's useless now thanks to USB.

EDIT2:  Ah I like Boomstick's idea!  First you'd modify the gamepad internals to stop them from putting out analog signals and then make them put out digital directional signals (on some of the unused pins).  And then you'd add a DB15 connector to your key encoder for the extra inputs.  Of course you'd only be able to use your hacked gamepad with your improvised gamepad port but at least it's still an option, and you could do a few this way then allow your gamers their choice of pad.  15 Pins with one reserved for GND would give you 2 directions 3 buttons per pad if you wanted to rig up two...
« Last Edit: March 25, 2009, 05:11:54 pm by Hornpipe2 »

Bluedeath

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 206
  • Last login:June 19, 2014, 11:20:09 am
Re: Hacking serial db15 (gb15) joysticks?
« Reply #12 on: March 26, 2009, 05:41:42 am »
I forgot i on epanorama i one found (but  i don't remember the section ) a circuit that converted pc db15 to C64 (amiga etc) compatible digital joystick. it should help you
I give up  fighting keyboard dislexia, I lost.