The problem is actually physical, my relays were breaking because of power spikes caused when using the relays do turn the motors on and off... Since i'm not used to work with this kind of stuff an my electronic knowlege is VERY limited when it comes to inductive stuff... It's taking me a while to figure things out :s
Nice! It's a good idea, I think I'll do the same. With a "signal recorder" it would work with any gate, regardless of the control.