Enclosures and housings
Hinged Square Tube Connector (2 Identical Halves)
- Bounding box
- 115.0 × 19.0 × 19.0 mm
- Engine
- Precision B-rep
- Parameters
- 15
- Published
- November 17, 2026
Download
Free to download and use. See the terms.
The prompt
Write a complete, manifold OpenSCAD script for a two-piece hinged square tube connector designed to fit inside 19mm x 19mm square tubing with a 1.2mm wall thickness (16.6mm x 16.6mm internal opening). Include the following specifications: - Two identical connector halves that join together at a central barrel hinge. - Each half features a 25mm long square insert peg sized at 16.3mm x 16.3mm (accounting for a 0.3mm press-fit tolerance) with chamfered tips and small friction ribs for easy insertion. - Each half has a 19mm x 19mm x 3mm collar stop that sits flush against the end of the metal tubing. - Extending from each collar is an interleaved hinge knuckle (clevis and tang style) with a 4.2mm central through-hole to accommodate an M4 bolt and nut, allowing smooth rotation from 0 to 180 degrees. - Use parametric variables at the top of the file for tube dimensions, tolerance, peg length, and hinge bolt diameter. - Render both halves laid out side-by-side on the build plate (Z=0) ready for 3D printing without supports. CRITICAL OUTPUT INSTRUCTION: Reply with ONE fenced ```openscad code block containing the entire, valid OpenSCAD script and nothing else. Do not include any conversational text, explanations, or markdown outside the code block. Use code with caution.
Parameters
| Name | Value | Range |
|---|---|---|
| Tube Outside Size | 19 mm | 10 – 50 |
| Tube Wall Thickness | 1.2 mm | 0.4 – 5 |
| Press-Fit Clearance | 0.3 mm | 0 – 1.5 |
| Collar Stop Thickness | 3 mm | 1 – 10 |
| Insert Peg Length | 25 mm | 5 – 60 |
| Peg Tip Chamfer | 1.5 mm | 0.2 – 4 |
| Friction Rib Count | 3 pcs | 1 – 8 |
| Friction Rib Height | 0.25 mm | 0.05 – 0.8 |
| Friction Rib Width | 1 mm | 0.4 – 3 |
| Knuckle Width (each half) | 8 mm | 4 – 9 |
| Knuckle End Radius | 4.5 mm | 2.8 – 6 |
| Hinge Axis to Collar Face | 5 mm | 3 – 12 |
| Hinge Bolt Hole Dia (M4) | 4.2 mm | 2 – 8 |
| Interleave Clearance | 0.2 mm | 0 – 1 |
| Layout Gap Between Parts | 40 mm | 5 – 150 |
Every value above is a live dimension. Open a model like this in the editor and each one becomes a slider you can drag before exporting.
More models
Browse the full gallery →Cylindrical Stainless Steel Basket with Folding Handles
Design a cylindrical 304 stainless steel basket with an outer diameter of 200 mm and height of 250 mm. The basket has solid side walls with no perforations. The bottom plate contai
Lego 1x4 Technic Brick
Create a precise 3D CAD model of a single 1x4 Lego Technic-compatible brick designed for STEM robotics. The main rectangular body must have exact dimensions: 31.8 mm in length, 7.8
Immersion Cooling Enclosure
Design a sealed high-pressure dielectric immersion cooling enclosure for cylindrical battery cells. Internal cavity dimensions: 540mm length, 360mm width, 160mm height with 6mm wal
Simple BWB with Propulsion Tube
Prompt: "A simple, solid Blended Wing Body (BWB) flying wing. Dimensions: wingspan 6.5 meters, center chord 1.53 meters, root thickness 35 centimeters, tapering to 15 centimeters a
Engranaje recto 50 dientes, módulo 2
Engranaje recto de 50 dientes, diámetro exterior 104 mm, diámetro de raíz 95 mm, espesor 10 mm y ángulo de presión 20°. Crear como sólido 3D con un agujero central de 8.2 mm de diá
G+1 Party Hall Structural Shell
G+1 Party Hall – AutoCAD Design Prompt Design a G+1 RCC-framed Party Hall in AutoCAD with detailed Ground Floor Plan, First Floor Plan, and all-side elevations (front, rear, left
