[{"data":1,"prerenderedAt":553},["ShallowReactive",2],{"en-project-detail-klipper-kinematics-studio-cad-2026-12-03":3,"en-project-related-posts-klipper-kinematics-studio-cad-2026-12-03":545,"en-project-ko-counterpart-klipper-kinematics-studio-cad-2026-12-03":552},{"id":4,"title":5,"alternateNames":6,"body":7,"coverImage":495,"coverImageAlt":496,"date":497,"description":498,"englishRole":499,"englishSummary":500,"extension":501,"featured":502,"gallery":6,"liveLabel":6,"liveUrl":6,"meta":503,"navigation":161,"order":158,"path":504,"period":505,"projectStatus":506,"repoUrl":6,"role":507,"sanitized":502,"seo":508,"seoDescription":6,"seoTitle":6,"specs":509,"status":528,"stem":529,"subtitle":530,"tags":531,"techStack":537,"track":543,"__hash__":544},"enProjects/en/projects/klipper-kinematics-studio-cad.md","Ender-5 Plus Klipper Kinematics Retrofit & Code-First Parametric Studio CAD",null,{"type":8,"value":9,"toc":481},"minimark",[10,14,23,26,42,45,50,53,63,79,81,85,88,93,96,102,106,117,187,195,199,202,211,213,219,228,382,386,419,421,425,428,448,450,454,477],[11,12,5],"h1",{"id":13},"ender-5-plus-klipper-kinematics-retrofit-code-first-parametric-studio-cad",[15,16,17,18,22],"p",{},"This project establishes a ",[19,20,21],"strong",{},"large-format 3D printer kinematics retrofit and code-first parametric CAD pipeline"," built to rapidly manufacture custom optical hardware, lighting modifiers, filter mounts, and analog darkroom agitation fixtures for photography studio operations.",[15,24,25],{},"While a commercial large-format FDM printer (Ender-5 Plus, 350×350×400mm) offers enough build volume to print oversized lighting reflectors and large-format view camera lens boards in a single piece, its stock V-slot POM rollers and long Bowden extrusion path suffered from mechanical play, severe ghosting, and surface ringing at elevated speeds. At the same time, designing threaded optical mounts and bearing press-fit interfaces in mouse-driven GUI CAD tools made it brittle to track material-specific thermal shrinkage and tolerance revisions under version control.",[15,27,28,29,32,33,41],{},"To overcome both bottlenecks, the machine was converted to ",[19,30,31],{},"Klipper firmware, full X/Y linear rails, and ADXL345 accelerometer-calibrated Input Shaping",", paired with a ",[19,34,35,36,40],{},"Python ",[37,38,39],"code",{},"build123d"," parametric CAD workflow"," managed in Git—delivering repeatable ±0.05mm mechanical accuracy directly in the studio.",[43,44],"hr",{},[46,47,49],"h2",{"id":48},"_1-hardware-motion-kinematics-retrofit","1. Hardware Motion Kinematics Retrofit",[15,51,52],{},"The entire motion assembly of the cube-frame gantry was re-engineered with high-rigidity components to hold dimensional geometry under rapid acceleration.",[54,55,60],"pre",{"className":56,"code":58,"language":59},[57],"language-text","+─────────────────────────────────────────────────────────────────────────────+\n|                   Ender-5 Plus Kinematics Retrofit Architecture             |\n+─────────────────────────────────────────────────────────────────────────────+\n  [Cube Box-Frame Chassis] ──> Preserves full 350 × 350 × 400 mm build volume\n           │\n           ├─ [X/Y Linear Rail Conversion]: Stock V-slot POM rollers removed ──> MGN12H rails\n           │   - Maintains 0mm axial backlash and eliminates uneven roller wear at high accel\n           │\n           ├─ [Direct-Drive Toolhead]: 800mm Bowden tube removed ──> Ultra-light integrated drive\n           │   - Retraction distance reduced: 6.5mm ──> 0.6mm (prevents PETG stringing)\n           │\n           ├─ [Dual Z-Axis Leadscrew Sync]: Independent stepper alignment\n           │   - Automated sub-millimeter bed leveling via Klipper z_tilt_adjust\n           │\n           └─ [Rigidly Mounted Accelerometer]: Toolhead-centered ADXL345 over SPI\n               - Real-time structural resonance profiling under live print accelerations\n","text",[37,61,58],{"__ignoreMap":62},"",[64,65,66,73],"ul",{},[67,68,69,72],"li",{},[19,70,71],{},"Precision MGN12H Linear Rails",": Stock POM wheels gradually wore flat spots during long print runs, introducing subtle backlash on the X and Y axes. Upgrading to 450mm high-carbon steel linear rails eliminated bearing slop and sustained mechanical rigidity across multi-dozen-hour continuous prints.",[67,74,75,78],{},[19,76,77],{},"Direct-Drive Extruder Conversion",": Moving the drive gear directly onto the toolhead eliminated melt-zone hysteresis caused by an 800mm Bowden tube. This sharply reduced corner bulging and stringing when printing high-temperature engineering filaments such as PETG and ASA.",[43,80],{},[46,82,84],{"id":83},"_2-adxl345-resonance-profiling-klipper-input-shaper","2. ADXL345 Resonance Profiling & Klipper Input Shaper",[15,86,87],{},"When a large gantry changes direction abruptly, inertia excites structural frame resonances that telegraph onto printed walls as concentric ripples (ringing). To cancel these oscillations mathematically, Klipper's Input Shaping algorithms were tuned from empirical accelerometer telemetry.",[89,90,92],"h3",{"id":91},"_1-resonance-frequency-spectrum-measurement","1) Resonance Frequency Spectrum Measurement",[15,94,95],{},"With an ADXL345 3-axis digital accelerometer mounted to the toolhead, Klipper swept excitation frequencies from 10Hz to 130Hz to capture the Power Spectral Density (PSD) of each axis.",[54,97,100],{"className":98,"code":99,"language":59},[57],"[X-Axis Primary Resonance Peak]: 46.2 Hz (Amplitude: 1.82e4)\n[Y-Axis Primary Resonance Peak]: 38.4 Hz (Amplitude: 2.15e4)\n",[37,101,99],{"__ignoreMap":62},[89,103,105],{"id":104},"_2-shaping-filter-configuration","2) Shaping Filter Configuration",[15,107,108,109,112,113,116],{},"Using the measured resonance peaks, distinct input shaper filters were assigned per axis: ",[37,110,111],{},"MZV"," on the X-axis for an optimal balance between vibration cancellation and corner sharpness, and ",[37,114,115],{},"EI (Extra Input)"," on the heavier Y-axis gantry for wider damping bandwidth.",[54,118,122],{"className":119,"code":120,"language":121,"meta":62,"style":62},"language-ini shiki shiki-themes github-light github-dark","[input_shaper]\nshaper_freq_x: 46.2\nshaper_type_x: mzv\nshaper_freq_y: 38.4\nshaper_type_y: ei\n\n[printer]\nmax_velocity: 250\nmax_accel: 4500\nsquare_corner_velocity: 5.0\n","ini",[37,123,124,132,138,144,150,156,163,169,175,181],{"__ignoreMap":62},[125,126,129],"span",{"class":127,"line":128},"line",1,[125,130,131],{},"[input_shaper]\n",[125,133,135],{"class":127,"line":134},2,[125,136,137],{},"shaper_freq_x: 46.2\n",[125,139,141],{"class":127,"line":140},3,[125,142,143],{},"shaper_type_x: mzv\n",[125,145,147],{"class":127,"line":146},4,[125,148,149],{},"shaper_freq_y: 38.4\n",[125,151,153],{"class":127,"line":152},5,[125,154,155],{},"shaper_type_y: ei\n",[125,157,159],{"class":127,"line":158},6,[125,160,162],{"emptyLinePlaceholder":161},true,"\n",[125,164,166],{"class":127,"line":165},7,[125,167,168],{},"[printer]\n",[125,170,172],{"class":127,"line":171},8,[125,173,174],{},"max_velocity: 250\n",[125,176,178],{"class":127,"line":177},9,[125,179,180],{},"max_accel: 4500\n",[125,182,184],{"class":127,"line":183},10,[125,185,186],{},"square_corner_velocity: 5.0\n",[64,188,189],{},[67,190,191,194],{},[19,192,193],{},"Damping Performance",": Even at 4,500 mm/s² acceleration, vibration energy was attenuated by more than 92%, suppressing surface ringing below the threshold of visual inspection.",[89,196,198],{"id":197},"_3-pressure-advance-calibration","3) Pressure Advance Calibration",[15,200,201],{},"Pressure Advance was calibrated to dynamically compensate for nozzle chamber pressure lag during acceleration and deceleration ramps.",[64,203,204],{},[67,205,206,207,210],{},"On the direct-drive toolhead with PETG, ",[37,208,209],{},"pressure_advance = 0.042"," eliminated corner swelling and produced crisp, razor-sharp 90-degree edges.",[43,212],{},[46,214,216,217],{"id":215},"_3-code-first-parametric-cad-with-python-build123d","3. Code-First Parametric CAD with Python ",[37,218,39],{},[15,220,221,222,227],{},"Studio fixtures demand tight mechanical tolerances—optical filter threads, 1/4-20 UNC tripod mounts, light-tight O-ring grooves, and bearing press-fit clearances. Traditional click-driven GUI CAD histories frequently suffer from topological naming failures when upstream parameters change. Adopting ",[19,223,224,226],{},[37,225,39],{}," to declare B-Rep geometry in pure Python"," eliminated brittle manual rebuilds.",[54,229,233],{"className":230,"code":231,"language":232,"meta":62,"style":62},"language-python shiki shiki-themes github-light github-dark","\"\"\"\nParametric optical filter ring modeling excerpt in build123d\n\"\"\"\nfrom build123d import *\n\n# Studio optical specification parameters (unit: mm)\nFILTER_THREAD_DIA = 77.0    # Standard 77mm lens filter diameter\nPITCH = 0.75                # Optical filter thread pitch\nMATERIAL_SHRINKAGE = 1.007  # ASA thermal shrinkage compensation factor (0.7%)\nBEARING_FIT_GAP = 0.12      # Rotating ring press-fit clearance\n\nwith BuildPart() as studio_mount:\n    # 1. Construct outer main body\n    with BuildSketch() as sk:\n        Circle(radius=(FILTER_THREAD_DIA * MATERIAL_SHRINKAGE + 16.0) / 2)\n        Circle(radius=(FILTER_THREAD_DIA * MATERIAL_SHRINKAGE) / 2, mode=Mode.SUBTRACT)\n    extrude(amount=18.0)\n\n    # 2. Machine 1/4-20 tripod insert mounting holes\n    with Locations(PolarLocations(radius=48.0, count=4)):\n        CounterBoreHole(radius=4.2 / 2, counter_bore_radius=7.0 / 2, counter_bore_depth=3.5)\n\n    # 3. Cut internal light-baffle labyrinth hairline grooves\n    with Locations(Face.top()):\n        # Concentric micro-grooves to suppress stray studio light reflections\n        for r in [39.0, 40.5, 42.0]:\n            Hole(radius=r, depth=0.8)\n","python",[37,234,235,240,245,249,254,258,263,268,273,278,283,288,294,300,306,312,318,324,329,335,341,347,352,358,364,370,376],{"__ignoreMap":62},[125,236,237],{"class":127,"line":128},[125,238,239],{},"\"\"\"\n",[125,241,242],{"class":127,"line":134},[125,243,244],{},"Parametric optical filter ring modeling excerpt in build123d\n",[125,246,247],{"class":127,"line":140},[125,248,239],{},[125,250,251],{"class":127,"line":146},[125,252,253],{},"from build123d import *\n",[125,255,256],{"class":127,"line":152},[125,257,162],{"emptyLinePlaceholder":161},[125,259,260],{"class":127,"line":158},[125,261,262],{},"# Studio optical specification parameters (unit: mm)\n",[125,264,265],{"class":127,"line":165},[125,266,267],{},"FILTER_THREAD_DIA = 77.0    # Standard 77mm lens filter diameter\n",[125,269,270],{"class":127,"line":171},[125,271,272],{},"PITCH = 0.75                # Optical filter thread pitch\n",[125,274,275],{"class":127,"line":177},[125,276,277],{},"MATERIAL_SHRINKAGE = 1.007  # ASA thermal shrinkage compensation factor (0.7%)\n",[125,279,280],{"class":127,"line":183},[125,281,282],{},"BEARING_FIT_GAP = 0.12      # Rotating ring press-fit clearance\n",[125,284,286],{"class":127,"line":285},11,[125,287,162],{"emptyLinePlaceholder":161},[125,289,291],{"class":127,"line":290},12,[125,292,293],{},"with BuildPart() as studio_mount:\n",[125,295,297],{"class":127,"line":296},13,[125,298,299],{},"    # 1. Construct outer main body\n",[125,301,303],{"class":127,"line":302},14,[125,304,305],{},"    with BuildSketch() as sk:\n",[125,307,309],{"class":127,"line":308},15,[125,310,311],{},"        Circle(radius=(FILTER_THREAD_DIA * MATERIAL_SHRINKAGE + 16.0) / 2)\n",[125,313,315],{"class":127,"line":314},16,[125,316,317],{},"        Circle(radius=(FILTER_THREAD_DIA * MATERIAL_SHRINKAGE) / 2, mode=Mode.SUBTRACT)\n",[125,319,321],{"class":127,"line":320},17,[125,322,323],{},"    extrude(amount=18.0)\n",[125,325,327],{"class":127,"line":326},18,[125,328,162],{"emptyLinePlaceholder":161},[125,330,332],{"class":127,"line":331},19,[125,333,334],{},"    # 2. Machine 1/4-20 tripod insert mounting holes\n",[125,336,338],{"class":127,"line":337},20,[125,339,340],{},"    with Locations(PolarLocations(radius=48.0, count=4)):\n",[125,342,344],{"class":127,"line":343},21,[125,345,346],{},"        CounterBoreHole(radius=4.2 / 2, counter_bore_radius=7.0 / 2, counter_bore_depth=3.5)\n",[125,348,350],{"class":127,"line":349},22,[125,351,162],{"emptyLinePlaceholder":161},[125,353,355],{"class":127,"line":354},23,[125,356,357],{},"    # 3. Cut internal light-baffle labyrinth hairline grooves\n",[125,359,361],{"class":127,"line":360},24,[125,362,363],{},"    with Locations(Face.top()):\n",[125,365,367],{"class":127,"line":366},25,[125,368,369],{},"        # Concentric micro-grooves to suppress stray studio light reflections\n",[125,371,373],{"class":127,"line":372},26,[125,374,375],{},"        for r in [39.0, 40.5, 42.0]:\n",[125,377,379],{"class":127,"line":378},27,[125,380,381],{},"            Hole(radius=r, depth=0.8)\n",[89,383,385],{"id":384},"engineering-advantages-of-code-first-cad","Engineering Advantages of Code-First CAD",[387,388,389,395,405],"ol",{},[67,390,391,394],{},[19,392,393],{},"Git-Native Mechanical Versioning",": Every change to outer diameter, thread depth, or assembly clearance is captured cleanly in standard Git commit diffs.",[67,396,397,400,401,404],{},[19,398,399],{},"Global Shrinkage Parameter Propagation",": Switching production filament from PLA to rigid ASA or chemical-resistant PETG requires updating a single constant (",[37,402,403],{},"MATERIAL_SHRINKAGE","), mathematically recalculating every bore, fillet, and thread pitch simultaneously.",[67,406,407,410,411,414,415,418],{},[19,408,409],{},"Headless Artifact Generation",": Automated Python execution exports production-ready ",[37,412,413],{},".step"," and ",[37,416,417],{},".stl"," meshes reproducibly in headless CI/CD environments.",[43,420],{},[46,422,424],{"id":423},"_4-field-deployments-in-studio-darkroom-operations","4. Field Deployments in Studio & Darkroom Operations",[15,426,427],{},"Key custom fixtures fabricated on this retrofitted platform and actively deployed in production:",[64,429,430,436,442],{},[67,431,432,435],{},[19,433,434],{},"Large-Format View Camera Lens Board Adapter",": Eccentric adapter mounting modern high-resolution optics onto Linhof-standard boards, incorporating an ASA labyrinth light-trap seal to prevent light leaks.",[67,437,438,441],{},[19,439,440],{},"77mm / 82mm Rotating Optical Polarizer Mount",": Precision-toleranced with a 0.12mm sliding clearance to provide smooth, dry-damped manual rotation without lubricants.",[67,443,444,447],{},[19,445,446],{},"Darkroom B&W Film Reel Auto-Agitation Jig",": Magnetically coupled agitation fixture printed in high-density PETG for chemical resistance against photographic developer and fixer baths.",[43,449],{},[46,451,453],{"id":452},"_5-engineering-outcomes","5. Engineering Outcomes",[64,455,456,462,471],{},[67,457,458,461],{},[19,459,460],{},"2.5× Print Speed Increase with Superior Surface Finish",": Structural stiffening and Input Shaping raised usable print acceleration from 1,200 mm/s² to 4,500 mm/s² while maintaining ghost-free surface quality.",[67,463,464,467,468,470],{},[19,465,466],{},"±0.05mm Dimensional Consistency",": Applying shrinkage-compensated ",[37,469,39],{}," formulas enabled zero-play mating between 3D-printed housings and machined aluminum optical threads.",[67,472,473,476],{},[19,474,475],{},"Turnaround Compressed from Weeks to Hours",": Custom optical adapters that previously required 1–2 weeks of external CNC outsourcing now move from parametric design to physical field verification in under 4 hours.",[478,479,480],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":62,"searchDepth":134,"depth":134,"links":482},[483,484,489,493,494],{"id":48,"depth":134,"text":49},{"id":83,"depth":134,"text":84,"children":485},[486,487,488],{"id":91,"depth":140,"text":92},{"id":104,"depth":140,"text":105},{"id":197,"depth":140,"text":198},{"id":215,"depth":134,"text":490,"children":491},"3. Code-First Parametric CAD with Python build123d",[492],{"id":384,"depth":140,"text":385},{"id":423,"depth":134,"text":424},{"id":452,"depth":134,"text":453},"/images/content-images/projects/klipper-kinematics-studio-cad/klipper-kinematics-studio-cad-cover.jpg","Architectural diagram of the Klipper motion kinematics retrofit and code-first parametric CAD workflow","2026-08-22","Precision fabrication of custom studio optical hardware via linear-rail retrofitting, ADXL345 resonance-damping Input Shaping on a large-format 3D printer, and Python build123d parametric CAD.","Kinematics Tuning · Klipper Firmware & Parametric CAD","Linear-rail & ADXL345 Input Shaper Klipper kinematics paired with code-driven Python (build123d) parametric studio CAD.","md",false,{},"/en/projects/klipper-kinematics-studio-cad","2025.11 — Present","active-rnd","Kinematics Tuning · Firmware Configuration · Parametric Mechanical CAD",{"title":5,"description":498},[510,513,516,519,522,525],{"label":511,"value":512},"Base Chassis","Cube box-frame platform with 350×350×400mm build volume",{"label":514,"value":515},"Motion Retrofit","X/Y-axis MGN12H linear rail conversion & direct-drive extruder",{"label":517,"value":518},"Vibration Control","ADXL345 accelerometer resonance profiling & Input Shaping (MZV/EI)",{"label":520,"value":521},"Extrusion Calibration","Dynamic Pressure Advance tuning & retraction optimization",{"label":523,"value":524},"CAD Workflow","Code-first parametric modeling in Python build123d with Git versioning",{"label":526,"value":527},"Functional Filaments","Shrinkage-compensated PETG / ASA engineering parts for studio durability","published","en/projects/klipper-kinematics-studio-cad","Large-format 3D printer linear-rail and ADXL345 Input Shaper retrofit paired with Python (build123d) & FreeCAD parametric studio optical mount engineering",[532,533,534,535,39,536],"Hardware","3D-Printing","Klipper","CAD","Kinematics",[534,538,539,540,541,542],"ADXL345 Input Shaper","Linear Rails","Python build123d","FreeCAD","PETG / ASA","hardware-3d","H6va5fSGiN0za_EQgFdeCfSAUjY7XP1-SBoG4jRJSzw",[546],{"path":547,"title":548,"date":549,"status":528,"category":550,"buildLogLabel":551,"noindex":502},"/en/blog/20261119-parametric-python-cad-build123d-klipper-workflow","Designing Hardware with Python Instead of a Mouse: build123d Parametric CAD & Klipper High-Speed 3D Printing","2026-11-19","tech","Python build123d Parametric CAD · Klipper Resonance Compensation Pipeline","/projects/klipper-kinematics-studio-cad",1796290674050]