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: Sharing controls with one encoder and another encoder just not at the same time.  (Read 1207 times)

0 Members and 1 Guest are viewing this topic.

Vocalitus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:October 25, 2021, 06:16:58 pm
  • I want to build my own arcade controls!
Yes I know we have been here before and the answer was a USB switch box but it is a bit more complicated than that, and I am sure it can be done.

Quite simply I have a 2 player control panel.  One side (Player 1) is for original Xbox with Kade (which works fine) sharing Joystick two for games like Robotron (which works fine) and two buttons for Coin and Player start.

Introduce the Pi/PC and use the EG Starts encoder for either platform with an USB switch box (currently Pi) using the Player 2 side and not bothering with Player 1 Joystick.  The Pi is for Light gun and mouse/spinner games.  That works fine until about 2 hours ago and now both sides do not work.  The Kade is mounted above the control panel as there is not enough room and all the wiring reaches without strain.

The only thing I think I know where I am going wrong, is I'm using a global grounding wire between both encoders.  Ground is ground right?  And the ground is going to earth on the power plug.  The switches are not taking power from either controller.  I disable the Pi and nothing changes.  Both the EG and KADE are showing green across the board and by all accounts are working fine, except the buttons do not light up on the Pi side.  Everything is powered separately so it is not an USB amperage issue. The xbox did go into Error code 19 but after some violent shaking it now boots.  :P

Only Player one (Kade) is sharing a joystick and two buttons.  Player two is sharing the same two buttons. 

What am I doing wrong?    :dunno

Vocalitus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:October 25, 2021, 06:16:58 pm
  • I want to build my own arcade controls!
Well I figured it out.  I used 5 diodes to the shared joystick to both encoders and it works.

I was wiring my backup car camera and I wanted to use it in case I had people too close to me at the drive thru.  Using diodes I could isolate the reverse light from coming on when I flicked the switch even though it solved the tailgating problem I was having but could cause accidents down the road.  :lol

So I had a moment of clarity and solved my arcade problem.  Simples.