Electronic – How to make a durable connection between a PCB and outside of case

pcb

How would one go about connecting an LED or a sensor to a printed circuit board? You could use a male header pin and a dupont cable, but that seems like it would easily be able to slip out. Is there any standard solution to this problem? Soldering is out of the question because anyone should be able to connect the wire without having to have any special skill.

Best Answer

Well, you could buy an LED like this with wires attached, and attach a lockable connector to the wires for the end user to connect.

Or you could use a board mounted LED and then use a light pipe to get the light out of the case.