Open source JVS I/O to pc interface (WIP: Analog, Lightgun)

Coin-operated games and arcades.
k4roshi
Posts: 26
Joined: March 8th, 2014, 6:33 pm
Location: Italy

Open source JVS I/O to pc interface (WIP: Analog, Lightgun)

Post by k4roshi » April 22nd, 2014, 10:32 pm

Hi, i developed, for my own use, a JVS to pc interface using a teensy 2 board i had lying around and a sn75176b chip. It's quite cheap: the teensy is about 16$, the sn75176b is about 2$ for 4 ICs.

It's currently little more than a proof of concept, but it works. It gets recognized as a HID joystick and requires no drivers or installation. Works on pc and mac, could be made to work on ps3 if needed. It looks lag-free. I tested it only with digital inputs but analog or gun controls should be doable.

If there's any interest i could release my code on github and maybe improve it together.

Lemme know!
Last edited by k4roshi on August 19th, 2014, 4:46 pm, edited 1 time in total.

Braintrash
Posts: 427
Joined: February 17th, 2011, 6:31 pm
Location: Paris, France
eBay: yuu_madrigal

Re: Open source JVS I/O to pc interface

Post by Braintrash » April 22nd, 2014, 11:12 pm

Good idea!

User avatar
emphatic
Breastfeeds when required
Posts: 6341
Joined: April 7th, 2009, 4:14 pm
Location: Alingsås, Sweden
eBay: jorgen_sjolander
Initials: JOR

Re: Open source JVS I/O to pc interface

Post by emphatic » April 22nd, 2014, 11:21 pm

Cool, any pics of the hardware?

User avatar
Stompp
Posts: 901
Joined: July 10th, 2012, 10:58 am
Location: Stockholm, Sweden
eBay: uridium
Initials: DAD
Contact:

Re: Open source JVS I/O to pc interface

Post by Stompp » April 23rd, 2014, 8:22 am

Wow! Yes, please share on Git! I'd love to give it a try :awe:

User avatar
invzim
Posts: 477
Joined: August 17th, 2008, 5:26 pm
Location: Oslo, Norway
eBay: prrole

Re: Open source JVS I/O to pc interface

Post by invzim » April 23rd, 2014, 12:00 pm

Very cool! I wanted to do something like this for the JVS-PAC, but the USB libraries used (and the official vendor/product ID's I got sub licensed from Microchip) made it unfeasible.
I make and sell cool Arcade stuff, check out https://irkenlabs.com/ - In The Name of Science!

k4roshi
Posts: 26
Joined: March 8th, 2014, 6:33 pm
Location: Italy

Re: Open source JVS I/O to pc interface

Post by k4roshi » April 24th, 2014, 7:48 pm

Ok, I pushed the first version here https://github.com/k4roshi/JVSy"
I attached the first compiled version.
Let me know if you manage to have a go at it ;)

Edit: Apparently i can't attach files...
Well, here it is: https://dl.dropboxusercontent.com/u/637 ... e/JVSy.hex"

User avatar
yosai
Windy City
Posts: 3725
Joined: August 17th, 2008, 5:00 pm
Location: London
eBay: yosai

Re: Open source JVS I/O to pc interface

Post by yosai » April 25th, 2014, 7:54 am

Excellent work, thanks for sharing. :thumbup: :awe:

robert garcia
Posts: 18
Joined: January 7th, 2009, 11:09 am
Location: North Germany Ol dirty double H Town

Re: Open source JVS I/O to pc interface

Post by robert garcia » April 27th, 2014, 11:14 am

Sounds Great, Thank You very much for Sharing!

Did anyone tried it already on a JVS Racing Cab, to Play emulated Daytona or Sega Rally 2?

Thats what I would try to use it for

purplec
Posts: 606
Joined: August 17th, 2008, 6:51 pm
Location: Dublin, Ireland

Re: Open source JVS I/O to pc interface

Post by purplec » April 27th, 2014, 11:56 am

When will you be putting the schematic up and a pic of your completed version would be really helpful.

Cheers

k4roshi
Posts: 26
Joined: March 8th, 2014, 6:33 pm
Location: Italy

Re: Open source JVS I/O to pc interface

Post by k4roshi » April 27th, 2014, 11:07 pm

During next week i'll upload a schematic, in the mean time the few connections to make and the components needed are available in the readme on github.

It won't work on a racing cab for now, i have no analog controls to test it on and the documentation is really scarce on that.
I've had ArcadeSTG offer me some help, if he's still up for it i could cook up a debug build for him and find out how it works with analog controls.

User avatar
baddy
Posts: 399
Joined: January 28th, 2010, 12:40 am
Location: Sweden, Stockholm
eBay: irishfrog89
Initials: CHI

Re: Open source JVS I/O to pc interface

Post by baddy » April 27th, 2014, 11:25 pm

a French bloke on gamoover is quite the expert on analog JVS, he hacked wiimotes and sensor bars to make guns for gun games on naomi.

http://www.gamoover.net/Forums/index.php?topic=27895.0

If you need any help translating stuff, I'm French so I can help.

robblack
Posts: 18
Joined: May 19th, 2014, 8:13 pm
Location:
eBay: hybridprowrestling

Re: Open source JVS I/O to pc interface

