What we learned the hard way

Ten short stories from real hardware: each one cost time, and each is now a rule in the app.

These stories come from the first working run of pick and place: a keychain from the table into a bowl. Every one of them cost real time.

1. Zero is the middle of the range, not 'the centred pose'. Someone 'fixed' the zero to the exact middle of the motor's scale, and the gripper then pointed backwards at the base. Zero is the middle of the range you recorded. Check on a live pose: with the arm limp, hold the gripper straight down on the table. The model should say the tool points about straight down, with its tip near table height.

2. Measure the table height by touching. A hand-taught guess was 40 mm wrong. The arm is clamped to the table, so the table never moves relative to the arm. Lowering the tip 3 mm at a time until the motors push back gave the real number. Measure once, and again only if you remount the arm.

3. The gripper must be perpendicular. One jaw 1 cm above the table means no grip at all. A tilt of only 10 degrees lifts one jaw about 1 cm when the jaws are 5 cm apart. The app now accepts only a gripper within 3 degrees of straight down. The closing jaw can also push the gripper up off the table, so the app pinches a few millimetres above it.

4. Never carry on after a failed grasp. A gripper closed on nothing pushes hard against its own jaws, and the app once read that as a hold. It carried an empty gripper to the bowl, twice. Now a hold means the gap between the jaws, measured at every stage. A failure stops the job, and after 4 tries it gives up with the real reason.

5. The app must never get stuck. Jobs that stopped reporting, serial transfers that never ended, motors that cut themselves off, servers that died: each left the buttons dead. Now there is a watchdog, a Reset button that always works, a timeout on the USB link, and a supervisor that restarts the server in about 3 seconds.

6. Hand-held poses beat measuring. People cannot measure exact centimetres from a point they cannot see. Holding the limp arm with both jaw tips flat on the table, and letting the app read the joints, showed that the wrist zero was off by about 12 degrees. The hands did the placing, the motors did the measuring.

7. A perfect fit means nothing. With 3 points a simple fit always matches, so 'error 0.0 mm' was a lie. Leave-one-out showed the truth. The gripper also hides the target: the red you see is up to about 10 cm from the real centre.

8. Buttons must work, and say why they do not. A page that redrew itself on every live number ate clicks: the button a person aimed at no longer existed. Pop-ups can be blocked silently. Now disabled buttons look disabled, with a reason beside them, and every instruction is tested with a real click before it is written down.

9. A full disk breaks everything. When the disk filled, even macOS's own permission storage failed. Keep more than 5 GB free, and only clear caches that can be rebuilt, never your own files.

10. Camera permissions fail silently. macOS can block a camera without any message, and the permission must be requested from the main thread, not from a worker. A black picture with no reason is a bug, so the app now says why: not allowed, in use, or unplugged.

See it in the app

This article is also inside the app, next to the 3D arm. Open it in the live demo.