初始提交:机械臂 CadQuery 建模源码、设计文档与 3D 查看器

This commit is contained in:
cbb
2026-09-26 18:05:21 +08:00
commit 1dfd48278b
172 changed files with 11116 additions and 0 deletions
+170
View File
@@ -0,0 +1,170 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 880" font-family="'Microsoft YaHei', 'PingFang SC', sans-serif">
<defs>
<pattern id="hatch" width="8" height="8" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
<line x1="0" y1="0" x2="0" y2="8" stroke="#cbd5e1" stroke-width="1.2"/>
</pattern>
<pattern id="hatch-plastic" width="10" height="10" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)">
<line x1="0" y1="0" x2="0" y2="10" stroke="#93c5fd" stroke-width="1.5"/>
</pattern>
<marker id="arr2" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M 0 1.5 L 10 5 L 0 8.5 z" fill="#0284c7"/>
</marker>
<marker id="arr2-red" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M 0 1.5 L 10 5 L 0 8.5 z" fill="#e11d48"/>
</marker>
</defs>
<rect width="1440" height="880" fill="#ffffff"/>
<rect x="24" y="24" width="1392" height="832" fill="none" stroke="#1e293b" stroke-width="2"/>
<rect x="30" y="30" width="1380" height="820" fill="none" stroke="#64748b" stroke-width="0.8"/>
<!-- Title Block -->
<g transform="translate(980, 730)">
<rect x="0" y="0" width="430" height="120" fill="#f8fafc" stroke="#1e293b" stroke-width="1.5"/>
<line x1="0" y1="36" x2="430" y2="36" stroke="#1e293b" stroke-width="1"/>
<text x="15" y="24" font-size="12" fill="#64748b">图纸代号:DWG-JNT-01</text>
<text x="260" y="24" font-size="12" fill="#0284c7">比例 2:1 (局部放大)</text>
<text x="15" y="65" font-size="16" font-weight="bold" fill="#0f172a">标准化紧凑回转副 A-A 装配剖面草图</text>
<text x="15" y="98" font-size="12" fill="#475569">涵盖电机固定、行星减速、端面花键、对开抱箍与贴合面尺寸链</text>
</g>
<!-- Left Header -->
<text x="50" y="65" font-size="22" font-weight="bold" fill="#0f172a">【核心关节剖面】标准化小型化集成回转副装配草图</text>
<text x="50" y="90" font-size="13" fill="#475569">基准尺寸链解析:电机尾部基准面 (Z=0) ──&gt; 电机输出面 (Z=54.94) ──&gt; 盖板面 (Z=56.0) ──&gt; 从动盘贴合面 (Z=65.000)</text>
<!-- Main Assembly Cross-Section Drawing -->
<g transform="translate(170, 160)">
<!-- Central Joint Axis Line (蓝色中心线) -->
<line x1="40" y1="260" x2="880" y2="260" stroke="#0284c7" stroke-width="1.5" stroke-dasharray="18,4,4,4"/>
<text x="50" y="250" font-size="12" fill="#0284c7" font-weight="bold">回转副回转轴线 (Joint Rotation Axis)</text>
<!-- 1. Proximal Sleeve / Housing (近端紧凑套筒, 打印件) -->
<!-- Top wall -->
<rect x="80" y="70" width="370" height="24" fill="url(#hatch-plastic)" stroke="#1e293b" stroke-width="1.5"/>
<!-- Bottom wall -->
<rect x="80" y="426" width="370" height="24" fill="url(#hatch-plastic)" stroke="#1e293b" stroke-width="1.5"/>
<!-- PCBA Pocket Backstop -->
<rect x="80" y="94" width="22" height="42" fill="url(#hatch-plastic)" stroke="#1e293b" stroke-width="1.5"/>
<rect x="80" y="384" width="22" height="42" fill="url(#hatch-plastic)" stroke="#1e293b" stroke-width="1.5"/>
<text x="210" y="55" font-size="12" font-weight="bold" fill="#1e293b">近端构件薄壁套筒 (外径 Ø66.0, 壁厚 2.85mm)</text>
<!-- 2. Motor Assembly (电机.STEP 模块) -->
<!-- PCBA Square Tail (63.6 x 9.0) -->
<rect x="102" y="100" width="45" height="320" rx="3" fill="#334155" stroke="#0f172a" stroke-width="1.8"/>
<text x="124" y="265" font-size="12" font-weight="bold" fill="#ffffff" text-anchor="middle" transform="rotate(-90 124 265)">PCBA 驱动板 (63.6方)</text>
<!-- Motor Main Housing Drum (Ø60 x 42) -->
<rect x="147" y="110" width="210" height="300" rx="2" fill="url(#hatch)" stroke="#1e293b" stroke-width="1.8"/>
<rect x="175" y="130" width="154" height="260" fill="#f8fafc" stroke="#64748b" stroke-width="1" stroke-dasharray="4,2"/>
<text x="252" y="255" font-size="14" font-weight="bold" fill="#0f172a" text-anchor="middle">两级 0.5M 行星减速机</text>
<text x="252" y="278" font-size="12" fill="#475569" text-anchor="middle">24T 太阳轮 / 3x36T 行星轮 / 96T 内齿 (i=25:1)</text>
<!-- Motor Top Cover (Ø60.3 x 3.5, Z=52.5..56.0) -->
<rect x="357" y="108" width="25" height="304" rx="2" fill="#94a3b8" stroke="#1e293b" stroke-width="1.5"/>
<text x="369" y="265" font-size="11" fill="#0f172a" text-anchor="middle" transform="rotate(-90 369 265)">顶盖板</text>
<!-- 3. Face-Spline Couplings (端面齿半联轴器 A & B) -->
<!-- Half-Coupling A (Bolted to Motor output flange via 3x M2) -->
<rect x="382" y="137" width="23" height="246" fill="#fde047" stroke="#ca8a04" stroke-width="1.5"/>
<!-- Curvic Teeth Meshing Zone (端面齿啮合带 R19..24.5) -->
<rect x="405" y="137" width="14" height="246" fill="#facc15" stroke="#a16207" stroke-width="1" stroke-dasharray="2,1"/>
<!-- Half-Coupling B (Bolted to Distal Link) -->
<rect x="419" y="137" width="23" height="246" fill="#fde047" stroke="#ca8a04" stroke-width="1.5"/>
<text x="413" y="200" font-size="11" font-weight="bold" fill="#854d0e" text-anchor="middle" transform="rotate(-90 413 200)">12齿端面齿花键副</text>
<!-- 4. Split Clamp Collar (对开抱箍) -->
<rect x="390" y="112" width="46" height="25" rx="3" fill="#fdba74" stroke="#c2410c" stroke-width="1.5"/>
<rect x="390" y="383" width="46" height="25" rx="3" fill="#fdba74" stroke="#c2410c" stroke-width="1.5"/>
<!-- Clamping Lug & M3 Bolt -->
<circle cx="413" cy="98" r="8" fill="#ea580c"/>
<circle cx="413" cy="98" r="3" fill="#ffffff"/>
<circle cx="413" cy="422" r="8" fill="#ea580c"/>
<circle cx="413" cy="422" r="3" fill="#ffffff"/>
<text x="413" y="80" font-size="11" font-weight="bold" fill="#ea580c" text-anchor="middle">抱箍 M3 夹紧螺丝</text>
<!-- 5. Distal Driven Link (远端从动构件贴合盘) -->
<!-- Hub Disc Plate (9.0mm thick, growing Z >= 65.0) -->
<rect x="442" y="80" width="45" height="360" rx="4" fill="url(#hatch-plastic)" stroke="#1e293b" stroke-width="1.8"/>
<!-- Replicated Motor Pilot Face (Ø36 neck, Ø6.5 centre) -->
<rect x="432" y="170" width="10" height="180" fill="#93c5fd" stroke="#1d4ed8" stroke-width="1.2"/>
<text x="515" y="265" font-size="13" font-weight="bold" fill="#1e40af" transform="rotate(90 515 265)">从动盘 (复刻电机输出面)</text>
<!-- Structural Link Arm extending outward -->
<path d="M 487 180 L 640 180 L 640 340 L 487 340 Z" fill="#dcfce7" stroke="#15803d" stroke-width="1.8"/>
<text x="560" y="265" font-size="13" font-weight="bold" fill="#15803d" text-anchor="middle">远端受力臂身结构</text>
<!-- ==================== DIMENSION CHAINS (精确尺寸链标注) ==================== -->
<!-- Dim 1: Motor Length 56.0mm -->
<g transform="translate(0, 480)">
<line x1="102" y1="0" x2="382" y2="0" stroke="#0284c7" stroke-width="1.2" marker-start="url(#arr2)" marker-end="url(#arr2)"/>
<line x1="102" y1="-50" x2="102" y2="10" stroke="#0284c7" stroke-width="0.8"/>
<line x1="382" y1="-70" x2="382" y2="10" stroke="#0284c7" stroke-width="0.8"/>
<text x="242" y="-8" font-size="12" font-weight="bold" fill="#0284c7" text-anchor="middle">电机总长 56.0 mm</text>
</g>
<!-- Dim 2: Coupling Gap 9.0mm -->
<g transform="translate(0, 480)">
<line x1="382" y1="0" x2="442" y2="0" stroke="#e11d48" stroke-width="1.2" marker-start="url(#arr2-red)" marker-end="url(#arr2-red)"/>
<line x1="442" y1="-50" x2="442" y2="10" stroke="#e11d48" stroke-width="0.8"/>
<text x="412" y="20" font-size="12" font-weight="bold" fill="#e11d48" text-anchor="middle">花键跨距 9.0 mm</text>
</g>
<!-- Dim 3: Key Hub Station 65.000mm -->
<g transform="translate(0, 525)">
<line x1="102" y1="0" x2="442" y2="0" stroke="#e11d48" stroke-width="1.5" marker-start="url(#arr2-red)" marker-end="url(#arr2-red)"/>
<line x1="102" y1="-10" x2="102" y2="10" stroke="#e11d48" stroke-width="1"/>
<line x1="442" y1="-10" x2="442" y2="10" stroke="#e11d48" stroke-width="1"/>
<text x="272" y="-8" font-size="13" font-weight="bold" fill="#e11d48" text-anchor="middle">【核心设计基准】电机尾基准 → 从动盘贴合面 = 65.000 mm (定死全臂站位)</text>
</g>
<!-- Diameter Dimension: Motor Ø60.0 & Sleeve Ø66.0 -->
<g transform="translate(40, 0)">
<line x1="0" y1="110" x2="0" y2="410" stroke="#0284c7" stroke-width="1.2" marker-start="url(#arr2)" marker-end="url(#arr2)"/>
<line x1="-5" y1="110" x2="70" y2="110" stroke="#0284c7" stroke-width="0.8"/>
<line x1="-5" y1="410" x2="70" y2="410" stroke="#0284c7" stroke-width="0.8"/>
<text x="-10" y="265" font-size="12" font-weight="bold" fill="#0284c7" text-anchor="end">电机机座 Ø60.0</text>
</g>
<g transform="translate(20, 0)">
<line x1="0" y1="70" x2="0" y2="450" stroke="#1e293b" stroke-width="1.2" marker-start="url(#arr2)" marker-end="url(#arr2)"/>
<line x1="-5" y1="70" x2="60" y2="70" stroke="#1e293b" stroke-width="0.8"/>
<line x1="-5" y1="450" x2="60" y2="450" stroke="#1e293b" stroke-width="0.8"/>
<text x="-10" y="295" font-size="12" font-weight="bold" fill="#1e293b" text-anchor="end">套筒外径 Ø66.0 (小型化壁厚2.85mm)</text>
</g>
</g>
<!-- Explanatory Legend / Table -->
<g transform="translate(850, 160)">
<rect x="0" y="0" width="540" height="540" rx="8" fill="#f8fafc" stroke="#cbd5e1" stroke-width="1.2"/>
<text x="20" y="32" font-size="15" font-weight="bold" fill="#0f172a">📋 回转副装配配合与装配工序说明</text>
<g transform="translate(20, 60)">
<text x="0" y="0" font-size="13" font-weight="bold" fill="#2563eb">【关键配合公差(实测值标定)】</text>
<text x="0" y="25" font-size="12" fill="#334155">1. 机座滑配套孔:Ø60.30 mm(单边留 0.15mm 打印收缩滑配余量)</text>
<text x="0" y="47" font-size="12" fill="#334155">2. PCBA方孔口袋:64.40 × 64.40 mm(容纳 63.6mm 驱动板与电容)</text>
<text x="0" y="69" font-size="12" fill="#334155">3. 端面止口沉孔:从动盘 Ø36.0 × 1.70 mm 深,消除 B 半件轴向干涉</text>
<text x="0" y="91" font-size="12" fill="#334155">4. 输出螺栓:3 × M2 @ Ø29 mm 节圆,时钟角度 8.6° / 127.7° / 247.9°</text>
</g>
<line x1="20" y1="180" x2="520" y2="180" stroke="#e2e8f0" stroke-width="1"/>
<g transform="translate(20, 205)">
<text x="0" y="0" font-size="13" font-weight="bold" fill="#059669">【5步极简模块化装配工序】</text>
<text x="0" y="25" font-size="12" fill="#334155">步骤 1:将 电机.STEP 从输出端平推滑入近端件套筒,直到底面贴死;</text>
<text x="0" y="47" font-size="12" fill="#334155">步骤 2:拧紧套筒侧面 2 颗 M3 顶丝,顶紧电机外壳实现抗扭与轴向锁紧;</text>
<text x="0" y="69" font-size="12" fill="#334155">步骤 3:A 半件扣上电机端面,3 颗 M2 螺钉对角锁紧;</text>
<text x="0" y="91" font-size="12" fill="#334155">步骤 4:B 半件锁入远端从动盘(3颗M2),齿对槽两盘脸贴合压实;</text>
<text x="0" y="113" font-size="12" fill="#334155">步骤 5:对开抱箍径向卡入两半件环槽,2 颗 M3 紧固,完成关节闭环。</text>
</g>
<line x1="20" y1="345" x2="520" y2="345" stroke="#e2e8f0" stroke-width="1"/>
<g transform="translate(20, 370)">
<text x="0" y="0" font-size="13" font-weight="bold" fill="#d97706">【为什么能做得更小型化?】</text>
<text x="0" y="25" font-size="12" fill="#334155">• 不做外挂冗余壳体:直接利用电机外壳作为主承力构件;</text>
<text x="0" y="47" font-size="12" fill="#334155">• 贴皮壁厚控制:外壳套筒仅 2.85mm,既满足强度又消除厚重感;</text>
<text x="0" y="69" font-size="12" fill="#334155">• 抱箍局部开口:仅在抱箍凸耳螺栓处开 112° 弧形口,其余全闭合;</text>
<text x="0" y="91" font-size="12" fill="#334155">• 骨架镂空轻量化:大臂与小臂只保留受力加强筋,整臂净重大幅降低。</text>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB