Ultimaker direct drive firmware with host preprocessing.
Gnuplot Python C++ C Perl Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
firmware
host
scripts
.gitignore Added .gitignore. Mar 6, 2016
LICENSE
README.md

README.md

ddprint 3D printer firmware

Ultimaker direct drive firmware with host side preprocessing.

This is a firmware for Arduino Mega based (cartesian) 3D printers. I use it to print on a Ultimaker2 over USB, the slicers used are Cura, Slic3r and Simplify3D. Todo: link to pimped um2 here...

The original reason for this firmware was to circumvent problems with the (Ultimaker-) Marlin firmware together with the underpowered Mega 2650 printer board. If you want to know more about these problems, just google for marlin firmware stutter or marlin usb stutter.

In the meantime, the firmware evolved and has features like extruder pressure advance, auto tempearture control, flowrate limiter or feeder slip correction.

This allows to print fast, reliable and repeatable with high flowrates.

The software is split into two main parts:

  • The host part where the cpu intensive work (gcode preprocessing, path planning, lookahead, acceleration, advance...) is done. The host part is written in Python.
  • And the firmware part that runs on the ATMega Controller. This part executes the move commands from the host and does the temperature control of the printer.

A positive side effect of this architecture is the rapid development of the python based host part and powerful debugging and testing posibilities.

The preprocessed move commands are sent through the USB connection between host and printer. The SD card is used to buffer the received data in the firmware (like a Swap Device). The SD card is used in 'raw mode' without a filesystem on it - an existing filesystem and its contents will be erased!

Some features:

  • Extrusion advance algorithm (Bernhard Kubicek, http://bernhardkubicek.soup.io/post/168776124/Another-acceleration-extrusion-compensation-for-repraps)
  • Flowrate limiter: speed is limited if the nozzle is not hot enough for the targeted flowrate to prevent underextrusion/filament grinding.
  • A "AutoTemp" algorithm, the hotend temperature is increased for parts of the model where high printing speeds are reached.
  • "Extrusion rate adjust" algorithm, to compensate for the feeder slipping on higher extrusion rates using a quadratic function. Thanks to illuminarti for his work on http://www.extrudable.me/2013/04/18/exploring-extrusion-variability-and-limits.
  • Support for a ADNS9800 based flowrate sensor.
  • Look ahead path planning with linear acceleration ramps.
  • Hardened USB communication using COBS encoding and CCITT checksums in both directions.
  • Hardware and software endstop support.
  • EEPROM storage of parameters.
  • PID auto-tuning. Measuring and plotting (gnuplot) of the hotend temperature stepresponse.
  • Simulator mode for testing/development: Firmware runs as a host-program with serial communication over a ptty device.
  • Preprocessor keeps track of the used extrusion rates and emits warnings if they get to high.

Similar Firmware Projects

Other firmware projects that split the work into two parts, a firmware part running on the printer and a host part running on a more powerful computer (PC, Raspi etc.):

Links

Here are some links where i got ideas and inspiration from: