@rulecad/cad 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/AGENTS.md +29 -10
  2. package/CHANGELOG.md +604 -0
  3. package/EXAMPLES.md +122 -105
  4. package/README.md +292 -63
  5. package/bin/cad.mjs +500 -87
  6. package/lib/assembly.mjs +486 -134
  7. package/lib/bays.mjs +124 -0
  8. package/lib/cache-file.mjs +148 -0
  9. package/lib/clone.mjs +93 -11
  10. package/lib/code-text.mjs +28 -0
  11. package/lib/design-imports.mjs +127 -0
  12. package/lib/design.mjs +291 -59
  13. package/lib/designshapes.mjs +142 -0
  14. package/lib/edit.mjs +29 -5
  15. package/lib/estimates.mjs +51 -0
  16. package/lib/fasten.mjs +11 -5
  17. package/lib/fe-key.mjs +29 -0
  18. package/lib/fittings.mjs +20 -15
  19. package/lib/fixings.mjs +17 -4
  20. package/lib/framebuild.mjs +73 -92
  21. package/lib/framecheck.mjs +154 -77
  22. package/lib/framegen.mjs +9 -1
  23. package/lib/frames.mjs +6 -2
  24. package/lib/framesize.mjs +45 -82
  25. package/lib/gait.mjs +17 -7
  26. package/lib/guides.mjs +84 -50
  27. package/lib/host.mjs +7 -3
  28. package/lib/kit.mjs +5 -5
  29. package/lib/list.mjs +29 -21
  30. package/lib/live-guard.mjs +18 -8
  31. package/lib/loads.mjs +35 -23
  32. package/lib/measured.mjs +740 -99
  33. package/lib/mesh.mjs +156 -56
  34. package/lib/motors.mjs +26 -33
  35. package/lib/names.mjs +15 -0
  36. package/lib/node-version.mjs +52 -0
  37. package/lib/optimise.mjs +34 -25
  38. package/lib/order.mjs +5 -12
  39. package/lib/parts.mjs +3 -0
  40. package/lib/picture-servers.mjs +66 -0
  41. package/lib/power.mjs +14 -7
  42. package/lib/preview.mjs +12 -25
  43. package/lib/programs.mjs +113 -0
  44. package/lib/rules.mjs +2 -1
  45. package/lib/sandbox-guard.mjs +43 -0
  46. package/lib/sandbox-hooks.mjs +109 -15
  47. package/lib/sandbox-lock.mjs +225 -0
  48. package/lib/sandbox-preload.mjs +2 -2
  49. package/lib/sandbox-run.mjs +22 -24
  50. package/lib/sandbox.mjs +345 -42
  51. package/lib/sheet.mjs +114 -3
  52. package/lib/targets/gist.mjs +9 -6
  53. package/lib/versions.mjs +294 -35
  54. package/lib/workspace.mjs +6 -3
  55. package/package.json +14 -14
  56. package/schemas/assembly.schema.json +6 -5
  57. package/schemas/object.schema.json +1 -1
  58. package/schemas/project.schema.json +6 -0
  59. package/templates/coupons/MEASURE.md +109 -0
  60. package/templates/coupons/assemblies/fixings-test.json +20 -0
  61. package/templates/coupons/assemblies/slot-test.json +11 -0
  62. package/templates/coupons/objects/fixings-coupon.js +88 -0
  63. package/templates/coupons/objects/fixings-coupon.json +26 -0
  64. package/templates/coupons/objects/holds-coupon.js +130 -0
  65. package/templates/coupons/objects/holds-coupon.json +42 -0
  66. package/templates/coupons/objects/slot-coupon.js +89 -0
  67. package/templates/coupons/objects/slot-coupon.json +29 -0
  68. package/templates/coupons/project.json +10 -0
