This is yyh1002's hinged case, modified to be printable in two separate pieces that snap together. This avoids the need for supports, and allows for a nice finish on both the lid and the bottom (especially if you have a glass bed or a similar smooth printing surface). Plus, you can print the lid and box in different colors. I also made the lid catch mechanism just a tiny bit tighter to reduce the risk of it opening spontaneously.
I also lowered the thickness of the top and bottom shells to reduce material and time needed for printing. The thinner lid also offers one extra millimeter of room. The 1 mm shells should still be more than strong enough for average use, if not use the ‘thick’ files which are the same 2 mm thickness as the original. I also provide an alternative set of models marked ‘L5,’ which are 5 mm longer than the regular models. These may be more suitable for earphones with extra buttons or controls attached to the wires.
You can combine any of the box and lid files within each set of the same length, they all fit together.
To assemble the hinge, push it together from the inside (small recesses are provided to facilitate this) as shown in the Post-Printing section below.
If you have difficulty opening the box, press it at the sides (lengthwise). This will make it pop open much more easily, see image below.
Print slowly and apply only the minimum of cooling needed to maximize the strength of the print.
Assemble the hinge as shown in the picture: push from the inside. You may need quite a bit of force. If the print breaks while trying this, it isn't strong enough to protect your earphones anyway and you should review your print settings…
The lid closing mechanism should work fine on a well-made print but if it doesn't stay shut, you can fix it by heating up the side of the box and pushing it inwards a little. This will make the catch mechanism tighter. This is easiest with PLA, which can be temporarily softened by applying a hairdryer for about 10 seconds. With PETG this should also work if your hairdryer is hot enough.
The easiest way to open the case is to push on the sides while pulling on the lid.
Added a small ‘lip’ to the lid so it is easier to open (suggested by jemete).
Added ‘L5’ variations on the models, which are 5 mm longer.
Added small ridges on the sides of the box to make it more obvious how to easily open it. Also rotated all models 90°.