JVS Driving Switcher (using Pi)

corn

Active member
Feedback
26 (100%)
Credits
225CR
I've finally had some spare time to mess around with my Pi and the onboard GPIO.

Inspired by this thread: http://www.ukvac.com/forum/sega-jvs-driving-control-switcher-prototype_topic330617.html I figured it should be reasonably straightforward to get the Pi to remap the Shifter output (for Driving Games) based on the game selected.

I've used the Naopi (http://www.e-venturi.com/jamma/?page_id=1073) code to test with and so far (having tested Crazy Taxi and Jambo Safari) it seems to work fine. I'll have a go at modifying the PiForceTools scripts at some point.

Basically, I've wired up 4 Opto Isolators, plugged the Shifter into the PI and then wired the output of the opto-isolators to the Naomi I/O.

Unfortunately, all of my Cabs are in the Garage so won't be fired up until Spring. Pics below are just with an I/O setup on the dining room table:

pi_switcher1.jpg


pi_switcher2.jpg


I'll put some updates here with any progress. Planning on making another using a single chip with 4 opto-isolators on (should be neater). Also need to test with my Chihiro/Naomi2 at some point.

Looking promising though!
 

devtty0

Active member
Feedback
7 (100%)
Credits
196CR
nice - that looks really handy - once you get it working i'd def be interested in seeing the build instructions - and details on the various pinout mappings if you them about as well, cheers!

smiley20.gif
 

corn

Active member
Feedback
26 (100%)
Credits
225CR
devtty0 said:
nice - that looks really handy - once you get it working i'd def be interested in seeing the build instructions - and details on the various pinout mappings if you them about as well, cheers!

smiley20.gif

Cheers

More than happy to share some build instructions/code once its a little neater.
 

Outrun2

Colonel Outrun
Feedback
5 (100%)
Credits
1,145CR
Very interesting mate, I'd love to have a solution for the shifter as I like to play Crazy Taxi, CT Hi Roller, 18 Wheeler, Club Kart as well as OR2 in my single cab, but it's a pain having to remap the pins.

Please keep us posted on any progress
smiley20.gif
 

corn

Active member
Feedback
26 (100%)
Credits
225CR
If anyone has a list of all of the pinouts for the Naomi/Chihiro/Triforce Driving games to hand that would be good. I've pulled together the following from various sources, I'm hoping they are correct:

Pin 17: OR2 Start, Route 66 Start, Club Kart Start, Jambo Start

Pin 18:

Pin 19:

Pin 20:

Pin 21:

Pin 22: 18 Wheeler Shift Left ?

Pin 23: CT Up

Pin 24: Jambo Down, OR2 Up, ID Up, Route 66 Drive, 18 Wheeler Up

Pin 25: CT Down, OR2 View, ID View, Route 66 V/R

Pin 26: Jambo Up, OR2 Down, ID Down, Route 66 Reverse, 18 Wheeler Down

Pin 27: Route 66 Horn

Pin 28:

Pin 29: Route 66 Wipers

Pin 30:

Pin 31: Route 66 Mic
 

corn

Active member
Feedback
26 (100%)
Credits
225CR
I've now tested with Crazy Taxi, Jambo Safari, King of Route 66 and Initial D and they all seemed to work fine. I've only tested using the "Input Test" in the test menu as I've no working cab indoors to test with at the moment.

I couldn't get 18 Wheeler to boot ... "Game not acceptable by Main board". Anyone had any luck netbooting this? I'm assuming I probably need a more up to date BIOS.

I'll test with my Chihiro once my now repaired monitor chassis is installed (thanks one again Gunblade)!

Thinking about adding and additional input to cover the "view" or "jump" buttons. Will have a look at the pinouts and see if it is feasible.
 

corn

Active member
Feedback
26 (100%)
Credits
225CR
Cheers. Just tried it on a Naomi2 Motherboard and it boots fine. The shifter works fine for "L" and "H" (which I assume are Low and High) but obviously the 3rd state "Reverse" isn't catered for.

I've never seen an 18 Wheeler. Would I be right in guessing that the shifter for this doesn't spring back to a centre position like OR2, Initial D, CT etc? If so, I'm guessing this might be hard to cater for with the solution I am working on :-(
 

Outrun2

Colonel Outrun
Feedback
5 (100%)
Credits
1,145CR
Yes, the 18 Wheeler shifter slots into gear (Low/High/Reverse) and stays there.

Although the error about motor board appears it doesn't affect the game, however I've never managed to get KoR66 to run right in my initialD cab - you get FFB, but the steering is too erratic to play as it's either fully on one way or the other
smiley6.gif
 

corn

Active member
Feedback
26 (100%)
Credits
225CR
Setch said:
while I love this you do know this can be achieved with a switch that costs less than £2

rswitch.jpg

Yep, saw your original post and stole your idea
smiley1.gif


I couldn't get my head around how to wire that beast up so figured I go the easy route (for me) and get the Pi to do it instead!

Have to say, I think your solution is probably more elegant.
 

corn

Active member
Feedback
26 (100%)
Credits
225CR
flashpc said:
I know this is kinda late but do you have plans for your setup?

I might get around to making up a decent solution one day. Finding the right connectors is the biggest pain (don't want to butcher any wiring in my cab).
 

Devil_Mish

Active member
Feedback
3 (100%)
Credits
66CR
I'd also be interested! I was searching for this last night and excluding this one and the one from Setch back 8 years ago, there doesn't seem to be a publicly available solution
 

corn

Active member
Feedback
26 (100%)
Credits
225CR
Its still sat in my cupboard, unfinished. It worked, just needs integrating into a cab properly.

Things have moved on a bit too, the pi4 now emulates Naomi and there is a JVS emulator by BobDilley out there too. Would be great to put a pi in an empty Naomi case, integrate the JVS code and the shifter code. I have a KOR66 and a spare club kart dash that I've started to tart up. I'll try and resurrect the switcher and see if I can finally get it finished up. Will update here if I do.
 

Fantazia2

Active member
vacBacker
Feedback
13 (100%)
Credits
2,198CR
I had an idea for a way to get this working with a PCDuino (Like a Pi but with arduino built in) board but have now sold all by Naomi Netboot stuff so didnt get round to it.

Basically it would have been an all in one board doing netboot, JVS I/O and card reader for initial D. I wasnt planning on doing multi-boot but instead would have had a different usb stick or sd card for each game with the rom, a config file for controls and card reader files on it.

The plan was to wire the controls to the Arduino part of the PCDuino and then also wire in a TTL to RS422 converter to connect to the Naomi instead of the JVS I/O, then also have a USB to RS232 for the card reader connection.

All the information for doing it is out there it just needs amalgamating into a single device.
 

bbz149

Active member
vacBacker
Feedback
26 (100%)
Credits
1,608CR
devtty0 said:
OOhh.. does the PI4 run Naomi games ok? Demul seems to be pretty resource intensive, wouldnt have thought that the Pi was powerful enough?
Dont think he meant to run the Games! he means to do the switching
smiley20.gif
 
Top