Motorbike 12V feeds to iPhone app

This all works however after a couple of seconds the arduino resets itself.

This is not necessarily a hardware issue. It could be a software issue. So, what software are you running on the Arduino?