Skip to content

Commit 9247aac

Browse files
committed
Major parametric and structural design overhaul
Comprehensive geometry fixes, parametric calculations, and parts standardization were implemented for the LifeTrac v25 loader. Fastener rendering modules were added, and detailed engineering calculations for lifting capacity and structural adequacy are now included and output via echo statements. Documentation for custom fabricated parts and structural analysis was created, and the OpenSCAD model now supports parametric scaling and outputs pass/fail status for all major mechanical checks.
1 parent f1426aa commit 9247aac

File tree

4 files changed

+2171
-359
lines changed

4 files changed

+2171
-359
lines changed

LifeTrac-v25/mechanical_design/AI_DESIGN_PROGRESS.md

Lines changed: 185 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,189 @@ This document tracks the AI-assisted hardware design process for the LifeTrac v2
104104
- Create build workshops
105105
- Document lessons learned
106106

107+
---
108+
109+
### Session 2 - Major Design Refinement (2025-12-07)
110+
111+
This session involved comprehensive geometry fixes, parametric calculations, parts standardization, fastener rendering, and structural engineering analysis.
112+
113+
#### ✅ Geometry Fixes
114+
115+
- **Wheel/Frame Overlap Resolution**
116+
- Added `GROUND_CLEARANCE` (150mm) constant
117+
- Created `FRAME_Z_OFFSET` to lift frame above ground
118+
- Positioned wheels so bottom touches Z=0 (ground plane)
119+
- Moved front tires back so front of tire aligns with front of machine body
120+
121+
- **Cylinder Positioning**
122+
- Fixed lift cylinder base mounts to attach on side walls between sandwich plates
123+
- Repositioned bucket cylinders from arm tops to cross beam attachment
124+
- Added `BUCKET_CYL_X_SPACING` to ensure clearance from inner panels
125+
126+
- **Side Wall Orientation**
127+
- Corrected triangular side panels to be vertical (YZ plane) not horizontal
128+
- Fixed tall end at rear (Y=0) tapering to shorter front (Y=WHEEL_BASE)
129+
130+
- **Arm Positioning**
131+
- Created inline hollow square tubing using `difference()` for arms
132+
- Positioned arms between inner and outer sandwich plates
133+
- Arms pivot at high point on rear of side panels
134+
135+
- **Cross Beam Alignment**
136+
- Centered cross beams on X=0 (machine centerline)
137+
- Added parametric arc slot cutouts in inner side wall panels for arm clearance
138+
139+
- **Bucket Positioning**
140+
- Shifted bucket up so bottom clears ground in all positions
141+
- Fixed pivot point at bottom of QA plate with cylinders attaching at top
142+
- Added `BOBCAT_QA_HEIGHT` offset for proper positioning
143+
144+
#### ✅ Parametric Calculations
145+
146+
- **Arm Length Calculation**
147+
- Used trigonometry to calculate arm length from reach requirements
148+
- `ARM_LENGTH = sqrt(ARM_PIVOT_Z² + MIN_HORIZONTAL_REACH²)`
149+
- `ARM_GROUND_ANGLE = asin(ARM_PIVOT_Z / ARM_LENGTH)`
150+
- Echo statements output calculated values for verification
151+
152+
- **Hydraulic Cylinder Sizing**
153+
- `lift_cyl_length(arm_angle)` - calculates cylinder length at any arm position
154+
- `bucket_cyl_length(arm_angle, bucket_tilt)` - calculates bucket cylinder length
155+
- Automatic stroke calculation with 15% safety margin
156+
- Selection of standard stroke sizes (150, 200, 250... 600mm)
157+
158+
- **Cross Beam Cutout Geometry**
159+
- `cross_beam_local_pos(beam_dist, angle)` - transforms beam position to panel coords
160+
- Trigonometric arc slot cutouts based on arm rotation range
161+
- Accounts for `ARM_MIN_ANGLE` to `ARM_MAX_ANGLE` sweep
162+
163+
#### ✅ Parts Standardization
164+
165+
Created `CUSTOM_PARTS_LIST.md` documenting standardized fabricated parts:
166+
167+
- **Type A: U-Channel Lug**
168+
- Made from torch-cut square tubing (3"×3" or 4"×4")
169+
- Top and bottom removed to create U-shape
170+
- Hole drilled through both walls for clevis pin
171+
- Used for all cylinder attachments
172+
173+
- **Type B: Large Pivot Ring**
174+
- CNC plasma cut from 3/4" plate steel
175+
- Used for arm pivot reinforcement
176+
- Welded to arm tube at pivot point
177+
178+
- **Type C: Small Pivot Ring**
179+
- CNC plasma cut from 1" plate steel
180+
- Used for QA plate pivot bosses
181+
182+
- **Round Bar Stock**
183+
- 1.5" diameter for main pivots
184+
- 1" diameter for clevis pins
185+
186+
#### ✅ Fastener Rendering
187+
188+
Added hex bolt heads and nuts throughout the assembly:
189+
190+
- **New Modules Created**
191+
- `hex_nut(bolt_dia)` - renders hex nut with proper sizing
192+
- `hex_bolt_head(bolt_dia)` - renders hex bolt head
193+
- `hex_bolt_assembly(bolt_dia, length, show_nut)` - complete bolt with nut
194+
- `clevis_pin(pin_dia, length)` - clevis pin with cotter pin holes
195+
- `u_channel_lug_with_pin()` - U-channel with clevis pin installed
196+
197+
- **Fasteners Added At**
198+
- Arm pivot pins (1.5" with hex nuts both ends)
199+
- Bucket pivot pin (1.5" with hex nuts both ends)
200+
- All hydraulic cylinder clevis connections
201+
- Cylinder mounting lugs (clevis pins with cotter pins)
202+
- Cross beam cylinder brackets
203+
- QA plate cylinder attachments
204+
- Standing deck mounting bolts (3/4" hex bolts)
205+
206+
#### ✅ Lifting Capacity Calculations
207+
208+
- **Hydraulic Force**
209+
- Operating pressure: 3000 PSI
210+
- Lift cylinder bore: 63.5mm (2.5")
211+
- Calculates force per cylinder and total force
212+
213+
- **Lever Arm Geometry Functions**
214+
- `lift_cyl_moment_arm(arm_angle)` - perpendicular distance from pivot to cylinder force line
215+
- `load_moment_arm(arm_angle)` - horizontal distance from pivot to bucket load
216+
- `lift_capacity_kg(arm_angle)` - lifting capacity at any arm position
217+
218+
- **Capacity Analysis**
219+
- Calculates capacity at ground, horizontal, 45°, and max positions
220+
- Rated capacity = minimum across all positions (conservative)
221+
- Outputs mechanical advantage ratios
222+
223+
#### ✅ Structural Analysis (Mechanics of Deformable Bodies)
224+
225+
- **Material Properties Defined**
226+
- A36 Steel: 250 MPa yield, 200 GPa modulus
227+
- Grade 8 Bolts: 130 ksi yield, 90 ksi shear
228+
- Safety factors: 2.0 static, 3.0 fatigue, 2.5 bolts
229+
230+
- **Arm Bending Stress Analysis**
231+
- Moment of inertia for hollow square tube: `I = (b⁴ - b_inner⁴) / 12`
232+
- Section modulus: `S = I / c`
233+
- Bending stress: `σ = M / S`
234+
- Compares to allowable stress with safety factor
235+
236+
- **Arm Deflection Analysis**
237+
- Cantilever tip deflection: `δ = PL³ / (3EI)`
238+
- Allowable deflection: L/180
239+
240+
- **Pivot Pin Shear Analysis**
241+
- Double shear: `τ = F / (2A)`
242+
- Compares to allowable shear (0.6 × yield)
243+
244+
- **Bearing Stress Analysis**
245+
- Bearing stress on pin holes: `σ = F / (d × t × 2)`
246+
- Allowable bearing: 1.5 × yield
247+
248+
- **Clevis Pin Analysis**
249+
- Grade 8 bolt shear strength
250+
- Double shear at cylinder attachments
251+
252+
- **Cross Beam Stress Analysis**
253+
- Point load bending: `M = FL/4`
254+
- 2"×2"×1/4" tube section properties
255+
256+
- **Weld Stress Analysis**
257+
- Pivot ring welds (fillet around tube perimeter)
258+
- Cross beam welds (shear loading)
259+
- E70XX electrode allowable: 145 MPa / SF
260+
261+
- **Results Summary Output**
262+
- Table with stress ratios for all components
263+
- Pass/fail status for each check
264+
- Overall structural assessment
265+
266+
#### 📄 Documentation Created
267+
268+
- `STRUCTURAL_ANALYSIS.md` - Comprehensive explanation of all engineering calculations with formulas and design modification recommendations
269+
270+
#### 🔧 Technical Improvements
271+
272+
- All calculations output to console via `echo()` statements
273+
- Parametric design allows easy scaling and optimization
274+
- Stress ratios indicate how close to limits (< 1.0 = safe)
275+
- Design modifications suggested if any check fails
276+
277+
#### 📋 Key Constants Added
278+
279+
| Constant | Value | Description |
280+
|----------|-------|-------------|
281+
| `GROUND_CLEARANCE` | 150mm | Frame bottom above ground |
282+
| `FRAME_Z_OFFSET` | 150mm | Vertical offset for frame |
283+
| `ARM_GROUND_ANGLE` | Calculated | Angle to reach ground |
284+
| `HYDRAULIC_PRESSURE_PSI` | 3000 | Operating pressure |
285+
| `STEEL_YIELD_STRENGTH_MPA` | 250 | A36 steel yield |
286+
| `SAFETY_FACTOR_STATIC` | 2.0 | Static load SF |
287+
288+
---
289+
107290
## Design Decisions
108291

109292
### Material Choices
@@ -179,7 +362,7 @@ The design successfully meets all requirements specified in the original issue:
179362
✅ Complete part numbering and descriptions
180363
✅ AI progress tracking document
181364

182-
**Ready for:** Prototype fabrication and testing
365+
**Ready for:** Prototype fabrication and testing, with engineering calculations to verify structural adequacy
183366

184367
---
185-
Last Updated: 2025-12-06
368+
Last Updated: 2025-12-07
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# LifeTrac v25 Custom Parts List
2+
3+
This document identifies parts that are NOT standard CNC-cut plate steel or standard square/round tubing. These parts require custom fabrication using standardized methods.
4+
5+
**Excluded from this list:** Hydraulic components (cylinders, motors, valves), wheels/tires, fasteners (bolts, pins), and purchased components.
6+
7+
---
8+
9+
## STANDARDIZED PART TYPES (Implemented in OpenSCAD)
10+
11+
### TYPE A: U-Channel Lug (from Square Tubing)
12+
**Fabrication:** Torch-cut top and bottom of square tube to create U-shape with pivot hole through sides.
13+
14+
| Location | Source Tube | Length | Hole Dia | Qty |
15+
|----------|-------------|--------|----------|-----|
16+
| Frame lift cyl base mount | 4"x4"x1/4" | 100mm | 27mm (1"+2) | 2 |
17+
| Arm lift cyl attachment | 3"x3"x1/4" | 80mm | 27mm (1"+2) | 2 |
18+
| Cross beam bucket cyl mount | 3"x3"x1/4" | 80mm | 21mm (3/4"+2) | 2 |
19+
| QA plate bucket cyl mount | 3"x3"x1/4" | 80mm | 21mm (3/4"+2) | 2 |
20+
21+
**Total Type A Brackets: 8**
22+
23+
---
24+
25+
### TYPE B: Large Pivot Ring (CNC Plasma Cut)
26+
**Material:** 3/4" plate steel
27+
**Dimensions:** 106mm OD, 40mm ID
28+
29+
| Location | Qty per Arm | Total |
30+
|----------|-------------|-------|
31+
| Arm pivot reinforcement (2 rings per arm, inner and outer) | 2 | 4 |
32+
33+
**Total Type B Rings: 4**
34+
35+
---
36+
37+
### TYPE C: Small Pivot Ring (CNC Plasma Cut)
38+
**Material:** 1" plate steel
39+
**Dimensions:** 70mm OD, 40mm ID
40+
41+
| Location | Qty |
42+
|----------|-----|
43+
| QA plate arm connection flanges | 2 |
44+
45+
**Total Type C Rings: 2**
46+
47+
---
48+
49+
### ROUND BAR STOCK (1.5" / 38mm diameter)
50+
**Material:** 4140 steel or equivalent
51+
52+
| Part | Length | Qty |
53+
|------|--------|-----|
54+
| Arm pivot pin | ~160mm | 2 |
55+
| Bucket pivot pin | ~1000mm | 1 |
56+
| QA hook bar | ~1018mm | 1 |
57+
58+
**Total Round Bar Pieces: 4**
59+
60+
---
61+
62+
### CNC PLATE PARTS
63+
64+
| Part | Material | Dimensions | Qty |
65+
|------|----------|------------|-----|
66+
| QA arm flange plate | 1/2" plate | 80x100mm | 2 |
67+
| Standing deck plate | 1/4" plate | 700x400mm | 1 |
68+
69+
---
70+
71+
### SQUARE TUBE SECTIONS (Cut to Length)
72+
73+
| Part | Source Tube | Length | Qty |
74+
|------|-------------|--------|-----|
75+
| Deck connection bracket | 3"x3"x1/4" | 100mm | 2 |
76+
| Deck vertical support | 2"x2"x1/4" | ~244mm | 2 |
77+
| Deck cross brace | 2"x2"x1/4" | 600mm | 1 |
78+
79+
---
80+
81+
## FABRICATION SUMMARY
82+
83+
### Type A U-Channel Fabrication Steps:
84+
1. Cut square tube to specified length
85+
2. Mark cut lines for U-channel (remove top and bottom faces)
86+
3. Torch cut or plasma cut the marked areas
87+
4. Grind cut edges smooth
88+
5. Drill pivot hole through both remaining walls
89+
6. Deburr hole edges
90+
91+
### Type B/C Ring Fabrication:
92+
1. Nest all rings on plate steel for efficient cutting
93+
2. CNC plasma or laser cut
94+
3. Deburr inner and outer edges
95+
96+
---
97+
98+
## PARTS COUNT SUMMARY
99+
100+
| Part Type | Description | Quantity |
101+
|-----------|-------------|----------|
102+
| Type A (4"x4") | U-Channel Lug, 27mm hole | 2 |
103+
| Type A (3"x3") | U-Channel Lug, 27mm hole | 2 |
104+
| Type A (3"x3") | U-Channel Lug, 21mm hole | 4 |
105+
| Type B Ring | Large Pivot Ring (3/4" plate) | 4 |
106+
| Type C Ring | Small Pivot Ring (1" plate) | 2 |
107+
| Round Bar | 1.5" dia, various lengths | 4 |
108+
| CNC Plate | Flange plates | 2 |
109+
| CNC Plate | Deck plate | 1 |
110+
| Tube Section | 3"x3" bracket | 2 |
111+
| Tube Section | 2"x2" deck frame | 3 |
112+
113+
**Total Custom Fabricated Parts: 26**
114+
**Unique Fabrication Types: 3** (U-Channel, CNC Ring, Cut Tube)

0 commit comments

Comments
 (0)