@rulecad/cad 0.7.97 → 0.9.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.
- package/AGENTS.md +26 -10
- package/CHANGELOG.md +442 -2
- package/EXAMPLES.md +48 -42
- package/README.md +226 -73
- package/TUTORIAL.md +2 -2
- package/bin/cad.mjs +2253 -514
- package/lib/animate.mjs +173 -49
- package/lib/assembly.mjs +1854 -437
- package/lib/beams.mjs +256 -52
- package/lib/belts.mjs +66 -15
- package/lib/board-work.mjs +12 -0
- package/lib/bought.mjs +309 -53
- package/lib/buildpage.mjs +179 -29
- package/lib/carried.mjs +201 -0
- package/lib/clone.mjs +194 -42
- package/lib/design.mjs +734 -113
- package/lib/drive.mjs +187 -63
- package/lib/edit.mjs +900 -191
- package/lib/errors.mjs +16 -3
- package/lib/explain.mjs +62 -13
- package/lib/fasten.mjs +2710 -502
- package/lib/fittings.mjs +715 -121
- package/lib/fixings.mjs +21 -9
- package/lib/framebuild.mjs +792 -176
- package/lib/framecheck.mjs +1901 -368
- package/lib/framegen.mjs +100 -22
- package/lib/frameheat.mjs +225 -42
- package/lib/frameprint.mjs +513 -108
- package/lib/frames.mjs +81 -17
- package/lib/framesize.mjs +792 -120
- package/lib/frametip.mjs +235 -0
- package/lib/gait.mjs +135 -23
- package/lib/grip.mjs +62 -13
- package/lib/guides.mjs +1403 -230
- package/lib/host.mjs +149 -18
- package/lib/inplace.mjs +171 -36
- package/lib/jigs.mjs +360 -78
- package/lib/joins.mjs +697 -118
- package/lib/jsonedit.mjs +88 -26
- package/lib/kept.mjs +84 -0
- package/lib/kit.mjs +438 -68
- package/lib/layout.mjs +3 -1
- package/lib/links.mjs +149 -42
- package/lib/list.mjs +326 -64
- package/lib/live-guard.mjs +68 -0
- package/lib/live-shape.mjs +96 -24
- package/lib/live.mjs +189 -59
- package/lib/loads.mjs +579 -130
- package/lib/machine.mjs +372 -74
- package/lib/magnets.mjs +162 -44
- package/lib/measured.mjs +417 -94
- package/lib/mesh.mjs +526 -119
- package/lib/meshcmd.mjs +215 -60
- package/lib/motors.mjs +1022 -212
- package/lib/motorsvg.mjs +114 -32
- package/lib/names.mjs +41 -0
- package/lib/optimise.mjs +979 -283
- package/lib/order.mjs +519 -112
- package/lib/panels.mjs +482 -94
- package/lib/parts.mjs +78 -23
- package/lib/pins.mjs +163 -44
- package/lib/plates.mjs +224 -36
- package/lib/player.mjs +37 -9
- package/lib/power.mjs +64 -13
- package/lib/preview.mjs +83 -16
- package/lib/profilemeasure.mjs +572 -129
- package/lib/rules.mjs +38 -4
- package/lib/sandbox-hooks.mjs +154 -12
- package/lib/sandbox-preload.mjs +2 -2
- package/lib/sandbox-run.mjs +127 -12
- package/lib/sandbox.mjs +632 -35
- package/lib/schema.mjs +43 -11
- package/lib/seats.mjs +227 -49
- package/lib/services.mjs +261 -52
- package/lib/sheet.mjs +851 -178
- package/lib/slotnuts.mjs +213 -34
- package/lib/targets/gist.mjs +4 -1
- package/lib/targets.mjs +42 -6
- package/lib/task.mjs +376 -79
- package/lib/versions.mjs +113 -28
- package/lib/wires.mjs +228 -45
- package/lib/workspace.mjs +216 -17
- package/package.json +19 -19
- package/schemas/assembly.schema.json +2 -2
- package/schemas/object.schema.json +1 -1
- package/schemas/project.schema.json +1 -1
package/EXAMPLES.md
CHANGED
|
@@ -284,7 +284,7 @@ npx cad check home/arm
|
|
|
284
284
|
|
|
285
285
|
`optimise` draws the layout in `.preview/` and reports how far the load moves; the result is kept until the problem
|
|
286
286
|
or the solver changes. `check` analyses the part as drawn, on cells half the size and again a quarter bigger, and says
|
|
287
|
-
whether the stiffness has settled.
|
|
287
|
+
whether the stiffness has settled (and, with `min_safety`, the peak stress).
|
|
288
288
|
|
|
289
289
|
## 6. A board, and a case that reads it
|
|
290
290
|
|
|
@@ -327,6 +327,9 @@ export function main (v) {
|
|
|
327
327
|
|
|
328
328
|
`"role": "board"` says the fab makes it: it is not printed, and a list leaves it out of the plastic.
|
|
329
329
|
|
|
330
|
+
A board design runs in the design sandbox, with the board engine, as every design does: it can't write files or start
|
|
331
|
+
programs, and the workspace asks for no trust.
|
|
332
|
+
|
|
330
333
|
```sh
|
|
331
334
|
npx cad check home/pad
|
|
332
335
|
npx cad export home/pad
|
|
@@ -2786,8 +2789,9 @@ it without `--json` and read them. What it says:
|
|
|
2786
2789
|
- `m1 into out` gives 7.3 times the 0.22 N m the task asks at the shoulder, at the 0.5 A chosen, and `m2 into elbow` 20
|
|
2787
2790
|
times its 0.08 N m, both at 300 rpm on the supply's 12 V. (On 24 V, with a NEMA 14 at the elbow and 0.2 N m asked at
|
|
2788
2791
|
the shoulder, they were 8.4 and 17.7 times.) Both joints hold with the power off: 38:1 at 47% can't be driven backwards.
|
|
2789
|
-
- `motor.accel` and `task.time`: the 12 V torque
|
|
2790
|
-
times the 500 the task plans, so a move across the sheet takes 5.24 s
|
|
2792
|
+
- `motor.accel` and `task.time`: what the 12 V torque leaves once the declared shoulder and elbow torques are held still
|
|
2793
|
+
accelerates the pen at up to 5088 mm/s², ten times the 500 the task plans, so a move across the sheet takes 5.24 s:
|
|
2794
|
+
the speed sets it, not the torque.
|
|
2791
2795
|
- Each `fasten` is followed screw by screw: the holes line up, each far end is a pilot (an M3's 2.9 mm, `x1c.pilot_m3`,
|
|
2792
2796
|
measured; an M2's 2.1 mm, `m2.pilot`, a community figure) or the yoke's nut, the length is the shortest sold that fits
|
|
2793
2797
|
(M3x8 into the base's columns, M3x10 into the posts, M3x8 countersunk into the output's flange, M3x12 into the elbow's,
|
|
@@ -2825,22 +2829,18 @@ The task is a box of points in front of the arm, 80 mm deep and 120 mm tall, wit
|
|
|
2825
2829
|
|
|
2826
2830
|
| | Drawing (chapter 12) | Lifting (this chapter) |
|
|
2827
2831
|
|---|---|---|
|
|
2828
|
-
| Load on the shoulder | 0.22 N m of pen drag, inertia and bias, no gravity |
|
|
2829
|
-
| Shoulder motor at 0.5 A, 12 V | 7.3 times over | 1.
|
|
2830
|
-
| Current | 0.5 A a coil | 0.8 A a coil for the shoulder, 2.
|
|
2832
|
+
| Load on the shoulder | 0.22 N m of pen drag, inertia and bias, no gravity | 0.99 N m, the arm's own weight and 100 g, at the worst of its range |
|
|
2833
|
+
| Shoulder motor at 0.5 A, 12 V | 7.3 times over | 1.6 times over: under the 2 times the check asks for |
|
|
2834
|
+
| Current | 0.5 A a coil | 0.8 A a coil for the shoulder, 2.6 times over; the elbow stays at 0.5 A |
|
|
2831
2835
|
| What the links do | 0.3 N of drag sideways, about 0.02 mm | 6.6 N of weight in their plane: the tool drops 2.1 mm, the biggest term in the budget |
|
|
2832
2836
|
| What the 6800 sees | The pen's drag | 0.189 N m of tipping and 6.6 N across it: 33 N equivalent, against 925 N |
|
|
2833
2837
|
| The budget | 0.3 mm | 2.5 mm: a gripper, not a pen |
|
|
2834
2838
|
|
|
2835
|
-
The shoulder has to hold the arm up, and the way to read that is the worst pose: the arm stretched forward with its elbow up, the tool at the box's far side, the masses all as far out as they get. `motor.torque` looks at each loaded joint with its motor run through its range, and at each pose of the assembly. The assembly is drawn in that far pose (named `reach`), so that sweep passes through it. The shoulder needs
|
|
2836
|
-
|
|
2837
|
-
Why 0.8 A and not more. Chapter 12 set the current from what the arm has to do, and the same reasoning sets it here: the shoulder gives 3.2 N m an amp at 300 rpm on 12 V, so 0.72 A is the least that keeps it over the check's 2 times, and 0.8 A rounds that up. It also sets what the arm can do to itself when it stalls: at 0.8 A the shoulder can give about 3.8 N m stalled, and that is 19 MPa of shear in the spindle's printed 10 mm shaft, against PLA's 22. At 1 A the torque would be 2.8 times over, but stalled it would put about 4.8 N m on the output, 24 MPa, past PLA's 22: the shaft would break before the motor slipped. Set the shoulder's trimmer to 0.4 V (0.8 A) and the elbow's to 0.25 V, the way chapter 12 says. The machine draws 0.64 A from the 12 V supply, so the same 1.5 A limit covers it. A person running this arm at 0.8 A should print the spindle in PETG or put a steel shaft through it. That is the first thing that changes in the parts, and it's the sort of number a check can't fix for you.
|
|
2839
|
+
The shoulder has to hold the arm up, and the way to read that is the worst pose: the arm stretched forward with its elbow up, the tool at the box's far side, the masses all as far out as they get. `motor.torque` looks at each loaded joint with its motor run through its range, and at each pose of the assembly. The assembly is drawn in that far pose (named `reach`), so that sweep passes through it. The shoulder needs 0.993 N m and has 2.56 N m at 0.8 A on 12 V through the 38:1 gearbox: 2.58 times over. The kit's other torque figure, `motor.accel`, is worked out across all the box's sampled points: at the worst of them there is still 0.089 N m left at the motor to accelerate with.
|
|
2838
2840
|
|
|
2839
|
-
|
|
2841
|
+
Why 0.8 A and not more. Chapter 12 set the current from what the arm has to do, and the same reasoning sets it here: the shoulder gives 3.2 N m an amp at 300 rpm on 12 V, so 0.62 A is the least that keeps it over the check's 2 times, and 0.8 A leaves room over that for the gearbox parts the check cannot weigh (below). It also sets what the arm can do to itself when it stalls: at 0.8 A the shoulder can give about 3.8 N m stalled, and that is 19 MPa of shear in the spindle's printed 10 mm shaft, against PLA's 22. At 1 A the torque would be 3.2 times over, but stalled it would put about 4.8 N m on the output, 24 MPa, past PLA's 22: the shaft would break before the motor slipped. Set the shoulder's trimmer to 0.4 V (0.8 A) and the elbow's to 0.25 V, the way chapter 12 says. The machine draws 0.64 A from the 12 V supply, so the same 1.5 A limit covers it. A person running this arm at 0.8 A should print the spindle in PETG or put a steel shaft through it. That is the first thing that changes in the parts, and it's the sort of number a check can't fix for you.
|
|
2840
2842
|
|
|
2841
|
-
|
|
2842
|
-
- `lift.fore_mass` 0.07 kg at `forearm.cable`, about halfway along the forearm: the forearm and the elbow's output gear.
|
|
2843
|
-
- `lift.tool_mass` 0.148 kg at `gripper.tool`: the gripper, its servo and the 100 g payload.
|
|
2843
|
+
The motor checks weigh the arm as it is drawn, so the assembly declares no masses of its own: the printed parts by their volume and PLA's density, and the bought parts (the elbow's 17HS4401 among them) by the mass their rule sets give, 574 g beyond the shoulder and 107 g beyond the elbow, with the task's 100 g payload at the tool. Each motor finding says what it counted (`counted: the parts' own 574 g, 100 g of payload, gravity along [0, 0, -1]`). The gearbox parts whose rule sets give no mass (`joint.moment.mass` names them) weigh nothing there, so the figures are a little under the real arm's: that is what the margin over 2 times is for. The masses in `rules/lift.json` (`lift.upper_mass`, `lift.fore_mass`, `lift.tool_mass`) are the same weights worked out by hand, kept to compare against; declaring them in `"loads"` as well would count the arm twice.
|
|
2844
2844
|
|
|
2845
2845
|
### Holding it with the power off
|
|
2846
2846
|
|
|
@@ -2849,11 +2849,11 @@ The loads are written in the assembly as three masses at anchors, from the mass
|
|
|
2849
2849
|
| Real efficiency | Backward efficiency | Back at the motor | Against the 0.025 N m detent |
|
|
2850
2850
|
|---|---|---|---|
|
|
2851
2851
|
| 47% (the estimate) | under 0 | 0, it can't turn backwards | holds |
|
|
2852
|
-
| 60% | 33% | 0.
|
|
2853
|
-
| 75% | 67% | 0.
|
|
2854
|
-
| 85% | 82% | 0.
|
|
2852
|
+
| 60% | 33% | 0.009 N m | holds, 2.9 times over |
|
|
2853
|
+
| 75% | 67% | 0.017 N m | holds, 1.4 times over |
|
|
2854
|
+
| 85% | 82% | 0.022 N m | holds, 1.2 times over: near the edge |
|
|
2855
2855
|
|
|
2856
|
-
The back torque there is the shoulder's
|
|
2856
|
+
The back torque there is the shoulder's 0.993 N m worst load through 38:1, times the backward efficiency: the motor's own detent torque, 0.025 N m (the catalogue's figure, an `estimate`), carries it even if the gears run much freer than anything printed is likely to. The elbow, 0.196 N m through the same box against the 17HS4401's 0.025 N m detent, holds by the same arithmetic nearly six times over at 85%: the bigger motor's detent leaves more in hand there than the NEMA 14's 0.008 N m did.
|
|
2857
2857
|
|
|
2858
2858
|
Three things could hold the arm with the power off: the gears' friction, a counter-spring, or a brake. A counter-spring from `@rulecad/flexures` is the usual way to take gravity off a shoulder, and it earns its place when a joint is back-drivable; it would cost a leaf spring strong enough for a newton metre across 90° of swing, a large part, for a joint that already holds. A brake is a bought part and a coil to wire for a problem the gears already solve. So the chapter chooses friction, marks it `estimate`, and bench test 14 in `examples/bench/projects/benchmarks/MEASURE.md` (the gearbox's play, measured at both directions) is where a person learns whether the efficiency is what the figures assume.
|
|
2859
2859
|
|
|
@@ -3541,11 +3541,6 @@ The project lists the new objects:
|
|
|
3541
3541
|
{ "id": "home2", "from": "es2.left", "to": "shield.Y", "via": ["upper.cable", "base.cable"], "gauge": "awg26", "colour": "white, black", "conductors": 2, "connectors": ["Crimped spade", "Y limit and GND"] },
|
|
3542
3542
|
{ "id": "power", "from": "psu.terminals", "to": "shield.top", "gauge": "awg22", "colour": "red, black", "conductors": 2, "current": 2, "connectors": ["Ring terminal", "Screw terminal"], "note": "12 V from the bench supply, its current limit at 1.5 A, into the shield's motor terminals" }
|
|
3543
3543
|
],
|
|
3544
|
-
"loads": [
|
|
3545
|
-
{ "mass": "lift.upper_mass", "at": "upper.elbow", "note": "The upper arm, the elbow's gears and its motor, worst placed at the elbow" },
|
|
3546
|
-
{ "mass": "lift.fore_mass", "at": "forearm.cable", "note": "The forearm and the elbow's output gear, about half along" },
|
|
3547
|
-
{ "mass": "lift.tool_mass", "at": "gripper.tool", "note": "The gripper, its servo and the payload" }
|
|
3548
|
-
],
|
|
3549
3544
|
"task": { "tool": "gripper.tool", "volume": { "x": [170, 250], "y": [-56.6, -56.6], "z": [-60, 60] }, "accuracy": 2.5, "accel": 300, "elbow": "left", "payload": "lift.payload", "grip": { "material": "petg", "servo": "gservo", "horn": "lift.grip_horn", "leaf": { "length": "lift.leaf_l", "thickness": "lift.leaf_t", "width": "lift.leaf_w" }, "travel": "lift.grip_travel", "friction": "lift.friction", "lever": "lift.grip_lever" } },
|
|
3550
3545
|
"poses": { "reach": { "drive": -1269.4, "edrive": -2679.6, "squeeze": 0 } }
|
|
3551
3546
|
}
|
|
@@ -3747,7 +3742,7 @@ Lifting wants a Z, the tool up and down, and on a flat arm a Z is the only way t
|
|
|
3747
3742
|
| What it leaves unchanged | The arm's links and joints, calibrated as they are | Nothing |
|
|
3748
3743
|
| The choice | Wrist: it lifts a fifth of the mass and needs no new structure | |
|
|
3749
3744
|
|
|
3750
|
-
So the Z goes at the wrist, bolted into the forearm's yoke where the gripper goes, and on the drawing arm only: on the upright arm a wrist Z runs level, in and out from the wall, and adds to the shoulder's load instead of lifting anything. The motor is the small geared stepper, the 28BYJ-48: 30 g rather than the 190 g NEMA 14, because a 250 g load on an 8 mm lead needs only 2
|
|
3745
|
+
So the Z goes at the wrist, bolted into the forearm's yoke where the gripper goes, and on the drawing arm only: on the upright arm a wrist Z runs level, in and out from the wall, and adds to the shoulder's load instead of lifting anything. The motor is the small geared stepper, the 28BYJ-48: 30 g rather than the 190 g NEMA 14, because a 250 g load on an 8 mm lead needs only 3.2 N, the carriage's own 76 g with it. Everything turns on the lead's torque, `F = T × 2π × η / lead`: with an 8 mm lead the 28BYJ-48's 0.034 N m gives 15.5 N at about 58% (μ 0.2 on the nut, an `estimate` in the rule set), 4.85 times over.
|
|
3751
3746
|
|
|
3752
3747
|
The frame bolts into the yoke, two bars hold two 8 mm rods with teardrop holes, and the screw hangs from a coupler at the top with its far end loose in the bottom bar, steadied only by the nut: this is small enough that the rods keep it straight. The carriage rides the rods on two LM8UUs and carries a flanged T8 nut. Printed standing, its pockets and trap open from the top. The frame's holes come from `v.fixings`: M3 clearance holes for the yoke's two screws, and for the motor's ears a clearance hole for the thread its mount takes, M4, 4.6 mm, as teardrops on their sides. The carriage reads the T8 nut's figures from the kit's `t8-nut` set.
|
|
3753
3748
|
|
|
@@ -4314,13 +4309,13 @@ npx cad list arm/arm-upright
|
|
|
4314
4309
|
|
|
4315
4310
|
What it says:
|
|
4316
4311
|
|
|
4317
|
-
- `motor.torque` passes at 2.
|
|
4312
|
+
- `motor.torque` passes at 2.58 and 8.18 times over at the worst of each joint's range, on 12 V, counting the arm's parts as drawn and the 100 g payload; the shoulder needs 0.8 A here, not chapter 12's 0.5, and both figures rest on the catalogue's community motor figures, an estimate until measured.
|
|
4318
4313
|
- `motor.holds` passes both joints with the power off, on the gears' 47% (an estimate): the table above says how much that figure can rise before it stops being true, and the detent torque carries it by a wide margin.
|
|
4319
4314
|
- `joint.moment` gives the shoulder's 6800 28 times over (38 with the lighter NEMA 14), the elbow's clips 35. They aren't the limits; the arm's sag is.
|
|
4320
4315
|
- `link.deflection` gives 2.1 mm at full stretch from coarse FE on the whole link, an `estimate` (see above), 1.8 mm with the NEMA 14: the elbow motor's 90 g more bends the upper arm. It's the largest error in the stack, and `task.accuracy` warns at 2.36 mm worst case against the 2.5 mm budget (2.08 before).
|
|
4321
4316
|
- `task.reach` passes with 48.9 mm in hand.
|
|
4322
4317
|
- `tool.grip` warns at 100 g (1.2 times over) on `arm-upright` and passes on `gripper-check` at 50 g (2.3 times over). `tool.strain` passes at 10% of PETG's strength at full close, in the leaf the check reads as a plain cantilever (`leafModel`).
|
|
4323
|
-
- The Z axis gives 512 steps a mm, 15.5 N of force at
|
|
4318
|
+
- The Z axis gives 512 steps a mm, 15.5 N of force at 4.85 times over the 3.2 N it lifts (the 250 g load and the carriage's own 76 g), and holds with the power off because of the motor's gearbox. The belt gives 102.4 steps a mm and 5.1 N against the same 3.2 N, 1.6 times over: under the 2 times the check asks for, so `motor.torque` warns, and the screw is the axis to build. Its 0.07 mm of stretch is in the budget.
|
|
4324
4319
|
- `fasten` chooses every screw and passes each: the housing's three M3x8 caps into the base, the spindle's four M3x8 countersunk, the bridge's and the clips' six M3x10, the forearm's four M3x12, the upper arm's M3x16 into the hexagon, the home switches' four M2x10, and two M3x30 with their nuts through the yoke and the gripper. Each head has room for its hex key. The one warning, the twist on the hexagon's screw, is above.
|
|
4325
4320
|
- `cad list` prints the same 444.2 g printed as `check`'s mass table, with the gripper's 37 g in it, and buys those screws with the motors' own (4 M3x6 and 4 M3x12 from their mounts): 30.3 g of fixings. To buy: the 6800, the two switches, the screws and the wire; in hand: the two 17HS4401s, the drivers, the shield, the bench supply and the one SG90. The whole machine weighs about 1.05 kg before the wires and the wall (the supply, the drivers and the shield have no mass in their sets).
|
|
4326
4321
|
|
|
@@ -6382,12 +6377,13 @@ What the check says, screw by screw:
|
|
|
6382
6377
|
- `fasten.engagement`: 6.6 mm of thread in PLA where `m3.pilot_depth` asks 5 mm; 4.6 mm in the insert, where
|
|
6383
6378
|
`fixings.insert_engagement` asks a diameter or the whole insert; the nut's whole 2.4 mm.
|
|
6384
6379
|
- `fasten.seat`: the cap heads sit flat, 3 mm down their counterbores, and PLA under them takes 553 N, a tightening
|
|
6385
|
-
of 0.33 N m; the countersunk heads sit in an 89.8° countersink, flush with the back.
|
|
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.
|
|
6386
6381
|
- `fasten.access`: a 2.5 mm hex key reaches each cap head along its axis, and a 2 mm key each countersunk head, with
|
|
6387
6382
|
nothing within the key's corners for its long arm's 58.5 mm or 52 mm (`hexkey`, ISO 2936).
|
|
6388
|
-
- `fasten.load`: with the shelf's 2 kg, the front screws
|
|
6389
|
-
|
|
6390
|
-
|
|
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
|
|
6386
|
+
times over. The torque on the back screws is given (0.3 N m), because the check holds the
|
|
6391
6387
|
pressure under a flat seat and not yet on a countersink's cone.
|
|
6392
6388
|
|
|
6393
6389
|
Each relation is reckoned as if it held the bracket alone, so the two figures are each the worst case. They rest on
|
|
@@ -6407,7 +6403,7 @@ The design rule is the smallest part that carries its load about twice over. By
|
|
|
6407
6403
|
|---|---|---|---|---|
|
|
6408
6404
|
| Bracket's web | At the foot, 23.6 mm in from the shelf's weight, a section 44 mm deep and 3 mm thick | 463 N mm | 0.48 MPa | 81 times |
|
|
6409
6405
|
| Plate | At the lowest post, 19 mm above its bottom edge, which bears on the wall; the top wall screw pulls 780 / 64 = 12.2 N | 232 N mm | 7.7 MPa | 5 times |
|
|
6410
|
-
| Front screws | `fasten.load` | 16.3 N of pull | |
|
|
6406
|
+
| Front screws | `fasten.load` | 16.3 N of pull and a 266.7 N preload | | 4.3 times |
|
|
6411
6407
|
| Back screws | `fasten.load` | 65.2 N of pull | | 32.6 times |
|
|
6412
6408
|
|
|
6413
6409
|
The web's section modulus is 3 × 44² / 6 = 968 mm³ and the plate's 20 × 3² / 6 = 30 mm³; each stress is the moment
|
|
@@ -6610,6 +6606,10 @@ An address names a place on a beam: `p1.back@30` is the face of `p1` that looks
|
|
|
6610
6606
|
check chooses the shortest sold that fits.
|
|
6611
6607
|
- **Loads.** The carriage carries 0.5 kg, and the axis pushes 20 N along the rods (a cable chain's drag, or a tool
|
|
6612
6608
|
pressed along the way: a figure to replace with the task's own).
|
|
6609
|
+
- **Held on the bench.** The box weighs about 2.5 kg, and the axis's 20 N push, 170 mm up, would tip it over two of
|
|
6610
|
+
its feet standing free (`frame.tip` fails it, lifting the other two). A machine that pushes like this is screwed or
|
|
6611
|
+
clamped to its bench, so `"frame": { "supports" }` says its four feet are held there, pinned, as the feet alone
|
|
6612
|
+
would hold them: every other figure is the same, and `frame.tip` says it is not checked for tipping.
|
|
6613
6613
|
|
|
6614
6614
|
```json projects/frame/assemblies/box.json
|
|
6615
6615
|
{
|
|
@@ -6672,7 +6672,8 @@ An address names a place on a beam: `p1.back@30` is the face of `p1` that looks
|
|
|
6672
6672
|
"loads": [
|
|
6673
6673
|
{ "mass": 0.5, "at": "g1-carriage-1.top", "note": "What the carriage carries" },
|
|
6674
6674
|
{ "joint": "g1-1", "force": 20, "note": "A push along the rods: a cable chain's drag, or a tool pressed along the way" }
|
|
6675
|
-
]
|
|
6675
|
+
],
|
|
6676
|
+
"frame": { "supports": { "p1.a": "pinned", "p2.a": "pinned", "p3.a": "pinned", "p4.a": "pinned" } }
|
|
6676
6677
|
}
|
|
6677
6678
|
```
|
|
6678
6679
|
|
|
@@ -6687,8 +6688,9 @@ What the check says, piece by piece:
|
|
|
6687
6688
|
`join.end`: all 24 beam ends are joined or capped.
|
|
6688
6689
|
- A blind join's screw, followed as any `fasten` is: an M5x12 button, 10 mm into the rail's own tapped thread (two
|
|
6689
6690
|
diameters in aluminium, `engagement.aluminium`), its head bearing on the post's lips from inside: 17.9 mm² of
|
|
6690
|
-
aluminium either side of the opening takes 3677 N, so it is tightened to
|
|
6691
|
-
|
|
6691
|
+
aluminium either side of the opening takes 3677 N (3.68 N m), so it is tightened to half that, 1.83 N m at most: the
|
|
6692
|
+
clamp a torque gives scatters by a quarter to a third.
|
|
6693
|
+
- A bracket: 4.8 mm thick and 4.07 g, 3.06 times under PLA's strength at its 100 N by finite elements, two M4x10 cap
|
|
6692
6694
|
screws, each into a drop-in nut with 4 mm of thread.
|
|
6693
6695
|
- The feet: an M5x16 cap through each foot's 5 mm floor and 11 mm into the post's tapped end.
|
|
6694
6696
|
- The board plate: each screw over the centre line of `x1`'s top slot (`fasten.slot`), at 105 and 155 mm from its end
|
|
@@ -6705,7 +6707,7 @@ What the check says, piece by piece:
|
|
|
6705
6707
|
estimate), stacked worst case; 0.65 mm root-sum-square. Once it is squared, the difference measured goes back with
|
|
6706
6708
|
`cad measured frame/box frame.square.p1-p2-x1-x3=<mm>`.
|
|
6707
6709
|
- `join.stiffness`: what each join puts at the rail's end when the frame is solved. A blind join is 1.5 N·m/mrad in
|
|
6708
|
-
bending and 0.3 in twist, an estimate; a bracket's bending, 0.
|
|
6710
|
+
bending and 0.3 in twist, an estimate; a bracket's bending, 0.099 N·m/mrad, is its own by finite elements, and the
|
|
6709
6711
|
slot nuts and lips are in neither. Both stay estimates until the joint rig (issue 264) measures one.
|
|
6710
6712
|
|
|
6711
6713
|
The sweep moves the carriage from one end of its travel to the other, 0 to 99.5 mm in 12 steps: nothing collides.
|
|
@@ -6716,18 +6718,18 @@ Each printed part is sized from a named load to about twice the margin, where it
|
|
|
6716
6718
|
|
|
6717
6719
|
| Part | Grams | Load it is sized for | Margin |
|
|
6718
6720
|
|---|---|---|---|
|
|
6719
|
-
| Corner bracket (× 4) | 4.1 | 100 N across the rail at its screw |
|
|
6721
|
+
| Corner bracket (× 4) | 4.1 | 100 N across the rail at its screw | 3.06, by finite elements |
|
|
6720
6722
|
| Carriage | 23.6 | 50 N on its middle, between its bearings | 6.04 |
|
|
6721
6723
|
| Motor plate | 10.5 | 50 N along the beam at the shaft's height | 4.95 |
|
|
6722
6724
|
| Rod holder (× 2) | 17.6 | 50 N along the beam at the rods' height | 24.3 |
|
|
6723
|
-
| Foot (× 4) | 7.0 | 250 N down the post |
|
|
6725
|
+
| Foot (× 4) | 7.0 | 250 N down the post, on the beam's 182.5 mm² section | 28.5 |
|
|
6724
6726
|
| End cap (× 4) | 1.3 | none: pushed on | |
|
|
6725
6727
|
| Board plate | 5.1 | its screws' seat: 1124 N under each head | |
|
|
6726
6728
|
|
|
6727
6729
|
The bracket is the part its load sizes: thinner, it would bend past its margin. The others are sized by what they hold
|
|
6728
6730
|
rather than what they carry: the carriage by its two bearings' pockets and the nut's bore, the holder by the 608
|
|
6729
6731
|
bearing pressed into it, the plate by the motor's boss and its four screws, the foot by the counterbore its screw's
|
|
6730
|
-
head sinks into. Each is as small as those allow. The margins under
|
|
6732
|
+
head sinks into. Each is as small as those allow. The margins under 3.06 come from beam formulas or coarse finite
|
|
6731
6733
|
elements on PLA's 39 MPa (`pla.strength`, a community figure), so each is an estimate, and the finding says so.
|
|
6732
6734
|
|
|
6733
6735
|
### Cut, drilled and tapped
|
|
@@ -6798,8 +6800,7 @@ slide-in nut or a head has no such way as its beam goes on, the build loads it a
|
|
|
6798
6800
|
... through its end b, before cap1 goes on`, or `Slide an M5x12 button screw into x3's back slot head first ...`),
|
|
6799
6801
|
and where no step has one, it is refused with the slot and what is in the way.
|
|
6800
6802
|
|
|
6801
|
-
It ends with each kind of join's tightening: the twelve blind joins to
|
|
6802
|
-
joins to 0.68 N m (what the PLA under each head takes).
|
|
6803
|
+
It ends with each kind of join's tightening: the twelve blind joins to 1.83 N m (half what the lips take).
|
|
6803
6804
|
|
|
6804
6805
|
### Two mistakes, caught
|
|
6805
6806
|
|
|
@@ -6936,6 +6937,11 @@ the cross beam's far end lies on top, as the near one does.
|
|
|
6936
6937
|
printed `end-cap` on each post's top.
|
|
6937
6938
|
- **The sag.** `"frame": { "points": ["m1.top@50%"] }` asks for the sag under the board. Nothing is hung there by
|
|
6938
6939
|
hand: the board and its mount are items on `m1`, so their mass is where they are.
|
|
6940
|
+
- **Held down.** The case weighs about 1.3 kg on feet 160 and 150 mm apart, so standing free a push of about 9 N at
|
|
6941
|
+
its top would tip it over two of its feet (printed, at 0.8 kg, about 5 N: `frame.tip`, against the 20 N
|
|
6942
|
+
`frame.rack` pushes with). It is screwed
|
|
6943
|
+
to the shelf it stands on, so `"supports"` says its four feet are held there, pinned, as the feet alone would hold
|
|
6944
|
+
them: every other figure is the same, and `frame.tip` says it is not checked for tipping.
|
|
6939
6945
|
- **Printed instead.** `"printed": "petg"` asks, for each beam, whether it could be printed in PETG.
|
|
6940
6946
|
|
|
6941
6947
|
```json projects/case/assemblies/aluminium.json
|
|
@@ -7000,7 +7006,7 @@ the cross beam's far end lies on top, as the near one does.
|
|
|
7000
7006
|
{ "screw": "M5 cap", "through": ["foot4"], "into": "p4", "at": ["foot4.b1"], "note": "Foot 4" },
|
|
7001
7007
|
{ "screw": "M5 button", "through": ["fan"], "into": "x4.back", "at": ["fan.b1", "fan.b2"], "nut": "roll-in", "note": "The fan mount" }
|
|
7002
7008
|
],
|
|
7003
|
-
"frame": { "points": ["m1.top@50%"], "printed": "petg" }
|
|
7009
|
+
"frame": { "points": ["m1.top@50%"], "printed": "petg", "supports": { "p1.a": "pinned", "p2.a": "pinned", "p3.a": "pinned", "p4.a": "pinned" } }
|
|
7004
7010
|
}
|
|
7005
7011
|
```
|
|
7006
7012
|
|
|
@@ -7104,7 +7110,7 @@ X1C's 256 mm. The cross beam needs its top slot alone, for the gussets and the b
|
|
|
7104
7110
|
{ "screw": "M3 cap", "through": ["foot4"], "into": "p4", "at": ["foot4.b1"], "note": "Foot 4" },
|
|
7105
7111
|
{ "screw": "M5 button", "through": ["fan"], "into": "x4.back", "at": ["fan.b1", "fan.b2"], "nut": "roll-in", "note": "The fan mount" }
|
|
7106
7112
|
],
|
|
7107
|
-
"frame": { "points": ["m1.top@50%"] }
|
|
7113
|
+
"frame": { "points": ["m1.top@50%"], "supports": { "p1.a": "pinned", "p2.a": "pinned", "p3.a": "pinned", "p4.a": "pinned" } }
|
|
7108
7114
|
}
|
|
7109
7115
|
```
|
|
7110
7116
|
|
|
@@ -7159,7 +7165,7 @@ Each printed part is sized from a named load to about twice the margin, where it
|
|
|
7159
7165
|
| Board mount | 27.1 | 50 N on the board at its farthest hole | 4.62 |
|
|
7160
7166
|
| Fan mount | 17.5 | 50 N on the fan at its farthest hole | 5.65 |
|
|
7161
7167
|
| Panel clip (× 32) | 1.6 | 30 N pushing the panel out | 2.12 |
|
|
7162
|
-
| Foot (× 4) | 4.6 | 250 N down the post |
|
|
7168
|
+
| Foot (× 4) | 4.6 | 250 N down the post, on the beam's 182.5 mm² section | 24.8 |
|
|
7163
7169
|
| End cap (× 4) | 1.3 | none: pushed on | |
|
|
7164
7170
|
|
|
7165
7171
|
The beams are sized by their slots, not their bending: the frame's highest stress is 0.04 MPa, in `x1`, 633 times
|