package/EXAMPLES.md CHANGED
@@ -481,10 +481,14 @@ export function main (v) {
481
481
  ```
482
482
 
483
483
  ```sh
484
- npx cad check home/flick
484
+ npx cad check home/flick # warns: the gap rests on x1c.print_gap, an estimate
485
485
  npx cad animate home/flick
486
486
  ```
487
487
 
488
+ The check warns that the design rests on an estimate: `x1c.print_gap`, the gap that prints apart, is the printer's
489
+ best guess until a test print measures it. A warning never fails the check; `cad measured` settles the figure once you
490
+ have printed the part and measured it.
491
+
488
492
  `animate` writes the sequence as an animated SVG in `.preview/`, the leaf drawn bent, and a page that plays it with
489
493
  the force on each step. The launcher in `examples/bench/projects/launcher` is the same idea at full size: a flooded
490
494
  frame, catches, a trigger, and a shot.
@@ -1391,7 +1395,8 @@ the load can't turn it backwards: the joint holds with the power off.
1391
1395
  "module": { "value": 1, "unit": "mm", "rule": "The gears'" },
1392
1396
  "teeth": { "value": 54, "rule": "The held ring" },
1393
1397
  "post_r": { "value": 37, "unit": "mm", "rule": "Three posts outside the output ring's 33 mm" },
1394
- "post": { "value": 7, "unit": "mm", "rule": "Each post's diameter" },
1398
+ "post": { "value": 7, "unit": "mm", "rule": "Each post's width" },
1399
+ "post_back": { "value": 2, "unit": "mm", "rule": "Each post is this much longer than wide, outward: stiff under the motor's weight and torque" },
1395
1400
  "post_height": { "value": 19.7, "unit": "mm", "rule": "From the plate to under the clips, just over the output ring" },
1396
1401
  "pilot_depth": { "value": 8, "unit": "mm", "rule": "Each post's pilot, deep enough for its clip's screw" }
1397
1402
  }
@@ -1400,7 +1405,8 @@ the load can't turn it backwards: the joint holds with the power off.
1400
1405
 
1401
1406
  ```js projects/home/objects/joint-housing.js
1402
1407
  // A motor plate with the fixed ring standing on it. The motor bolts underneath, its shaft up through the middle.
1403
- // Each post has an M3 pilot from v.fixings: its clip's screw cuts its own thread in it.
1408
+ // Each post has an M3 pilot from v.fixings: its clip's screw cuts its own thread in it. The posts are longer than
1409
+ // they're wide, outward over their own feet: held by a post, the housing carries the motor's weight and torque there.
1404
1410
  import jscad from '@jscad/modeling'
1405
1411
  const { cylinder } = jscad.primitives
1406
1412
  const { translate } = jscad.transforms
@@ -1409,10 +1415,11 @@ export function main (v) {
1409
1415
  const motor = v.motors.motorModel('nema17'), pilot = v.fixings.holeModel('M3', { kind: 'pilot' }).diameter
1410
1416
  const plate = cylinder({ radius: v.rim / 2, height: v.plate, center: [0, 0, v.plate / 2], segments: 96 })
1411
1417
  const ring = translate([0, 0, v.plate], v.gears.internal({ module: v.module, teeth: v.teeth, width: v.width, rim: v.rim }))
1412
- const at = (a) => [v.post_r * Math.cos(a), v.post_r * Math.sin(a)]
1418
+ const at = (a, r = v.post_r) => [r * Math.cos(a), r * Math.sin(a)]
1413
1419
  const angles = [Math.PI / 6, (5 * Math.PI) / 6, (3 * Math.PI) / 2]
1414
1420
  const lobes = angles.map((a) => cylinder({ radius: v.post, height: v.plate, center: [...at(a), v.plate / 2], segments: 32 }))
1415
- const posts = angles.map((a) => cylinder({ radius: v.post / 2, height: v.post_height + v.plate, center: [...at(a), (v.post_height + v.plate) / 2], segments: 32 }))
1421
+ const round = (c) => cylinder({ radius: v.post / 2, height: v.post_height + v.plate, center: [...c, (v.post_height + v.plate) / 2], segments: 32 })
1422
+ const posts = angles.map((a) => jscad.hulls.hull(round(at(a)), round(at(a, v.post_r + v.post_back))))
1416
1423
  const arms = angles.map((a) => jscad.transforms.rotateZ(a, jscad.primitives.cuboid({ size: [v.post_r - v.rim / 2 + 2, v.post, v.plate], center: [(v.post_r + v.rim / 2 - 2) / 2, 0, v.plate / 2] })))
1417
1424
  const pilots = angles.map((a) => cylinder({ radius: pilot / 2, height: v.pilot_depth, center: [...at(a), v.plate + v.post_height - v.pilot_depth / 2], segments: 24 }))
1418
1425
  return v.ops.subtract(v.ops.union(plate, ring, lobes, posts, arms), v.motors.mount(motor, { plate: v.plate, counterbore: true }, v.ops), pilots)
@@ -1638,6 +1645,11 @@ that the gears, under 50% efficient, hold it with the power off. `npx cad check
1638
1645
  motor all the way round and finds no teeth touching, and neither do the output ring's steps. Each clip's `fasten`
1639
1646
  chooses an M3x8 cap, 5 mm into its post's pilot.
1640
1647
 
1648
+ The check also holds the housing where a clip is screwed on below it, hangs the motor's weight and torque on its four
1649
+ screws, and asks that the shaft's tip stay within half the 0.2 mm fit of its seat. Nearly all of that movement is the
1650
+ one post bending and twisting, so each post is 2 mm longer outward than it's wide (`post_back`). It stands on a foot
1651
+ twice its width, so the first layer is no bigger for it.
1652
+
1641
1653
  Ten times over is more margin than the job needs, but the gearbox is the size it is for what the motor could do to it, not
1642
1654
  the arm: stalled against a stop, the 7.44 N m at the output puts 33 MPa on the planets' top teeth (`strength`, the Lewis
1643
1655
  equation, for teeth 8 mm wide), against PLA's 39. Give that a home switch, or a smaller current.
@@ -1868,8 +1880,9 @@ export function main (v) {
1868
1880
  }
1869
1881
  ```
1870
1882
 
1871
- The housing is chapter 11's with its posts longer, and with the bridge in place of the clips. Above each motor's boss is a
1872
- 45° cone up through the plate: a pocket there would have to be bridged.
1883
+ The housing is chapter 11's with taller, round posts (three feet screw it down, so no post has to carry the motor), and
1884
+ with the bridge in place of the clips. Above each motor's boss is a 45° cone up through the plate: a pocket there would
1885
+ have to be bridged.
1873
1886
 
1874
1887
  ```json projects/arm/objects/housing.json
1875
1888
  {
@@ -2698,12 +2711,12 @@ so an M3x30, the longest sold, reaches its nut on the far one.
2698
2711
  { "a": "b1", "b": "bridge", "seat": "press", "note": "The 6800 in its seat" },
2699
2712
  { "a": "es1", "b": "base", "min": -0.1, "note": "The home switch on its post, 0.1 mm of resting contact allowed" },
2700
2713
  { "a": "es2", "b": "upper", "min": -0.1, "note": "The elbow's home switch on its post" },
2701
- { "a": "es1", "b": "upper", "min": -30, "note": "The arm's flag on the home switch's lever at the end of the range" },
2702
- { "a": "es2", "b": "forearm", "min": -30, "note": "The forearm's flag on the elbow switch's lever" },
2703
- { "a": "horn", "b": "holder", "min": -30, "note": "The horn lifts the shuttle's lug: drawn at rest, the lug doesn't rise here" },
2704
- { "a": "ecarrier", "b": "ering", "min": -1, "note": "Two specks: neither is printed" },
2705
- { "a": "d1", "b": "shield", "fastens": true, "min": -20, "note": "Plugged in" },
2706
- { "a": "d2", "b": "shield", "fastens": true, "min": -20, "note": "Plugged in" }
2714
+ { "a": "es1", "b": "upper", "overlap": "allowed", "note": "The arm's flag on the home switch's lever at the end of the range" },
2715
+ { "a": "es2", "b": "forearm", "overlap": "allowed", "note": "The forearm's flag on the elbow switch's lever" },
2716
+ { "a": "horn", "b": "holder", "overlap": "allowed", "note": "The horn lifts the shuttle's lug: drawn at rest, the lug doesn't rise here" },
2717
+ { "a": "ecarrier", "b": "ering", "overlap": "allowed", "note": "Two specks: neither is printed" },
2718
+ { "a": "d1", "b": "shield", "fastens": true, "overlap": "allowed", "note": "Plugged in" },
2719
+ { "a": "d2", "b": "shield", "fastens": true, "overlap": "allowed", "note": "Plugged in" }
2707
2720
  ],
2708
2721
  "fasten": [
2709
2722
  { "screw": "M3 cap", "through": ["housing"], "into": "base", "at": ["housing.f1", "housing.f2", "housing.f3"], "note": "The housing on the base's three columns" },
@@ -3512,13 +3525,13 @@ The project lists the new objects:
3512
3525
  { "a": "b1", "b": "bridge", "seat": "press", "note": "The 6800 in its seat" },
3513
3526
  { "a": "es1", "b": "base", "min": -0.1, "note": "The home switch on its post, 0.1 mm of resting contact allowed" },
3514
3527
  { "a": "es2", "b": "upper", "min": -0.1, "note": "The elbow's home switch on its post" },
3515
- { "a": "es1", "b": "upper", "min": -30, "note": "The arm's flag on the home switch's lever at the end of the range" },
3516
- { "a": "es2", "b": "forearm", "min": -30, "note": "The forearm's flag on the elbow switch's lever" },
3517
- { "a": "ghorn", "b": "gripper", "min": -30, "note": "The horn presses the fingers' flats: drawn at rest, the fingers don't move here" },
3518
- { "a": "gservo", "b": "gripper", "fastens": true, "min": -0.2, "note": "The servo on its two posts" },
3519
- { "a": "ecarrier", "b": "ering", "min": -1, "note": "Two specks: neither is printed" },
3520
- { "a": "d1", "b": "shield", "fastens": true, "min": -20, "note": "Plugged in" },
3521
- { "a": "d2", "b": "shield", "fastens": true, "min": -20, "note": "Plugged in" }
3528
+ { "a": "es1", "b": "upper", "overlap": "allowed", "note": "The arm's flag on the home switch's lever at the end of the range" },
3529
+ { "a": "es2", "b": "forearm", "overlap": "allowed", "note": "The forearm's flag on the elbow switch's lever" },
3530
+ { "a": "ghorn", "b": "gripper", "overlap": "allowed", "note": "The horn presses the fingers' flats: drawn at rest, the fingers don't move here" },
3531
+ { "a": "gservo", "b": "gripper", "fastens": true, "overlap": "allowed", "note": "The servo on its two posts: the servo's model runs about 1.5 mm into the palm as drawn, so the pair may overlap until the pocket is checked against it" },
3532
+ { "a": "ecarrier", "b": "ering", "overlap": "allowed", "note": "Two specks: neither is printed" },
3533
+ { "a": "d1", "b": "shield", "fastens": true, "overlap": "allowed", "note": "Plugged in" },
3534
+ { "a": "d2", "b": "shield", "fastens": true, "overlap": "allowed", "note": "Plugged in" }
3522
3535
  ],
3523
3536
  "fasten": [
3524
3537
  { "screw": "M3 cap", "through": ["housing"], "into": "base", "at": ["housing.f1", "housing.f2", "housing.f3"], "note": "The housing on the base's three columns" },
@@ -3649,8 +3662,8 @@ The gripper is one flexing print, and an assembly can't show a leaf bending. `gr
3649
3662
  "a": "gservo",
3650
3663
  "b": "palm",
3651
3664
  "fastens": true,
3652
- "min": -0.3,
3653
- "note": "The servo on its two posts, its case and boss down in the pocket"
3665
+ "overlap": "allowed",
3666
+ "note": "The servo on its two posts, its case and boss down in the pocket: the servo's model runs about 1.5 mm into the palm as drawn, so the pair may overlap until the pocket is checked against it"
3654
3667
  },
3655
3668
  {
3656
3669
  "a": "gservo",
@@ -3661,25 +3674,27 @@ The gripper is one flexing print, and an assembly can't show a leaf bending. `gr
3661
3674
  {
3662
3675
  "a": "ghorn",
3663
3676
  "b": "upper",
3664
- "min": -0.25,
3665
- "note": "The horn's tip on the finger's flat"
3677
+ "overlap": "allowed",
3678
+ "max": 0.25,
3679
+ "note": "The horn's tip on the finger's flat, pressing it about 1 mm in as drawn (the leaf bends): touching, at most 0.25 mm apart"
3666
3680
  },
3667
3681
  {
3668
3682
  "a": "ghorn",
3669
3683
  "b": "lower",
3670
- "min": -0.25,
3671
- "note": "The horn's tip on the finger's flat"
3684
+ "overlap": "allowed",
3685
+ "max": 0.25,
3686
+ "note": "The horn's tip on the finger's flat, pressing it about 1 mm in as drawn (the leaf bends): touching, at most 0.25 mm apart"
3672
3687
  },
3673
3688
  {
3674
3689
  "a": "upper",
3675
3690
  "b": "palm",
3676
- "min": -2,
3691
+ "overlap": "allowed",
3677
3692
  "note": "The leaf's root runs into its arm: the fingers slide here as a check, the leaf really bends"
3678
3693
  },
3679
3694
  {
3680
3695
  "a": "lower",
3681
3696
  "b": "palm",
3682
- "min": -2,
3697
+ "overlap": "allowed",
3683
3698
  "note": "The leaf's root runs into its arm"
3684
3699
  }
3685
3700
  ],
@@ -3726,7 +3741,7 @@ The gripper is one flexing print, and an assembly can't show a leaf bending. `gr
3726
3741
  }
