Skip to content

feat: add extruder drive mode with grip-force and gear presets - #152

Open
robertsamples wants to merge 5 commits into
TheDevMinerTV:mainfrom
robertsamples:extrusionforce
Open

feat: add extruder drive mode with grip-force and gear presets#152
robertsamples wants to merge 5 commits into
TheDevMinerTV:mainfrom
robertsamples:extrusionforce

Conversation

@robertsamples

Copy link
Copy Markdown
Contributor

Adds a second drive mode for simulating extruder motors alongside the existing gantry/toolhead mode, selectable via a radio toggle. Example below shows new features with orbiter 2 drivetrain selected for three motors

image

Extruder settings

  • Hobbed gear diameter: presets for common extruders (BMG, X1/CC, Orbiter, K1, G2, LGX, TBG) plus a custom option. The diameter used in calculations is 0.6mm smaller than the nominal value entered, to account for standard hobbing depth.
  • Gear reduction: presets for common drivetrains (Ungeared, Titan, BMG, X1/P1, CC, K1, LGX, Orbiter, G2, LGX Lite, TBG) plus custom, in the same A:B format as the gantry's gear ratio field. Picking a hobbed gear preset auto-selects its typical drivetrain ratio (unless the ratio is already set to Custom); the reverse never happens.
  • Required Grip Force: a kgf reference line, replacing the gantry's torque-based threshold, since grip force on the filament is the more meaningful failure mode for extrusion.
  • The graph's X axis switches to volumetric flow rate (mm³/s, based on 1.75mm filament) or linear filament speed (mm/s), and the Y axis switches to kgf.

Speed derating

Non-derated numbers are more relevant for extruder retraction, but as is numbers greatly overestimate actual extruder performance, likely due the nature of extrusion being a sustained direct load instead of an inertial one. So an optional speed derating factor (on by default) treats the requested speed as closer to the motor's real ceiling than the naive electrical model assumes.

A secondary correction scales the derating by gear-filament interface length (scaling can be modelled from sqrt(diameter / 10mm) ), since a larger drive gear gives more leverage per motor revolution and needs less correction. The reference point and 90% derating factor were tuned to roughly track the real-world extruder behavior documented in Orbiter's extruder benchmark (https://www.orbiterprojects.com/a-benchmark-of-extruders/), rather than the idealized voltage-limited cliff alone.

Adds a second drive mode for simulating extruder motors alongside the existing gantry/toolhead mode, selectable via a radio toggle.
…u, add attribution

Added new view option for extruder mode that shows print speed on x axis with two boxes that allow extrusion width and layer height to be set, also added the speed at current x axis position in graph hover menu, as well as added my github in attributions for extruder mode
Setting for boombox uses 8mm nominal hob with ungeared extruder doubles nominal torque output. I didn't do anything special with speed derating function to account for increased filament contect from double drive gears, unclear if this is perfect but with LDO 42STH40-2004MAH gets just over 1000 mm/s max print speed on a 0.4 nozzle 0.2 mm layer height which feels like the right value.
@devminer-coolify

devminer-coolify Bot commented Jun 21, 2026

Copy link
Copy Markdown

The preview deployment for app is ready. 🟢

Open Preview | Open Build Logs | Open Application Logs

Last updated at: 2026-06-21 22:13:39 CET

forgot to set a default value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant