See the circuit diagram below and help me to find the problem:
I can drive the motor in one direction as expected and to reverse the direction I added a relay circuit. I used two SPDT relays instead of DPDT shown in diagram.
But some times one relay get turned off. Spark see inside the relays too while changing direction. Is there any way to remove the high voltage spike that produce as a result of reversing the direction of motor?