3727
3742
  ```
3728
3743
 
3729
- The check sees the horn's tips touch the fingers' flats at both poses, and nothing else collide: the horn's swing clears the palm's wedges and its hub's hole, the servo's case sits in its pocket, and the fingers clear the stem. Everything else the assembly says about the arm's own joints doesn't apply here, and the check runs with `--json`. `tool.grip` in this assembly is the 50 g case, passing at 2.3 times over.
3744
+ The check sees the horn's tips touch the fingers' flats at both poses (pressing them about 1 mm in, as the leaves bend), and nothing else collide: the horn's swing clears the palm's wedges and its hub's hole, and the fingers clear the stem. The servo's model runs about 1.5 mm into the palm round its pocket, which its fit allows for now (`"overlap": "allowed"`): the pocket is yet to be checked against the servo itself. Everything else the assembly says about the arm's own joints doesn't apply here, and the check runs with `--json`. `tool.grip` in this assembly is the 50 g case, passing at 2.3 times over.
3730
3745
 
3731
3746
  The closing check moves the fingers as stiff pieces on slides because the kit moves stiff pieces on joints. The real finger's leaf bends and tilts the jaw a little: 1 or 2 degrees of tilt over the 3 mm, which the object's own compliance takes up. Bench test: print it, load it with a 50 g weight on a thread, and watch the jaws.
3732
3747
 
@@ -3989,71 +4004,71 @@ The Z axis is checked by itself, on a fixed frame, because an upright or a drawi
3989
4004
  {
3990
4005
  "a": "zm",
3991
4006
  "b": "screw",
3992
- "min": -100,
4007
+ "overlap": "allowed",
3993
4008
  "note": "Coupled, drawn as one line"
3994
4009
  },
3995
4010
  {
3996
4011
  "a": "rod1",
3997
4012
  "b": "frame",
3998
4013
  "fastens": true,
3999
- "min": -100,
4014
+ "overlap": "allowed",
4000
4015
  "note": "The rod pressed in its holes"
4001
4016
  },
4002
4017
  {
4003
4018
  "a": "rod2",
4004
4019
  "b": "frame",
4005
4020
  "fastens": true,
4006
- "min": -100,
4021
+ "overlap": "allowed",
4007
4022
  "note": "The rod pressed in its holes"
4008
4023
  },
4009
4024
  {
4010
4025
  "a": "lm1",
4011
4026
  "b": "car",
4012
4027
  "fastens": true,
4013
- "min": -100,
4028
+ "overlap": "allowed",
4014
4029
  "note": "The bearing in its pocket"
4015
4030
  },
4016
4031
  {
4017
4032
  "a": "lm2",
4018
4033
  "b": "car",
4019
4034
  "fastens": true,
4020
- "min": -100,
4035
+ "overlap": "allowed",
4021
4036
  "note": "The bearing in its pocket"
4022
4037
  },
4023
4038
  {
4024
4039
  "a": "rod1",
4025
4040
  "b": "car",
4026
- "min": -100,
4041
+ "overlap": "allowed",
4027
4042
  "note": "The rod runs through the carriage's bearing"
4028
4043
  },
4029
4044
  {
4030
4045
  "a": "rod2",
4031
4046
  "b": "car",
4032
- "min": -100,
4047
+ "overlap": "allowed",
4033
4048
  "note": "The rod runs through the carriage's bearing"
4034
4049
  },
4035
4050
  {
4036
4051
  "a": "rod1",
4037
4052
  "b": "lm1",
4038
- "min": -100,
4053
+ "overlap": "allowed",
4039
4054
  "note": "Rod in bearing"
4040
4055
  },
4041
4056
  {
4042
4057
  "a": "rod2",
4043
4058
  "b": "lm2",
4044
- "min": -100,
4059
+ "overlap": "allowed",
4045
4060
  "note": "Rod in bearing"
4046
4061
  },
4047
4062
  {
4048
4063
  "a": "screw",
4049
4064
  "b": "car",
4050
- "min": -100,
4065
+ "overlap": "allowed",
4051
4066
  "note": "The screw through the nut"
4052
4067
  },
4053
4068
  {
4054
4069
  "a": "screw",
4055
4070
  "b": "frame",
4056
- "min": -100,
4071
+ "overlap": "allowed",
4057
4072
  "note": "The screw's end, loose in the bottom bar"
4058
4073
  }
4059
4074
  ],
@@ -4089,7 +4104,7 @@ The Z axis is checked by itself, on a fixed frame, because an upright or a drawi
4089
4104
 
4090
4105
  The kit's `leadscrew` on the motor item turns the motor's torque into the screw's force, and into mm per turn for the steps: 4096 steps a revolution of the 28BYJ-48's shaft (64:1 geared, in the catalogue), and 8 mm a revolution is 512 steps a millimetre, the figure `cad machine` writes (`stepsPerUnit`). The joint's support is unnamed because the kit doesn't count linear bearings as a `support` (a printed clip or a bought ball bearing): `joint.moment` warns it can't check them. By hand: 326 g, the carriage and everything on it, is 0.074 N m of tipping at the tool, which over the rods' 40 mm spacing is 1.85 N each, against an LM8UU's 400 N static rating (a community figure): not the limit.
4091
4106
 
4092
- With an 8 mm lead the screw itself back-drives (`Tr8x8` has a 20° lead angle): the screw doesn't hold the load. The motor's own 64:1 gearbox does, 0.0588 N m of friction against 0.001 N m of back torque: the Z holds unpowered, and `motor.holds` says why. Choosing a 2 mm lead instead would make the screw lock on its own (a 5° lead angle) and lift four times slower still (0.29 mm/s against this one's 1.17 mm/s). The kit gives 1.17 mm/s at the 28BYJ-48's working speed: 43 s across the 50 mm travel. It's a slow axis and honest about it: the gripper's job is to pick something up, not to move quickly while doing it.
4107
+ With an 8 mm lead the screw itself back-drives (`Tr8x8` has a 20° lead angle): the screw doesn't hold the load. The motor's own 64:1 gearbox does, 0.0588 N m of friction against 0.001 N m of back torque: the Z holds unpowered, and `motor.holds` says why. Choosing a 2 mm lead instead would make the screw lock on its own (a 5° lead angle) and lift four times slower still (0.06 mm/s against this one's 0.23 mm/s). The kit gives 0.23 mm/s at the 28BYJ-48's working speed, the 120 steps a second (1.76 rpm) its pull-in torque is measured at: 3.6 minutes across the 50 mm travel. It turns up to five times faster unloaded, but its torque falls away above that rate, so a design that asks for more speed is checked against less torque. It's a slow axis and honest about it: the gripper's job is to pick something up, not to move quickly while doing it.
4093
4108
 
4094
4109
  ### A belt instead of a screw
4095
4110
 
@@ -4211,52 +4226,52 @@ The same frame and carriage can run on a GT2 belt: a 20-tooth pulley on the moto
4211
4226
  "a": "rod1",
4212
4227
  "b": "frame",
4213
4228
  "fastens": true,
4214
- "min": -100,
4229
+ "overlap": "allowed",
4215
4230
  "note": "The rod pressed in its holes"
4216
4231
  },
4217
4232
  {
4218
4233
  "a": "rod2",
4219
4234
  "b": "frame",
4220
4235
  "fastens": true,
4221
- "min": -100,
4236
+ "overlap": "allowed",
4222
4237
  "note": "The rod pressed in its holes"
4223
4238
  },
4224
4239
  {
4225
4240
  "a": "lm1",
4226
4241
  "b": "car",
4227
4242
  "fastens": true,
4228
- "min": -100,
4243
+ "overlap": "allowed",
4229
4244
  "note": "The bearing in its pocket"
4230
4245
  },
4231
4246
  {
4232
4247
  "a": "lm2",
4233
4248
  "b": "car",
4234
4249
  "fastens": true,
4235
- "min": -100,
4250
+ "overlap": "allowed",
4236
4251
  "note": "The bearing in its pocket"
4237
4252
  },
4238
4253
  {
4239
4254
  "a": "rod1",
4240
4255
  "b": "car",
4241
- "min": -100,
4256
+ "overlap": "allowed",
4242
4257
  "note": "The rod runs through the carriage's bearing"
4243
4258
  },
4244
4259
  {
4245
4260
  "a": "rod2",
4246
4261
  "b": "car",
4247
- "min": -100,
4262
+ "overlap": "allowed",
4248
4263
  "note": "The rod runs through the carriage's bearing"
4249
4264
  },
4250
4265
  {
4251
4266
  "a": "rod1",
4252
4267
  "b": "lm1",
4253
- "min": -100,
4268
+ "overlap": "allowed",
4254
4269
  "note": "Rod in bearing"
4255
4270
  },
4256
4271
  {
4257
4272
  "a": "rod2",
4258
4273
  "b": "lm2",
4259
- "min": -100,
4274
+ "overlap": "allowed",
4260
4275
  "note": "Rod in bearing"
4261
4276
  }
4262
4277
  ],
@@ -4296,9 +4311,9 @@ The commands. The checks that print what they find are written with `--json` whe
4296
4311
 
4297
4312
  ```sh
