kapy academy

Push-push latch with a heart cam

18 min readUpdated Nov 2026

A handleless cupboard door that stays shut when you push it and pops out when you push it again, a box lid that works the same way, or the socket that swallows a microSD card and gives it back on the next press: they are all push-push latches. There is one gesture and two stable states, and what remembers which state you are in is the geometry. The version you can print is the flat heart track: a pin that, driven by a return spring, runs round the channel about an island always in the same direction.

Once round the track

Look at the track from above, with the part that carries it held still and "up" pointing the way the pin moves relative to the track when you press. If the track is on the part you push, that direction is the opposite of your finger's: draw it that way or you will flip the notch. The heart is the island: a solid block in the middle with the channel running round it. Its point faces down, toward the rest position. Its cleft, the V between the two lobes, opens upwards, toward where the pin is heading. That cleft is the latching notch.

Centerlineψ 45°IslandLatching notchCrest② Overtravel 1Stroke 12.5Deflector tooth④ Overtravel 2③ LatchedChannel 2.4① RestPressSpring
The full loop in the track's frame. The vertical dimensions are those of the door example, measured on the path of the pin's center; the lateral ones are opened up a little so the island reads clearly. The pin always runs round the channel in the same direction: two presses, one loop.

The loop has four legs:

  1. Rest → overtravel 1. You press. The pin meets the left flank of the island's point, climbs that side and reaches the top-left pocket.
  2. Overtravel 1 → latched. You let go. The spring pushes back, the pin runs down the left face of the deflector tooth, lands on the inner flank of the left lobe and slides into the notch. It is now latched halfway, between rest and overtravel.
  3. Latched → overtravel 2. You press again. The pin leaves the notch upwards, the deflector tooth hanging over the cleft pushes it past the right-hand crest, and the pin enters the top-right pocket.
  4. Overtravel 2 → rest. You let go. The pin runs down the right side of the island, on the outside, goes round the point and returns to rest.

Two presses make one loop, and the rest position is also the open position: there is no fifth station.

To change state, the pin has to travel past the latched position. On a door, that means the door must be able to go in past its closed position. That overtravel is the first design constraint and the most common failure in practice: someone puts the door stop right on the latching line, and the latch catches once and never opens again.

Why it only goes one way round

A symmetrical track with a free pin does not latch reliably. At every fork the pin can take either branch, and sometimes it goes back the way it came. Something has to decide each fork, and there are two ways to do it. Either one is enough on its own: you do not need floor steps and offset walls at the same time.

A door's push-push latch in 3D and its heart track drawn flat: the first press runs the pin up the left side, letting go drops it into the notch and the door stays latched; the second press steers it right and letting go brings it back down the outside to rest
The 2D route on the door example: a Ø2 pin in a 2.4 channel, a 0.5 N/mm spring with 2 mm of preload and the stop at 13. The printed arm carries the pin and always pushes it toward the return channel, to the right (the blue arrow). On the first press the pin climbs the left side to the 12.5 overtravel. When you let go, the deflector tooth guides it down into the notch and the door stays latched at 8. On the second press it leaves the notch and the tooth carries it past the right crest. When you let go, it runs down the outside, round the island's point and back to rest: two presses, one lap. On the right, the track seen from the door, with the path of the pin's center. The arm is drawn with its pseudo-rigid model: a bar of 0.85·L on a hinge.

In 2D, with a side-biased follower. This is the one that prints best. The pin sits at the tip of a printed arm that acts as a spring and always pushes it toward the same side: the return-channel side, the right in the figure. The rule is that, when you let go, that bias carries the pin against a wall at every fork:

  • At rest, the island's point is offset to the right and the pin sits against its left flank, so the first press always climbs the left side.
  • At overtravel 1, the bias presses the pin against the left face of the deflector tooth, which guides it down into the notch on release.
  • In the notch, it presses the pin against the right flank, which holds it.
  • At overtravel 2, it presses the pin against the outer wall, which guides it down outside the crest.
  • At the bottom, the return spring drives the pin against a 45° wall that steers it back under the point, against the bias.

The track depth is constant, so every guiding wall stands in Z, and an FDM printer produces them with sharp edges.

A bias toward the center does not work. At overtravel 2 the pin has no wall on the inside, and the arm snaps it back to the centerline in a couple of milliseconds, long before it has finished coming down: it drops into the notch again and the latch never releases.

The cost of the side bias is that the arm stays somewhat loaded at rest and when latched, for months if the door stays shut. Keep that permanent strain small with a long, thin arm, and put its neutral line well beyond the return channel: if the plastic relaxes a little (Creep and fatigue), the bias drops but still points the same way. If you want no plastic preload at all, make the bias with music wire, which does not relax.

