I have a joystick that is connected to an arcade board. I would like to “listen” for movement on the joystick using a Raspberry Pi or similar. The joystick runs on 12V, and I would be using the Raspberry Pi’s 3.3v GPIO.
Would a relay in series with the joystick signal wire be appropriate for this? If so would a fly back diode be recommended too? This is the relay board that I was looking at (12V): https://s.click.aliexpress.com/e/j9MIN2Y
Are there any precautions that I should take to avoid adversely affecting the existing system?