4298
4313
  npx cad check arm/gripper
4299
- npx cad check arm/ghorn
4314
+ npx cad check arm/ghorn # warns: the horn's reach is an estimate
4300
4315
  npx cad check arm/zframe
4301
- npx cad check arm/zcar
4316
+ npx cad check arm/zcar # warns: it reads x1c.press, an estimate
4302
4317
  npx cad check arm/arm-upright --json
4303
4318
  npx cad check arm/gripper-check --json
4304
4319
  npx cad check arm/arm-z --json
@@ -4346,7 +4361,7 @@ a bench says otherwise.
4346
4361
  | Joint axis | Vertical: gravity never loads a motor | Horizontal: gravity is the load |
4347
4362
  | Task | A pen's drag on paper, 0.3 N | The weight on the foot, 9.9 N on the stand |
4348
4363
  | Worst torque | 0.22 N m at the shoulder | 0.608 N m at the knee, 0.198 N m at the hip |
4349
- | Margin at the motor | 8 times (shoulder, at 0.5 A) | 2.8 times at the knee, 8.5 times at the hip, at the same 0.5 A |
4364
+ | Margin at the motor | 8 times (shoulder, at 0.5 A) | 2.4 times at the knee, 7.5 times at the hip, at the same 0.5 A |
4350
4365
  | What decides the link length | Reach across a sheet, and how far the elbow's error swings | The lever on the foot: the shorter, the less torque |