In 3D, with ramps in the floor. This is the one in commercial card sockets. The follower is free to move sideways: a wire that pivots in a hole, held against the floor by its own bending or by a cover. The floor rises in a gentle ramp along the loop and drops vertically at each fork, so if the follower tries to go back it hits a wall. Make the drop 0.6–1.0 mm (3–5 layers at 0.20) and the ramp at least three times as long as the drop. The drop has a minimum because the printed ramp is already a 0.2 mm staircase: a drop of one or two layers is the same height as the steps the follower climbs anyway. And the follower's preload deflection against the floor has to be larger than the difference between the highest and lowest points of the floor over the whole loop, or after a drop the follower no longer reaches it. Use music wire (spring steel wire) of Ø0.8–1.0 mm. A paper clip will do for a prototype, but it takes a set the moment you load it.

For a printed part, choose 2D. 3D makes sense when you want a wire follower with no arm.

Sizing the track

Every dimension below is on the path of the pin's center; the wall sits one radius plus the clearance away.

The channel is a slot in XY and prints narrow for the same reason holes do (Why holes print small). Its width is the pin diameter plus a sliding fit on each side, according to your class of machine (Real printed clearances). Wider is not safer: the extra side play lets the pin cross a crest it should not cross.

The walls that deflect the pin make an angle ψ with the stroke axis: it is a cam's pressure angle (Cams and followers). For a light side bias, 45° is acceptable. Deflecting the pin against the arm adds F_bias·(tan ψ + μ)/(1 − μ·tan ψ) to the press, the same wedge factor as in Ball and spring detents: 1.86 at 45° with μ = 0.3, and 4.2 at 60°. The return spring pays the same surcharge on the way back, at the wall that drives the pin under the point.

Push-push track rules
Quantity Value Why
Channel width Ø pin + 2 × 0.20 (modern bedslinger) or + 2 × 0.15 (enclosed CoreXY) Sliding fit per side; check it with a coupon
Depth ≥ 1.5 × Ø pin So the pin does not jump out; a cover or the arm itself retains it
Wall angle ψ ≤ 45° from the stroke axis Wedge factor 1.86 with μ = 0.3; at 60° it rises to 4.2
Island point offset ≈ 0.8–0.9 mm with Ø2 and an r 0.4 point The pin has to meet the point at an angle that slides it toward its side
Overtravel (beyond latched) ≥ h_n + Δx / tan ψ h_n: notch depth below the crests; Δx: the pin's total side shift, from the notch to its final position
Final position after the tooth On the return channel's centerline A pin that clears the crest by only a few tenths rests on its fillet without sliding off
Floor drop (3D only) 0.6–1.0 mm, ramp ≥ 3 × drop Above the layer staircase
Plastic-on-steel friction μ = 0.2–0.35 Use 0.3, the high side, so you do not underestimate the press force

In the notch the spring pushes the pin down and the arm pushes it against the right flank. For the pin to escape sideways over 45° flanks takes a side force of 1.86 times the spring force. Only an axial press releases it, and a knock outwards drives it deeper into the notch.

Buy the return spring: a steel compression spring, because it stays compressed for as long as the door stays shut (Using bought steel springs). Choose k and the preload from the force you want at rest and at the latched position, and check that its solid length leaves room for the full stroke. If the axis is vertical, the preload at rest has to beat the weight of the moving part, or the lid sinks on its own.

For the follower, use a steel pin (a ground rod) or music wire. A printed pin on a printed track wears the notch flank first, and the loop starts to fail (Friction and wear). For a prototype, a printed one will do.

Example: push-to-open latch on a door

The brief. A small cupboard door or box lid, in PETG. You push it shut and it latches; you push it again and it pops out 8 mm. The track goes on the slider the door pushes, and the arm with the pin on the fixed body.

The track. The pin is a Ø2 steel rod: the channel is 2.0 + 0.4 = 2.4 mm wide (0.20 per side, a modern bedslinger) and 3.0 mm deep (more than 1.5 × 2). The crests sit at ±1.5 from the centerline, the notch at h_n = 1.5 below them, and ψ = 45°. The island's point is offset 0.9 to the right. The deflector tooth carries the pin to the return channel's centerline, at x = 2.5, so Δx = 2.5 and the overtravel must be at least 1.5 + 2.5/tan 45° = 4.0 mm; allow half a millimeter of margin: 4.5. The stations end up at rest 0, latched 8 and maximum 12.5.

The arm. It goes in stance B (Layer orientation for mechanisms): its length in the plane of the layers and the bending in XY. Make it t = 1.2 mm thick (three lines), L = 40 mm long and w = 6 mm tall in Z. Its neutral line is at x = +5, beyond the return channel, so it deflects 5 mm at rest and latched, 8 mm at most (climbing the left side, at x ≈ −3) and 2.5 mm at overtravel 2. The peak strain is ε = 1.5·t·y/L² = 1.5·1.2·8/40² = 0.9 %, and the permanent one 0.56 %. That is well below the 2 % PETG tolerates in repeated use; in PLA it would sit right at the 1 % limit for an everyday part (Which plastic for which mechanism). The bias, with PETG's design E (1,600 MPa), is P = w·E·t²·ε/(6L) = 6·1600·1.2²·0.009/(6·40) ≈ 0.52 N at most, 0.32 N at rest and latched, and 0.16 N at overtravel 2: it never changes sides. Round the root with a 0.5 t radius. The formula and the strain limits are in Print-friendly snap fits and Leaf and cantilever springs.

