[Daniel Roibert] found a way to add cheap strain relief to JST-XH connectors, better known to hobby aircraft folks as the charging and balance connectors on lithium-polymer battery packs. His solution is to cast them in hot glue, with the help of 3D printed molds. His project provides molds fitted for connectors with anywhere from two to eight conductors, so just pick the appropriate one and get printing. [Daniel] says to print the mold pieces in PETG, so that they can hold up to the temperature of melted glue.
The 3D models aren’t particularly intuitive to look at, but an instructional video makes everything clear. First coat the inside surfaces of the mold with a release agent (something like silicone oil should do the trick) and then a small amount of hot glue goes in the bottom. Next the connector is laid down on top of the glue, more glue is applied, and the top of the mold is pressed in. The small hole in the top isn’t for filling with glue, it’s to let excess escape as the mold is closed. After things cool completely, just pop apart the mold (little cutouts for a screwdriver tip make this easy) and trim any excess. That’s all there is to it.
One last thing: among the downloads you may notice one additional model. That one is provided in split parts, so that one can make a mold of an arbitrary width just by stretching the middle parts as needed, then merging them together. After all, sometimes the STL file is just not quite right and if sharing CAD files is not an option for whatever reason, providing STLs that can be more easily tweaked is a welcome courtesy. You can watch a short video showing how the whole thing works, below.