I made a linear slide for welding in straight lines with the TIG welder. The slide is controlled by an arduino uno, it has an optical encoder at the end of the screw, an LCD display for displaying movement parameters (distance, speed etc) and the circuit has a 5 amp relay that starts and stops the welding process.
Everything went fine when I tested it home. At the beginning of the program the relay clicks, then the slide starts moving at the set speed, for the set distance, then the slide stops and relay disengages. Perfect.
When I tested it in the workshop, with the TIG welding machine attached, the second the welding machine creates the electric arc, the LCD on my control box gets screwed up, and the arduino stops running the code. Nothing gets fried, I only have to reset it. But...bottom line is...the welding machine makes it crash.
I tried plugging the control box in another socket in another room in the house and pushed the weld button on the welding machine in the other room. The lcd and arduino don't get messed up.
So...what could it be? The circuit is powered via an industrial power supply:
and it can keep operating even if I unplug the power supply and plug it back 1/2 seconds later, so the caps inside it are really enough to keep the circuit working even if the power completely drops for a few miliseconds, while the TIG welder starts.
So...what could it be?
It's worth mentioning that there are quite a few wires going back and forth from the encoder to the arduino box, from the box to the welding machine (the relay wire) , and a couple of wires going from the arduino box to the ends of the slide for detecting when the slider has reached the end of the run.
I'm thinking maybe all these wires act as an antenna and catch some of the electromagnetic pulse generated by the welding machine when it starts, and that causes the screen and arduino to get "confused"
But I really don't know if that's the case, and I don't know where to start with toubleshooting the problem.
Any ideas are very appreciated!