A 1.2 mm arm cannot hold a Ø2 pin: give its tip a Ø5 boss (Ø2 + 2 × 1.2 of wall, rounded). Do not press the pin in: in PETG, 0.05 mm of interference on Ø2 already stretches the wall by 2.5 %, more than a permanent joint can take. Use a light friction fit and glue it, or press it in hot.

The spring and the forces. A k = 0.5 N/mm spring with 2 mm of preload gives 1.0 N at rest, 5.0 N latched and 7.25 N at the maximum. Deflecting the pin off the island's point against the arm adds 0.32 × 1.86 ≈ 0.6 N near rest, where the spring is still pushing lightly; at overtravel the tooth deflects the pin with the arm, not against it. The press peaks at about 7.3 N plus the slider's friction: a light press of a finger. Forcing the pin sideways out of the notch would take 5.0 × 1.86 ≈ 9 N. The ejection energy, ½·(5 + 1)·8 ≈ 24 N·mm, is enough to open a light door. At the maximum the spring is compressed 2 + 12.5 = 14.5 mm: pick one that gets there without going solid.

The stop. Put the door stop beyond 12.5: a rubber bumper at 13, where the spring is compressed 15 mm. With the stop at 8, the door latches once and never opens again. If you pull on the closed door, the pin digs into the notch and loads the arm along its length. Anchor the arm's root on the side you pull toward: that way a tug puts it in tension rather than compression, which would buckle it.

Printing it

Print the track plate flat, with the channel open upwards. The walls stand vertical in Z and the island's outline is traced in XY, so the notch and crests come out as sharp as the nozzle allows. Convex material corners, like the crests and the point, come out rounded to roughly half a line width; concave ones, like the bottom of the notch, come out sharp but with a blob of material. That is why the notch is best drawn as a round pocket with a radius equal to the pin's plus the clearance (1.0 + 0.2 = 1.2 in the example), and the crests and point with r ≥ 0.4: the pin then seats on flanks you control, not the slicer. Make the body in two parts, with the track open on one face and a cover on top, instead of a blind tunnel you can neither clean nor inspect.

The arm follows the three-stance rule of Layer orientation for mechanisms: the arm's length lies in the plane of the layers. Printed flat beside the plate, in stance B, it does.

Keep the seam off the track walls (Where the seam goes): in a 2.4 mm channel, a seam blob is a bump the pin feels on every loop.

If you choose the 3D route, print the track zone with 0.12 mm layers or with variable layer height (Modifiers by region and height, Layer height and line width), so the ramp's staircase is fine and the drops come out clean. The floor there is a top surface the follower rubs on: give it enough solid layers or ironing (Top surfaces).

When it fails

Symptom, cause and fix
Symptom Cause Fix
Never latches, pops back out No overtravel (the stop is on the latching line) or less than h_n + Δx/tan ψ Move the stop out; lengthen the overtravel
Latches but will not release The arm biases toward the center, or the deflector tooth falls short and the pin barely clears the crest Bias toward the return channel; a tooth that carries the pin to that channel's centerline, and more overtravel
Latches every other time Follower free sideways on a 2D track, island point offset too little, or crests too close to the centerline Add the arm's bias or switch to the 3D floor; offset the point more; spread the crests
Jams halfway round Narrow channel (prints small, seam blob) or a wall steeper than 45° Print the width coupon, move the seam, lower ψ
Opens on its own when the cupboard is knocked Shallow notch, a release that triggers on too little overtravel, or a spring too soft for the door's inertia Deeper notch and more overtravel; a firmer spring only after measuring the press, because every extra newton is paid for by your finger
Works for weeks, then fails A printed pin wearing the notch flank, or an arm that has relaxed and no longer biases to its side Steel pin; neutral line further out, or a wire bias
The pin jumps out of the channel Depth < 1.5 × Ø or no cover Deeper channel; cover on top

How to test it

Run 200 loops, by hand or with a jig, and count the failures. The target is zero. One failure in 50 is a geometry problem, not bad luck (Testing a mechanism before you trust it). A steel pin wears the track far less than a printed one, but the cycle count your part survives comes from this test, not from a catalog figure.

Measure the force at the three stations with a spring balance or a luggage scale and compare it with the 1, 5 and 7.25 N of the example. If it is far off, check the spring and the slider's friction.

Test it in every orientation it will be mounted in: with the axis vertical, the weight of the door or lid adds to or subtracts from the spring along the whole stroke. Press slowly and quickly. Finally, leave it latched for 48 hours and test it again: that shows whether the spring, the notch or the arm has relaxed.

See also

Design it in KapyCAD

Model the joint with these dimensions. Each one stays a value you can change after the first test print.

Free plan, no card. Runs in your browser, nothing to install.

Open the editor

Still have a question?