4351
4366
 
4352
4367
  The same gearbox with a 17HS4401 at the hip and another at the knee: the motor the arm uses at both its joints, and the one on the
@@ -5304,21 +5319,21 @@ Standing, the foot is under the hip with the knee behind it. The gait is a singl
5304
5319
  { "a": "housing", "b": "carriage", "min": 0, "note": "The housing, screwed to the carriage's face" },
5305
5320
  { "a": "bridge", "b": "housing", "min": 0, "note": "The bridge, on the housing's posts" },
5306
5321
  { "a": "b1", "b": "bridge", "seat": "press", "note": "The 6800 in its seat" },
5307
- { "a": "ecarrier", "b": "ering", "min": -1, "note": "Two specks: neither is printed" },
5322
+ { "a": "ecarrier", "b": "ering", "overlap": "allowed", "note": "Two specks: neither is printed" },
5308
5323
  { "a": "lm1", "b": "carriage", "fastens": true, "min": -0.5, "note": "The bushing, pressed in its pocket" },
5309
5324
  { "a": "lm2", "b": "carriage", "fastens": true, "min": -0.5, "note": "The bushing, pressed in its pocket" },
5310
- { "a": "rod1", "b": "lm1", "fastens": true, "min": -1000, "note": "The bushing rides the rod: the carriage is free to rise and is held on the rods" },
5311
- { "a": "rod2", "b": "lm2", "fastens": true, "min": -1000, "note": "The bushing rides the rod" },
5312
- { "a": "rod1", "b": "foot1", "fastens": true, "min": -1000, "note": "The rod in its socket" },
5313
- { "a": "rod2", "b": "foot2", "fastens": true, "min": -1000, "note": "The rod in its socket" },
5314
- { "a": "rod1", "b": "tie", "fastens": true, "min": -1000, "note": "The rod through the tie" },
5315
- { "a": "rod2", "b": "tie", "fastens": true, "min": -1000, "note": "The rod through the tie" },
5316
- { "a": "rod1", "b": "collar1", "fastens": true, "min": -1000, "note": "The stop clamped on the rod" },
5317
- { "a": "rod2", "b": "collar2", "fastens": true, "min": -1000, "note": "The stop clamped on the rod" },
5318
- { "a": "pad", "b": "shin", "min": -2, "note": "The pad on the foot's disc" },
5325
+ { "a": "rod1", "b": "lm1", "fastens": true, "overlap": "allowed", "note": "The bushing rides the rod: the carriage is free to rise and is held on the rods" },
5326
+ { "a": "rod2", "b": "lm2", "fastens": true, "overlap": "allowed", "note": "The bushing rides the rod" },
5327
+ { "a": "rod1", "b": "foot1", "fastens": true, "overlap": "allowed", "note": "The rod in its socket" },
5328
+ { "a": "rod2", "b": "foot2", "fastens": true, "overlap": "allowed", "note": "The rod in its socket" },
5329
+ { "a": "rod1", "b": "tie", "fastens": true, "overlap": "allowed", "note": "The rod through the tie" },
5330
+ { "a": "rod2", "b": "tie", "fastens": true, "overlap": "allowed", "note": "The rod through the tie" },
5331
+ { "a": "rod1", "b": "collar1", "fastens": true, "overlap": "allowed", "note": "The stop clamped on the rod" },
5332
+ { "a": "rod2", "b": "collar2", "fastens": true, "overlap": "allowed", "note": "The stop clamped on the rod" },
5333
+ { "a": "pad", "b": "shin", "overlap": "allowed", "note": "The pad on the foot's disc" },
5319
5334
  { "a": "pad", "b": "scale", "min": -0.5, "note": "The foot stands on the scale" },
5320
- { "a": "d1", "b": "shield", "fastens": true, "min": -20, "note": "Plugged in" },
5321
- { "a": "d2", "b": "shield", "fastens": true, "min": -20, "note": "Plugged in" }
5335
+ { "a": "d1", "b": "shield", "fastens": true, "overlap": "allowed", "note": "Plugged in" },
5336
+ { "a": "d2", "b": "shield", "fastens": true, "overlap": "allowed", "note": "Plugged in" }
5322
5337
  ],
