Skip to content

stepd - External planner and stepper for 3d printing

License

Notifications You must be signed in to change notification settings

matttss/step-daemon

 
 

Repository files navigation

Build Status

Step Daemon

Step Daemon (stepd) is an external planner for 3d printers that utilizes Marlin compatible firmware to allow direct step processing by an external computer and enables the use of complex pre-processing. By offloading the planning we are able to optimize the G-code pipeline so that you can reach maximum speed, with advanced features, on even the most complex shapes, without stutter or slowdowns. All this can be achieved with three simple pieces of hardware you probably already have: a Marlin compatible control board, a Raspberry Pi, and a USB cable.

Step Daemon utilizes mostly 64-bit double precision linear algebra and vector math from top to bottom, with some 32-bit single precision floating point used in hot spots where precision can be leveraged safely.

  • Low RAM: less than 64mb.
  • Low CPU: runs at about 5% total CPU on a Raspberry Pi 3.
  • Multithreaded pipeline.
  • Bicubic bed leveling with per-step accuracy (vs per-line).
  • OctoPrint compatible.
  • Developed alongside the direct stepper chunk support for Marlin.
  • Works with Linux (including RPi and other ARM machines), MacOS, and Windows.

Dependencies

  • Go (1.11+) must be installed from a system package or manually.

Marlin Configuration

  • Update with current compatible branch.
  • Only XYZ cartesian builds currently supported (no core or delta support yet).
  • Baud rate of 250kbps or 500kbps suggested for 16MHz devices.
  • Enable DIRECT_STEPPING and ADVANCED_OK.
  • Disable LIN_ADVANCE if enabled.
  • (Optional) Enable AUTO_BED_LEVELING_BILINEAR for bed leveling
    • Bilinear is the only supported mode currently.
    • Must be at least 3x3 sample points.
    • MM mode supported only (no inch mode yet).
    • Bed leveling results are retained locally as bedlevel.json.

Configuration

  • Copy example config from config.conf.example to config.conf.
  • Modify config settings as needed. Units are in mm.
  • Baud rate should match value configured in Marlin.
  • Page format should match the format configured in Marlin (defaults to SP_4x2_256).

Usage

  • Pipe a gcode file directly to the server:
cat print.gcode | go run ./cmd/stepd -device /dev/ttyUSB0 -baud 500000 -config ./config.hjson | grep -v "ok"
  • Or use the Step Daemon OctoPrint plugin. Plugin can be installed from this URL:
https://raw.githubusercontent.com/colinrgodsey/maven/master/step-daemon/octoprint-plugin/latest.zip

About

stepd - External planner and stepper for 3d printing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 56.9%
  • Scala 24.9%
  • Python 13.2%
  • HTML 3.4%
  • JavaScript 1.4%
  • Less 0.1%
  • CSS 0.1%