In your original photo (showing joystick wires and PCB) it looks like there are a bunch of PC817 optoisolators present, most likely to isolate the joystick from the electronics.
If that is the case then triggering an optoisolator directly from the Pi GPIO is trivial. It may also be simple to intercept the local joystick and prevent its use without using a relay.
I suggest you search for a schematic for the PCB, or study it closely and draw your own just for the joystick connections. Then it should be easy to figure out how to drive it with a Pi.
One thing worth verifying is the wiring harness for the joystick that plugs into the PCB is just switches. No electronics, resistors, or other components. If it's just a switch it makes interfacing so much simpler.
If that is the case then triggering an optoisolator directly from the Pi GPIO is trivial. It may also be simple to intercept the local joystick and prevent its use without using a relay.
I suggest you search for a schematic for the PCB, or study it closely and draw your own just for the joystick connections. Then it should be easy to figure out how to drive it with a Pi.
One thing worth verifying is the wiring harness for the joystick that plugs into the PCB is just switches. No electronics, resistors, or other components. If it's just a switch it makes interfacing so much simpler.
Statistics: Posted by ame — Wed Feb 28, 2024 11:31 pm