Crashes can be caused by power supply glitches, or electrical noise, not just software problems. Try monitoring the power source when the outputs switch and check that the relay coil has a flyback diode fitted.
Crashes can be caused by power supply glitches, or electrical noise, not just software problems. Try monitoring the power source when the outputs switch and check that the relay coil has a flyback diode fitted.