Electrical – Use potting compound to secure solder joint

gluesoldering

I would like to solder a wire to these 2 pins. I was wondering whether I should protect the solder joints, as the cables may shift over time (and tension). Should I put glue on the around it to make sure it won't move (and of course keep the solder)?

enter image description here

enter image description here

Best Answer

I was wondering whether I should protect the solder joints, as the cables may shift over time (and tension).

This is a PCB-mount switch. Its contacts aren't intended for soldering discrete wires directly to them. If you actually wan to achieve long term robustness, you should make a small PCB with: a footprint for the switch, a wire-to-board connector of your choice, and maybe mounting holes too.

Such is the proper solution to your technical issue.