5323
5338
  "wires": [
5324
5339
  { "id": "hip_wire", "from": "m1.connector", "to": "shield.X", "via": ["carriage.cable"], "gauge": "awg24", "colour": "black, red, green, blue", "connectors": ["JST-XH 4 pin", "screw terminal"] },
@@ -5339,7 +5354,7 @@ npx cad animate leg/stand
5339
5354
  The check runs with `--json` here because the stand's warnings, that its figures rest on estimates and that two of the shin's screws want a ball-end key, would otherwise stop the test: run it plain to read it. What it says:
5340
5355
 
5341
5356
  - `gait.clearance` passes: the swing foot lifts 15 mm clear of the scale (asked 12).
5342
- - `motor.torque` through the gait: the hip needs 0.198 N m at the worst of the cycle against 1.682 N m the 17HS4401 gives at 0.5 A through 38:1 at 47%, 8.5 times; the knee 0.608 N m against the same 1.682 N m, 2.8 times. By hand: the 17HS4401 holds 0.4 N m, and moving, 0.4 / √2 = 0.283 N m, flat up to its 12 V corner of 60 × 12 / (2 × 4.2 mH × 1.5 A × 200 steps) = 286 rpm, so all of it at 200 rpm; at 0.5 of its 1.5 A, 0.094 N m; through 38:1 at 47%, 1.682 N m. The supply's 12 V costs nothing here, since 200 rpm is under its corner: only the mass moves the margins. With the NEMA 14 the knee had 1.419 N m for 0.451 N m at 0.75 kg, 3.1 times, and the hip 11.4 times; the 17HS4401 gives the knee more torque, and the 90 g it adds, with the load now counted as what rides the rods, brings both margins down to these. Those figures are the foot's load only, not the leg's own weight in the swing, and the gearbox efficiency is an estimate.
5357
+ - `motor.torque` through the gait: the hip needs 0.198 N m at the worst of the cycle against 1.484 N m the 17HS4401 gives at 0.5 A through 38:1 at 47%, 7.5 times; the knee 0.608 N m against the same 1.484 N m, 2.4 times. By hand: the 17HS4401 holds 0.4 N m, and moving, 0.4 / √2 = 0.283 N m, flat up to its 12 V corner of 60 × 12 / (2 × 2.8 mH × 1.7 A × 200 steps) = 378 rpm, so all of it at 200 rpm; at 0.5 of its 1.7 A, 0.083 N m; through 38:1 at 47%, 1.484 N m. The supply's 12 V costs nothing here, since 200 rpm is under its corner: only the mass moves the margins. With the NEMA 14 the knee had 1.419 N m for 0.451 N m at 0.75 kg, 3.1 times, and the hip 11.4 times; the 17HS4401 gives the knee more torque, and the 90 g it adds, with the load now counted as what rides the rods, brings both margins down to these. Those figures are the foot's load only, not the leg's own weight in the swing, and the gearbox efficiency is an estimate.
5343
5358
  - The drivers and the supply: each DRV8825's trimmer at 0.25 V for 0.5 A a coil (on 0.1 ohm sense resistors: read yours first), and the machine draws 0.22 A at 12 V (2.6 W) from the bench supply's 1.5 A limit, 6.9 times over.
5344
5359
  - `gait.sweep` passes: the leg, moved through the cycle pose by pose, hits nothing, with every planet and the sun turning as they should (the gait moves the motor's shaft that leads each output, and the rest follows).
5345
5360
  - The gears' overlap is zero: the second ring is put in phase at the joint's own zero, wherever its range starts. (A range that left out zero once put the ring 30° out, and every planet into its teeth.)
@@ -5739,8 +5754,8 @@ Eight motors are more than the stand's Uno under a CNC shield can step: its stre
5739
5754
  {"a": "fl_housing", "b": "left", "min": 0},
5740
5755
  {"a": "fl_bridge", "b": "fl_housing", "min": 0},
5741
5756
  {"a": "fl_b1", "b": "fl_bridge", "seat": "press"},
5742
- {"a": "fl_ecarrier", "b": "fl_ering", "min": -1},
5743
- {"a": "fl_pad", "b": "fl_shin", "min": -2},
5757
+ {"a": "fl_ecarrier", "b": "fl_ering", "overlap": "allowed"},
5758
+ {"a": "fl_pad", "b": "fl_shin", "overlap": "allowed"},
5744
5759
  {"a": "fr_m1", "b": "fr_housing", "fastens": true, "min": -0.1},
5745
5760
  {"a": "fr_m1", "b": "fr_sun", "shaft": true},
5746
5761
  {"a": "fr_m2", "b": "fr_esun", "shaft": true},
@@ -5748,8 +5763,8 @@ Eight motors are more than the stand's Uno under a CNC shield can step: its stre
5748
5763
  {"a": "fr_housing", "b": "right", "min": 0},
5749
5764
  {"a": "fr_bridge", "b": "fr_housing", "min": 0},
5750
5765
  {"a": "fr_b1", "b": "fr_bridge", "seat": "press"},
5751
- {"a": "fr_ecarrier", "b": "fr_ering", "min": -1},
5752
- {"a": "fr_pad", "b": "fr_shin", "min": -2},
5766
+ {"a": "fr_ecarrier", "b": "fr_ering", "overlap": "allowed"},
5767
+ {"a": "fr_pad", "b": "fr_shin", "overlap": "allowed"},
5753
5768
  {"a": "bl_m1", "b": "bl_housing", "fastens": true, "min": -0.1},
5754
5769
  {"a": "bl_m1", "b": "bl_sun", "shaft": true},
5755
5770
  {"a": "bl_m2", "b": "bl_esun", "shaft": true},
@@ -5757,8 +5772,8 @@ Eight motors are more than the stand's Uno under a CNC shield can step: its stre
5757
5772
  {"a": "bl_housing", "b": "left", "min": 0},
5758
5773
  {"a": "bl_bridge", "b": "bl_housing", "min": 0},
5759
5774
  {"a": "bl_b1", "b": "bl_bridge", "seat": "press"},
5760
- {"a": "bl_ecarrier", "b": "bl_ering", "min": -1},
5761
- {"a": "bl_pad", "b": "bl_shin", "min": -2},
5775
+ {"a": "bl_ecarrier", "b": "bl_ering", "overlap": "allowed"},
5776
+ {"a": "bl_pad", "b": "bl_shin", "overlap": "allowed"},
5762
5777
  {"a": "br_m1", "b": "br_housing", "fastens": true, "min": -0.1},
5763
5778
  {"a": "br_m1", "b": "br_sun", "shaft": true},
5764
5779
  {"a": "br_m2", "b": "br_esun", "shaft": true},
@@ -5766,8 +5781,8 @@ Eight motors are more than the stand's Uno under a CNC shield can step: its stre
5766
5781
  {"a": "br_housing", "b": "right", "min": 0},
5767
5782
  {"a": "br_bridge", "b": "br_housing", "min": 0},
5768
5783
  {"a": "br_b1", "b": "br_bridge", "seat": "press"},
5769
- {"a": "br_ecarrier", "b": "br_ering", "min": -1},
5770
- {"a": "br_pad", "b": "br_shin", "min": -2}
5784
+ {"a": "br_ecarrier", "b": "br_ering", "overlap": "allowed"},
5785
+ {"a": "br_pad", "b": "br_shin", "overlap": "allowed"}
5771
5786
  ],
5772
5787
  "wires": [
5773
5788
  {"id": "fl_hd_motor", "from": "fl_m1.connector", "to": "fl_board1.top", "gauge": "awg24", "colour": "black, red, green, blue", "connectors": ["JST-XH 4 pin", "screw terminal"]},
@@ -6088,8 +6103,8 @@ Eight motors are more than the stand's Uno under a CNC shield can step: its stre
6088
6103
  {"a": "fl_housing", "b": "left", "min": 0},
6089
6104
  {"a": "fl_bridge", "b": "fl_housing", "min": 0},
6090
6105
  {"a": "fl_b1", "b": "fl_bridge", "seat": "press"},
6091
- {"a": "fl_ecarrier", "b": "fl_ering", "min": -1},
6092
- {"a": "fl_pad", "b": "fl_shin", "min": -2},
6106
+ {"a": "fl_ecarrier", "b": "fl_ering", "overlap": "allowed"},
6107
+ {"a": "fl_pad", "b": "fl_shin", "overlap": "allowed"},
6093
6108
  {"a": "fr_m1", "b": "fr_housing", "fastens": true, "min": -0.1},
6094
6109
  {"a": "fr_m1", "b": "fr_sun", "shaft": true},
6095
6110
  {"a": "fr_m2", "b": "fr_esun", "shaft": true},
@@ -6097,8 +6112,8 @@ Eight motors are more than the stand's Uno under a CNC shield can step: its stre
6097
6112
  {"a": "fr_housing", "b": "right", "min": 0},
6098
6113
  {"a": "fr_bridge", "b": "fr_housing", "min": 0},
6099
6114
  {"a": "fr_b1", "b": "fr_bridge", "seat": "press"},
6100
- {"a": "fr_ecarrier", "b": "fr_ering", "min": -1},
6101
- {"a": "fr_pad", "b": "fr_shin", "min": -2},
6115
+ {"a": "fr_ecarrier", "b": "fr_ering", "overlap": "allowed"},
6116
+ {"a": "fr_pad", "b": "fr_shin", "overlap": "allowed"},
6102
6117
  {"a": "bl_m1", "b": "bl_housing", "fastens": true, "min": -0.1},
6103
6118
  {"a": "bl_m1", "b": "bl_sun", "shaft": true},
6104
6119
  {"a": "bl_m2", "b": "bl_esun", "shaft": true},
@@ -6106,8 +6121,8 @@ Eight motors are more than the stand's Uno under a CNC shield can step: its stre
6106
6121
  {"a": "bl_housing", "b": "left", "min": 0},
6107
6122
  {"a": "bl_bridge", "b": "bl_housing", "min": 0},
6108
6123
  {"a": "bl_b1", "b": "bl_bridge", "seat": "press"},
6109
- {"a": "bl_ecarrier", "b": "bl_ering", "min": -1},
6110
- {"a": "bl_pad", "b": "bl_shin", "min": -2},
6124
+ {"a": "bl_ecarrier", "b": "bl_ering", "overlap": "allowed"},
6125
+ {"a": "bl_pad", "b": "bl_shin", "overlap": "allowed"},
6111
6126
  {"a": "br_m1", "b": "br_housing", "fastens": true, "min": -0.1},
6112
6127
  {"a": "br_m1", "b": "br_sun", "shaft": true},
6113
6128
  {"a": "br_m2", "b": "br_esun", "shaft": true},
@@ -6115,8 +6130,8 @@ Eight motors are more than the stand's Uno under a CNC shield can step: its stre
6115
6130
  {"a": "br_housing", "b": "right", "min": 0},
6116
6131
  {"a": "br_bridge", "b": "br_housing", "min": 0},
6117
6132
  {"a": "br_b1", "b": "br_bridge", "seat": "press"},
6118
- {"a": "br_ecarrier", "b": "br_ering", "min": -1},
6119
- {"a": "br_pad", "b": "br_shin", "min": -2}
6133
+ {"a": "br_ecarrier", "b": "br_ering", "overlap": "allowed"},
6134
+ {"a": "br_pad", "b": "br_shin", "overlap": "allowed"}
6120
6135
  ],
6121
6136
  "wires": [
6122
6137
  {"id": "fl_hd_motor", "from": "fl_m1.connector", "to": "fl_board1.top", "gauge": "awg24", "colour": "black, red, green, blue", "connectors": ["JST-XH 4 pin", "screw terminal"]},
@@ -6167,7 +6182,7 @@ Said plainly, because a gait that passes these checks is not a robot that walks:
6167
6182
  - **Feedback.** The motors are open-loop steppers: a stall or a slip goes unnoticed. A real leg needs at least encoders at the joints and a way to feel the ground, and code that uses them.
6168
6183
  - **Measuring.** Nothing here has been printed. The stand exists to change that: run its leg, write what the scale reads into the ledger with `cad measured`, and start again from what it says.
6169
6184
 
6170
- `npm create rulecad --machine leg` starts a project from the leg and its stand, with the streamer and its sender. The trot streams through the streamer on a simulated Mega 2560 in the kit's tests, every step counted; a measured leg is not done yet.
6185
+ `npm create rulecad -- --machine leg` starts a project from the leg and its stand, with the streamer and its sender. The trot streams through the streamer on a simulated Mega 2560 in the kit's tests, every step counted; a measured leg is not done yet.
6171
6186
 
6172
6187
 
6173
6188
  ## 15. Fixings: a bracket screwed on
@@ -6376,13 +6391,13 @@ What the check says, screw by screw:
6376
6391
  bottoming out), M3x8 cap for the insert, M3x16 countersunk for the nuts.
6377
6392
  - `fasten.engagement`: 6.6 mm of thread in PLA where `m3.pilot_depth` asks 5 mm; 4.6 mm in the insert, where
6378
6393
  `fixings.insert_engagement` asks a diameter or the whole insert; the nut's whole 2.4 mm.
6379
- - `fasten.seat`: the cap heads sit flat, 3 mm down their counterbores, and PLA under them takes 553 N, a tightening
6380
- of 0.33 N m, so they are tightened to 0.16 N m at most, half that; the countersunk heads sit in an 89.8° countersink, flush with the back.
6394
+ - `fasten.seat`: the cap heads sit flat, 3 mm down their counterbores, and PLA under them, out to the head's 5.07 mm
6395
+ bearing face, takes 414 N, a tightening of 0.25 N m, so they are tightened to 0.12 N m at most, half that; the countersunk heads sit in an 89.8° countersink, flush with the back.
6381
6396
  - `fasten.access`: a 2.5 mm hex key reaches each cap head along its axis, and a 2 mm key each countersunk head, with
6382
6397
  nothing within the key's corners for its long arm's 58.5 mm or 52 mm (`hexkey`, ISO 2936).
6383
- - `fasten.load`: with the shelf's 2 kg, the front screws are tightened to 0.16 N m, half what the seat under the head
6384
- takes, and the pilot's thread in PLA holds that preload and the pull 4.3 times over; the back screws hold 32.6 times
6385
- the load, the screw first (the nut's thread is steel and not checked). Each holds its shear by friction 4.6 and 3.6
6398
+ - `fasten.load`: with the shelf's 2 kg, the front screws are tightened to 0.12 N m, half what the seat under the head
6399
+ takes, and the pilot's thread in PLA holds that preload and the pull 5.7 times over; the back screws hold 32.6 times
6400
+ the load, the screw first (the nut's thread is steel and not checked). Each holds its shear by friction 3.5 and 3.6
6386
6401
  times over. The torque on the back screws is given (0.3 N m), because the check holds the
6387
6402
  pressure under a flat seat and not yet on a countersink's cone.
6388
6403
 
@@ -6390,14 +6405,14 @@ Each relation is reckoned as if it held the bracket alone, so the two figures ar
6390
6405
  estimates (the plastic's strength in shear, the nut factor, the friction), and the finding names each one.
6391
6406
 
6392
6407
  `cad list` gives the screws by thread, length and head, with what they weigh and how they are bought, and the two
6393
- prints: the plate 5.9 g and the bracket 11.8 g, 17.7 g and about 20 minutes of printing, and 5 g of fixings.
6408
+ prints: the plate 5.8 g and the bracket 11.6 g, 17.4 g and about 20 minutes of printing, and 5 g of fixings.
6394
6409
  `cad order` gives the steps: the plate first, then the bracket with its four screws, each with its key and torque, the
6395
6410
  insert and the nuts named with them.
6396
6411
 
6397
6412
  ### Strong enough, and small
6398
6413
 
6399
6414
  The design rule is the smallest part that carries its load about twice over. By hand, PLA at 39 MPa along the layers
6400
- (`pla.strength`, a community figure), 2 kg is 19.6 N:
6415
+ (`pla.strength`, from its maker's data sheet), 2 kg is 19.6 N:
6401
6416
 
6402
6417
  | Part | Where it is worst | Load | Stress | Margin |
6403
6418
  |---|---|---|---|---|
@@ -6511,11 +6526,11 @@ tighten to. The screws, the insert and the nuts are drawn faint in place.
6511
6526
  ### What is measured, and what waits on the bench
6512
6527
 
6513
6528
  The pilot is the X1C's own measured figure. The insert's hole, the nut's slot, the counterbore's room for a head and
6514
- the strength figures under `fasten.load` are not, and their findings say so. Print 7 in
6515
- `examples/bench/projects/benchmarks/MEASURE.md`, the fixings coupon, settles them: pilots at five sizes, insert holes,
6516
- nut pockets and slots at three fits, a counterbore and printed threads. Its results go back with `cad measured
6517
- benchmarks/fixings-test <rule>=<figure>`, and every design drawn from `v.fixings` follows them the next time it is
6518
- built.
6529
+ the strength figures under `fasten.load` are not, and their findings say so. The fixings coupon settles them:
6530
+ pilots at five sizes, insert holes, nut pockets and slots at three fits, a counterbore and printed threads.
6531
+ `npx cad coupons` adds it to your workspace, in `projects/coupons` with its `MEASURE.md`; its results go back with
6532
+ `cad measured <rule>=<figure>` (`x1c.pilot_m4=3.3`), and every design drawn from `v.fixings` follows them the next
6533
+ time it is built.
6519
6534
 
6520
6535
  ## 16. A frame: beams, joins and an axis
6521
6536
 
@@ -6595,7 +6610,7 @@ An address names a place on a beam: `p1.back@30` is the face of `p1` that looks
6595
6610
  brackets go on.
6596
6611
  - **Feet and caps.** A printed `foot` on each post's end `a`, screwed into the end's bore, which the post's own `ops`
6597
6612
  tap M5 as the foot asks. A printed `end-cap` on each end `b`, pushed on: its pegs go 5 mm into the slots and the bore,
6598
- a press fit (`"min": -5`).
6613
+ a fit that fastens with `"overlap": "allowed"`, as they stand in the beam.
6599
6614
  - **The axis.** A `rods` guide on the top face of `x3`, from 100 to 250 mm along it: two 8 mm rods in printed holders,
6600
6615
  a printed carriage on two LM8UU bearings. A `screw` guide drives it: a printed motor plate before the first holder,
6601
6616
  a NEMA 17 on it, a coupler and an 8 mm lead T8 screw, a 608 bearing for the screw in each holder and the lead nut on
@@ -6653,10 +6668,10 @@ An address names a place on a beam: `p1.back@30` is the face of `p1` that looks
6653
6668
  { "kind": "blind", "a": "y4.a", "b": "p2.top@190" }, { "kind": "blind", "a": "y4.b", "b": "p3.bottom@190" }
6654
6669
  ],
6655
6670
  "fits": [
6656
- { "a": "cap1", "b": "p1", "fastens": true, "min": -5, "note": "An end cap, its pegs pushed 5 mm into the slots and the bore" },
6657
- { "a": "cap2", "b": "p2", "fastens": true, "min": -5, "note": "An end cap, its pegs pushed 5 mm into the slots and the bore" },
6658
- { "a": "cap3", "b": "p3", "fastens": true, "min": -5, "note": "An end cap, its pegs pushed 5 mm into the slots and the bore" },
6659
- { "a": "cap4", "b": "p4", "fastens": true, "min": -5, "note": "An end cap, its pegs pushed 5 mm into the slots and the bore" }
6671
+ { "a": "cap1", "b": "p1", "fastens": true, "overlap": "allowed", "note": "An end cap, its pegs pushed 5 mm into the slots and the bore" },
6672
+ { "a": "cap2", "b": "p2", "fastens": true, "overlap": "allowed", "note": "An end cap, its pegs pushed 5 mm into the slots and the bore" },
6673
+ { "a": "cap3", "b": "p3", "fastens": true, "overlap": "allowed", "note": "An end cap, its pegs pushed 5 mm into the slots and the bore" },
6674
+ { "a": "cap4", "b": "p4", "fastens": true, "overlap": "allowed", "note": "An end cap, its pegs pushed 5 mm into the slots and the bore" }
6660
6675
  ],
6661
6676
  "guides": [
6662
6677
  { "kind": "rods", "on": "x3.top", "from": 100, "length": 150, "nut": "drop-in" },
@@ -6730,7 +6745,8 @@ The bracket is the part its load sizes: thinner, it would bend past its margin.
6730
6745
  rather than what they carry: the carriage by its two bearings' pockets and the nut's bore, the holder by the 608
6731
6746
  bearing pressed into it, the plate by the motor's boss and its four screws, the foot by the counterbore its screw's
6732
6747
  head sinks into. Each is as small as those allow. The margins under 3.06 come from beam formulas or coarse finite
6733
- elements on PLA's 39 MPa (`pla.strength`, a community figure), so each is an estimate, and the finding says so.
6748
+ elements on PLA's strength (`pla.strength`, 39 MPa along its layers, and `pla.strength_z`, 35 across them), so each is
6749
+ an estimate, and the finding says so.
6734
6750
 
6735
6751
  ### Cut, drilled and tapped
6736
6752
 
@@ -6743,10 +6759,11 @@ npx cad beams frame/box --jigs
6743
6759
  `cad list` gives the cut list. The beams come in seven marks, beams cut and drilled alike sharing one: `A`, the four
6744
6760
  rails along x at 260 mm, each tapped M5 18.5 mm deep at both ends; `B`, the two bracket-held rails at 220 mm, cut
6745
6761
  square and nothing more; `C`, the two top rails along y, tapped; and `D` to `G`, the four posts at 200 mm, each tapped
6746
- at its foot, with three access holes on the faces its rails meet. All twelve come out of one 4000 mm bar, with a
6747
- 3 mm kerf and 10 mm trimmed off its first end, leaving a 1234 mm offcut. Then the bought parts (the rods, bearings,
6748
- coupler, screw, nut and motor), the fasteners by size with the packs to buy, and 124 g printed in 17 parts, about
6749
- 134 minutes of printing. The fasteners, as `cad list` gives them:
6762
+ at its foot, with three access holes on the faces its rails meet. All twelve come out of three 1000 mm bars, 3000 mm
6763
+ of metal where one 4000 mm bar would hold them too, with a 3 mm kerf and 10 mm trimmed off each bar's first end,
6764
+ leaving 216 mm of offcuts. The first bar is filled: three rails and a post take 999 mm of it, and the last cut takes
6765
+ the millimetre left. Then the bought parts (the rods, bearings, coupler, screw, nut and motor), the fasteners by size
6766
+ with the packs to buy, and 122 g printed in 17 parts, about 134 minutes of printing. The fasteners, as `cad list` gives them:
6750
6767
 
6751
6768
  - 12 × M5x12 button, for the blind joins.
6752
6769
  - 16 × M4x10 cap, with 16 of the 18 drop-in nuts, for the brackets, the rod holders and the motor plate.
@@ -6768,7 +6785,7 @@ npx cad plates frame/box
6768
6785
  ```
6769
6786
 
6770
6787
  Every printed part of the frame goes on one plate of the X1C's bed, laid as each prints: the four brackets, the four
6771
- feet and caps, the two rod holders, the carriage, the motor plate and the board plate, 17 parts and 124 g, spaced by
6788
+ feet and caps, the two rod holders, the carriage, the motor plate and the board plate, 17 parts and 122 g, spaced by
6772
6789
  the first layer's rule (0.84 mm). The plate is written as an assembly, `box-base-1`, and checked as one print: no
6773
6790
  overhang past 45°, nothing in mid-air, nothing too near its neighbour on the first layer.
6774
6791