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: Fool analog controls with button  (Read 2457 times)

0 Members and 1 Guest are viewing this topic.

jkl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:March 13, 2020, 10:01:58 am
  • I want to build my own arcade controls!
Fool analog controls with button
« on: November 09, 2015, 03:21:33 pm »
Hi there,
I recently modded a Dreamcast MadCatz MC2 Wheel for use with my Naomi setup.
Everything is working (I mean if the goal is automatic gearing, since I didn't wired any control for it).

But I wonder if I can have a feature that the wheel has with real Dreamcast, the "full state" of pedals on the buttons built into the wheel. Doing so the pedals are optionals, you can use just the wheel (in this case of course no analog control, you have no gas/full gas as well as no brake/full brake.

Question is: how could I fool the JVS board expecting to have three pins, gnd, vcc, and a variable signal pin (the central one in potentiometers)?

Many thanks in advance,
JKL

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Fool analog controls with button
« Reply #1 on: November 09, 2015, 04:59:31 pm »
Sure... it isn't that hard.  Get a resistor the same value as the potentiometer and connect it between the button  and vcc and the other end of the button goes to ground.  At least I think... machines that use all three pins are a bit tricky, but it is possible.  Maybe someone else can chime in on this one. 

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9671
  • Last login:Today at 10:48:01 am
  • Designated spam hunter
Re: Fool analog controls with button
« Reply #2 on: November 09, 2015, 06:20:12 pm »
I wonder if I can have a feature that the wheel has with real Dreamcast, the "full state" of pedals on the buttons built into the wheel. Doing so the pedals are optionals, you can use just the wheel (in this case of course no analog control, you have no gas/full gas as well as no brake/full brake.

Question is: how could I fool the JVS board expecting to have three pins, gnd, vcc, and a variable signal pin (the central one in potentiometers)?
That sounds like your setup has gas and brake on a single axis like this:



The single axis setup translated into a schematic with the resulting voltages:
- Pink (brake) = Vcc
- Blue/Yellow = Wiper (center pin)
- Blue/Red = Ground



Connect the pushbuttons to these potentiometer leads:

- The brake button shorts Vcc to Wiper when presed.

- The gas button shorts Wiper to ground when pressed.

If the gas and brake functions are swapped (i.e. Vcc on wiper = gas pedal pressed), swap Vcc for ground.


Scott
Edit: Clarified the button connection points.
« Last Edit: November 09, 2015, 06:51:33 pm by PL1 »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Fool analog controls with button
« Reply #3 on: November 09, 2015, 09:16:17 pm »
Glad you chimed in.  I didn't have a clue what he was asking, apparently. 

jkl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:March 13, 2020, 10:01:58 am
  • I want to build my own arcade controls!
Re: Fool analog controls with button
« Reply #4 on: November 10, 2015, 12:22:08 pm »
Many many thanks guys!!
PL1 was absolutely right.
I ripped off my wheel and added 2 momentary buttons behind the wheel, wiring them as PL1 said.
Work like a charm.
I added 2 buttons because I wanted to mantain all the functionality of original Dreamcast wheel, so the orange factory buttons are still working like madcatz did (they're doing it with an integrated circuit).

Many thanks again, you rock!

JKL

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9671
  • Last login:Today at 10:48:01 am
  • Designated spam hunter
Re: Fool analog controls with button
« Reply #5 on: November 10, 2015, 05:14:17 pm »
Glad to assist.   :cheers:


Scott

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 822
  • Last login:Today at 02:49:38 am
Re: Fool analog controls with button
« Reply #6 on: November 11, 2015, 01:31:58 am »
This is gold and should be cited/reported in the badmouth's driving racing info topic!

SegaOutrun

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 406
  • Last login:March 28, 2019, 03:02:05 am
  • Brakes are overrated
Re: Fool analog controls with button
« Reply #7 on: November 11, 2015, 02:39:37 am »
what tutorial did u use to wire the dreamcast wheel to the naomi? ive always wanted a netbooting naomi but, finding the arcade wheel and pedal for initial d wasnt cheap

jkl

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:March 13, 2020, 10:01:58 am
  • I want to build my own arcade controls!
Re: Fool analog controls with button
« Reply #8 on: November 11, 2015, 03:30:33 pm »
It's all about the JVS interface you're using. Since what I know you could have a JVS2JAMMA, a JVS type 1, type 2, type 3. I'm almost sure the analog pinout is exactly the same on all these boards, since all of them have 26 pins analog connector, but I can't ensure it to you, do it at your risk.
I have a JVS2JAMMA, this one (http://triplemoonstar.brinkster.net/theshed/default.asp?stockid=1854).
On that site, if you search for other JVS boards, you find them with pinout in description (mine hadn't):
- type 1 http://triplemoonstar.brinkster.net/theshed/default.asp?stockid=1718
- type 2 http://triplemoonstar.brinkster.net/theshed/default.asp?stockid=2098
- type 3 http://triplemoonstar.brinkster.net/theshed/default.asp?stockid=2532

JVS2JAMMA has a jamma standard pinout on the jamma connector, the only button missing is button 6 for fighters, that's NOT on jamma connector but instead is the fourth from tha bottom on the white CN connector you have on left side of the board when jamma end is towards you. To enable it you have to move the jumper located top left of the board.

As for the analog inputs, they're on the only black connector (26 pin).
For pinout I simply followed the tables this guy did (http://www.gamoover.net/Forums/index.php?topic=32526.0).

For the wheel (steer, gas, brake) you only need 5 pins: 1 gnd (all the same, your choice), 1 vcc (all the same, your choice), 3x AD (exactly AD1, AD2, AD3). AD's are the signal pins.
On that very very useful tables you can find also the input diagrams of many Sega racers, so you can try to wire up an almost "universal" setup: steer, gas, brake, and "turbo".

Right now I have wired 1x 6 button joystick (I use it for credit, start, view change) and my modded MC2 wheel (steer, gas, brake, turbo).

If I can help more just tell me (sorry for my english).

JKL
« Last Edit: November 11, 2015, 03:35:06 pm by jkl »