I have a arduino with robot open connected to a relayboard (we only are using one of the 4). It is all wired correctly but we need code so when the "A" button is pressed on our logitech controller, it will activate the relay and send power to our solenoid for a second to activate our t-shirt launcher. The code for this will be put into our existing code for a 4motor tank drive coded modified from the example code from robot open/arduino. I personally have no idea what im doing in programming.

The relay is hooked up to port 9