Project works in the "lab" but not in the "field"

Hello. I made a supplementary device for a welder, that acts as a remote current control. When you weld aluminum, you have to lower the current as you approach the edge of the piece. I was inspired by this welder button: TIG Welding - TIG Button - Game Changer - The Best Hand Amperage Controller - YouTube

The device schematic:

The welder remote control "schematic" that was provided by the manufacturer:

My idea was use a digital potentiometer instead of sliding one. And on table everything works as it should. The device is powered with standalone DC 5V power adapter. It also displays the force applied to the force sensor. However, when operated in combination with welder, in particular when welder tries to light up the arc, the display gets a lot of artifacts, the analog potentiometer readings are getting too much noise. And since display is connected via I2C, the digital potentiometer must have same errors in operation as it shares the I2C lanes. And therefore the device does not operate as intended.

For now, I don't know what causes these severe interferences. Magnetic field from welder? Can anyone point me a direction where to dig?

Thank you

Kind of obvious I'd have thought.

Vin needs to be between 7V and 12V!
No pull-ups on the I2C lines

But then again welder itself works, naked PCBs inside. Any way to protect against it?

I will solve the undervoltage.

My sketch doesn't do anything to A4/A5 pins (SDA/SCL), except for setting the address and libraries' code, to interact with display and setting wiper value. Could you clarify the latter please?

5V goes to the 5V pin, don't use Vin.
The layout of a circuit in a noisy environment is critical, to judge that requires at least clear photos. A drawing accurately showing physical layout including how wires are routed will help too.

Basics are no loops of wire, keep signals and their associated return paths together, keep signals and power physically separate as much as possible and make sure that signal return paths are in separate conductors from conductors carrying power. To be clear: grounds must be common but different conductors for different purposes.

2 Likes

Connect a 10K resistor between SCL and 5V
Also, connect a 10K resistor between SDA and 5V
It's best to supply Vin with 9V, dont use 5V.

2 Likes

If you use grounded shielded cables and shield sensor leads you won't get induced signals.

Magnetic power falls off with the cube of distance. A piece of ferrous material will suck magnetic field up, grounded steel screen will stop electro magnetic waves.

You can observe magnetic fields with Linear or Log-scale Hall Sensors on analog input pins or simpler and less accurate, hang an unterminated wire from an analog pin and read it until it gets over 1000 then change to OUTPUT LOW for a milli before going back to reading the pin. How long the cycle takes is how much interference there is.
Smart thing near a welder is test at a distance on power up, down and in use as large currents will be flowing and powering the local field strongly. Too much/too close and Arduino 5V pin meets more spike than it can clamp and you get maybe invisible smoke without going for it. Distance is your friend, power is 1/distance cubed. Half as far away is 8x stronger.

I had a buddy who blew shop high pressure air into a plastic bowl and trick the new guy into sticking his finger in. Snap!

1 Like

Thank you. I will see how I can improve my design. Pictures:



Thanks. Useful info. And yes, I used unshielded copper wires everywhere. I've even left my power adapter inside the welder itself, connecting it to AC line in that welder uses.

Early radio transmitters were spark gap transmitters.

Your welder makes a good spark gap transmitter, and your wiring acts as an antenna to pick up interference.

1 Like

Use a METAL BOX that is grounded to isolate your pcb from EMI. Use SHIELDED cables for all external connections. Add ferrite beads to the power leads. Essentially your box needs to be a Faraday cage

1 Like

28 posts were split to a new topic: Can a Nano Every be powered through the 5V pin?

You can use small split, snap-on ferrite chokes on your existing wires to see if it will help.

Hi,
Have you measured the voltages on the ends of the mechanical pot you are trying to imitate with respect to the welders control circuit gnd?
That welder has trimming resistors on each end, so gnd will not be directly connected to the low potential end of the pot.

Have you removed the mechanical pot from the circuit when you connect the digital one?

Check the specs of the digital pot and what its output pins can tolerate.
If the welder is 12V or 24V control, digital pots working at 5V logic may not like it.

What make and model is the welder.

I have repaired quite a few mig/tig/arc welders and the Chinese are no exception to being non standard about how control pots and switches are used in a circuit, or circuit accuracy.

One model I worked on had RED gnd wires and BLACK +24, +12 supply wires.

Tom.. :smiley: :+1: :coffee: :australia:

1 Like

All the loose wires should be braided/twisted to discourage wire-to-wire inductance.

NOT! tightly tying wires together INCREASES inductive coupling. Distance squared power law -- double the distace, quarter the power, half the distance, power goes UP 4×,

Interesting. All my wires were required, by law, to be twisted to avoid parallel wires. I did not say "tightly"... sorry for that confusion.

External noise will enter your box through any/every wire that pass from external to internal. Having worked in automotive (OEM controllers) I feel for your situation.

The only way I know to make your circuit reliable in a high noise environment is to:

  1. Replace the box with a metal (aluminum) box (could use a simple aluminum "chassis")
  2. Filter every wire coming in our out at the point of entry. Ideally you should put a 0.01µf capacitor from the wire at the entry point to the chassis.

Mod edit, comment about the 5V pin removed, please see Can a Nano Every be powered through the 5V pin? for that discussion. Thanks.

Sorry, but, your soldering is lousy

1 Like