Post by robblack » May 19th, 2014, 8:27 pm

looks excellent

endisnigh
Posts: 2
Joined: July 28th, 2014, 10:36 pm
Location:

Re: Open source JVS I/O to pc interface

Post by endisnigh » July 28th, 2014, 10:44 pm

Is this project still being worked-on? I see it's been a few months since the OP announced it and there haven't been many updates.

I would love to help get analogue support added. I have an OutRun 2 Special Tours driving cabinet that I would like to get working on the PC, if possible. For this cabinet I think we're looking at 3 analogue controls, 1 for steering and 1 each for the two pedals.

Thanks!

k4roshi
Posts: 26
Joined: March 8th, 2014, 6:33 pm
Location: Italy

Re: Open source JVS I/O to pc interface

Post by k4roshi » August 10th, 2014, 11:01 pm

Yes, i'm still working on it.
I actually added shift mode and coin recognition to the firmware... but, never got to push it to github. If you're willing i could cook up a special version that would let us test the analog controls. Do you have a teensy and a sn75176b ready?

Paolo63
Posts: 73
Joined: March 8th, 2014, 5:10 pm
Location: Italy

Re: Open source JVS I/O to pc interface

Post by Paolo63 » August 10th, 2014, 11:30 pm

k4roshi wrote:Yes, i'm still working on it.
I actually added shift mode and coin recognition to the firmware... but, never got to push it to github. If you're willing i could cook up a special version that would let us test the analog controls. Do you have a teensy and a sn75176b ready?
I'm not the one who asked, and at the moment I've no way to test it, but it's really great to know you're still working on it. When I'll have time I'll test it, thanks.

Paolo

manixx
Please Continue...
Posts: 1
Joined: October 30th, 2013, 6:48 am
Location:

Re: Open source JVS I/O to pc interface

Post by manixx » August 11th, 2014, 7:17 am

Hello
first, sorry for my bad english...
I have a complete Interface ready and also a complete analog setup to test analoge inputs.
how can I help?
Andi

k4roshi
Posts: 26
Joined: March 8th, 2014, 6:33 pm
Location: Italy

Re: Open source JVS I/O to pc interface

Post by k4roshi » August 19th, 2014, 2:33 pm

Hi guys!
I updated the code on github, improved the startup procedure, coin handling works and shift mode is provided:
p1 start works as shift, when pressed with the following buttons it causes different keypresses:
button 1: coin (presses keyb 5)
J1 right: Tab
J1 down: P (pause)
J1 left: enter
P2: esc

Here's the binary build:
https://dl.dropboxusercontent.com/u/637 ... Sy-1.0.hex"

I also managed to read analog inputs, but have no way of "calibrating" them.
This debug build outputs to the serial console the binary readings it receives from the analog ports. If anybody wants to flash this and report back to me i can make them work in little time. This doesn't work as a joystick input, so don't flash unless you know what you're doing.
https://dl.dropboxusercontent.com/u/637 ... analog.hex"

I studied a bit the lightgun controls and they should be easy to implement, but again, i would need someone to help me test it.

purplec
Posts: 606
Joined: August 17th, 2008, 6:51 pm
Location: Dublin, Ireland

Re: Open source JVS I/O to pc interface

Post by purplec » August 19th, 2014, 6:32 pm

k4roshi wrote:Hi guys!
I updated the code on github, improved the startup procedure, coin handling works and shift mode is provided:
p1 start works as shift, when pressed with the following buttons it causes different keypresses:
button 1: coin (presses keyb 5)
J1 right: Tab
J1 down: P (pause)
J1 left: enter
P2: esc

Here's the binary build:
https://dl.dropboxusercontent.com/u/637 ... Sy-1.0.hex"

I also managed to read analog inputs, but have no way of "calibrating" them.
This debug build outputs to the serial console the binary readings it receives from the analog ports. If anybody wants to flash this and report back to me i can make them work in little time. This doesn't work as a joystick input, so don't flash unless you know what you're doing.
https://dl.dropboxusercontent.com/u/637 ... analog.hex"

I studied a bit the lightgun controls and they should be easy to implement, but again, i would need someone to help me test it.
any pics of your setup?

k4roshi
Posts: 26
Joined: March 8th, 2014, 6:33 pm
Location: Italy

Re: Open source JVS I/O to pc interface (WIP: Analog, Lightg

Post by k4roshi » August 19th, 2014, 6:58 pm

Nothing fancy, and probably a bit overcomplicated, but i ultimately had to use a perforated board, because wires kept getting loose from the strain the usb cables puts on them.
You then connect the jvs cable to the usb female port and the teensy to the pc, as usual.
Attachments
IMG_8981.jpg
IMG_8983.jpg
IMG_8985.jpg

purplec
Posts: 606
Joined: August 17th, 2008, 6:51 pm
Location: Dublin, Ireland

Re: Open source JVS I/O to pc interface (WIP: Analog, Lightg

Post by purplec » August 19th, 2014, 7:47 pm

k4roshi wrote:Nothing fancy, and probably a bit overcomplicated, but i ultimately had to use a perforated board, because wires kept getting loose from the strain the usb cables puts on them.
You then connect the jvs cable to the usb female port and the teensy to the pc, as usual.
That's really cool do you have a wiring diagram

Post Reply