Hi there, i’ve build up my project with using raspberry pi2. now i am playing mame games with no problem with my ps3 controller (still designing a custom joystick-button front panel). My coin acceptor is working fine, but i am planning to add a relay-based hardware for accepting coin when a game is started from emulator. Otherwise, coin will be wasted if i use my coin in emulation station. I want to use my coin acceptor closed on default and when a game is started, i would like to trigger a relay and make it on open position.
I would like to ask you, is there any way to trigger a relay when a game is started from emulation station and close it on game close ?