Marlin (firmware) explained

Marlin (firmware)
Marlin (firmware)
Developer:Marlin core team + Marlin community
Latest Release Version:2.1.2
Latest Release Date:December 18, 2022
Ver Layout:simple
Programming Language: core
Operating System:Arduino platform
Platform:8-bit AVR and 32-bit ARM based microcontroller units
Genre:3D printing
License:GPLv3

Marlin is open source firmware originally designed for RepRap project FDM (fused deposition modeling) 3D printers using the Arduino platform.[1] [2]

Once the firmware has been compiled from C++ source code; it is installed and runs on a mainboard with onboard components and general-purpose I/O pins to control and communicate with other components. For control the firmware receives input from a USB port or attached media in the form of G-code commands instructing the machine what to do. For example, the command G1 X10 tells the machine to perform a smooth linear move of the X axis to position 10. The main loop manages all of the machine's real-time activities like commanding the stepper motors through stepper drivers, controlling heaters, sensors, and lights, managing the display and user interface, etc.[3]

Marlin supports many different types of 3D printing robot platforms, including basic Cartesian, Core XY, Delta, and SCARA printers, as well as some other less conventional designs like Hangprinter and Beltprinter.

In addition to 3D printers, Marlin is generally adaptable to any machine requiring control and interaction. It has been used to drive SLA and SLS 3D printers, custom CNC mills, laser engravers (or laser beam machining), laser cutters, vinyl cutters, pick-and-place machines, foam cutters, and egg painting robots.[4] [5]

History

Marlin was first created in 2011 for the RepRap and Ultimaker printers by combining elements from the open source Grbl and Sprinter projects. Development continued at a slow pace while gaining in popularity and acceptance as a superior alternative to the other available firmware. By 2015, companies were beginning to introduce commercial 3D printers with Marlin pre-installed and contributing their improvements to the project. Early machines included the Ultimaker 1, the TAZ series by Aleph Objects and the Prusa i3 by Prusa Research.

By 2018 manufacturers had begun to favor boards with more powerful and efficient ARM processors, often at a lower cost than the AVR boards they supplant. After extensive refactoring Marlin 2.0 was officially released in late 2019 with full support for 32-bit ARM-based controller boards through a lightweight extensible hardware access layer.[6] [7] While Marlin 1.x had only supported 8-bit AVR (e.g., ATMega) and ATSAM3X8E (Due) platforms, the HAL added ATSAMD51 (Grand Central), Espressif ESP32, NXP LPC176x, and STMicro STM32. Marlin also acquired HAL code to run natively on Linux, Mac, and Windows, but only within a simulation for debugging purposes.

As of October 2022, Marlin is still under active development and continues to be very popular, claiming to be "the most widely used 3D printing firmware in the world." Some of the most successful companies using Marlin today are Ultimaker, LulzBot, Prusa Research, and Creality.

Marlin firmware is not alone in the field of open source 3D printer firmware. Other popular open source firmware offerings include RepRap Firmware by Duet3D, Buddy Firmware by Prusa Research, and Klipper by the Klipper Foundation. These alternatives take advantage of extra processing power to offer advanced features like input shaping, which has only recently been added to Marlin (only limited version; Marlin does not support hardware accelerometers which is the best way to fully take advantage of input shaping).[8]

Development

Marlin firmware is hosted on GitHub, where it is developed and maintained by a community of contributors. Marlin's lead developer is Scott Lahteine (aka Thinkyhead), an independent shareware and former Amiga game developer who joined the project in 2014.[9] His work is entirely supported by crowdfunding.

Marlin is written in optimized C++ for the Arduino API in a mostly embedded-C++ style, which avoids the use of dynamic memory allocation. The firmware can be built with Arduino IDE, PlatformIO, or Auto Build Marlin extension for Visual Studio Code. The latter method is recommended because it is very easy but it only being an Visual Studio Code extension requires Visual Studio Code to be installed on the building system first.

License

Marlin is distributed under the GPL license which requires that organizations and individuals share their source code if they distribute the firmware in binary form, including firmware that comes pre-installed on the mainboard. Vendors have occasionally failed to comply with the license, leading to some distributors dropping their products.

In 2018 the US distributor Printed Solid ended its relationship with Creality due to GPL violations and quality issues.[10]

As of 2022, some vendors are still spotty in their compliance, deflecting customer requests for the source code for an extended period or in perpetuity after a product release.[11]

Usage and license compliance

Marlin firmware is used by several 3D printer manufacturers, most of which are fully compliant with the license. Compliance is tracked by Tim Hoogland of TH3D Studio, et. al.. The following table may be out of date by the time you read this.

!Company!GPL compliance
Aleph Objects' Lulzbot printers[12] [13] Yes[14]
Anet[15]
Artillery 3DYes[16]
AnyCubicYes[17]
Alphawise[18] Yes
Bibo
BQ
BCN3D[19] Yes
BCN3D[20] Yes
BIQU/BTT[21] Yes
Creality[22] No: CR-X[23] Yes: CR-10S and Ender3[24]
FLSunYes
FolgerTech
GeeetechYes
JGAurora[25] No: A8, A7, Z-603S

Yes: A1, A5S, A3S, A5

LMYSTARNo
MakerbaseYes[26]
MingdaNo
Printrbot[27] Yes
Yes, and they base their custom firmware on Marlin[28]
SunluNo
TevoNo
TronXYNo
Ultimaker[29] Yes
WanhaoYes
ZonestarYes

See also

References

  1. News: Marlin 1.1 Beginner Guide for 3D Printer Firmware 3DAddict. 2017-07-26. 3DAddict. 2018-08-04. en-US.
  2. News: mUVe3D releases improved Marlin firmware for all 3D printers. 3ders.org. 2018-08-04. en-US.
  3. News: 3D Printering: Trinamic TMC2130 Stepper Motor Drivers. 2016-09-30. Hackaday. 2018-08-04. en-US.
  4. News: 3D printing on eggs: 50% infill, one shell?. 3ders.org. 2018-08-04. en-US.
  5. Web site: Custom Built 3D Printer / CNC Mill marlin firmware help. 3D Hubs. en. 2018-08-04.
  6. Web site: R/3Dprinting - Marlin Firmware 2.0.0 final has been tagged for release.
  7. News: New Part Day: ST's 32-Bit 3D Printer Controller. 2016-07-19. Hackaday. 2018-08-04. en-US.
  8. Web site: Marlin Input Shaping. .
  9. News: Marlin 3D printer firmware developer 'thinkyhead' seeking support. 3ders.org. 2018-08-04. en-US.
  10. News: GPL Violations Cost Creality a US Distributor. 2018-08-27. Hackaday. 2018-08-29. en-US.
  11. Web site: Known GPL violations list on webpage. Marlin GitHub, issue 24801. 26 September 2022.
  12. Web site: Marlin. code.alephobjects.com. 2018-08-04. https://web.archive.org/web/20191010170100/https://code.alephobjects.com/project/profile/6/. 2019-10-10. dead.
  13. News: Aleph Objects Debuts Aerostruder v2 Micro Tool Head All3DP. All3DP. 2018-08-22. en-US.
  14. News: 3D Printer Companies. 2018-04-05. 3D Printer - Known License Violators. 2018-08-29. en-US. https://web.archive.org/web/20180829222111/http://www.3dprintergploffenders.com/3d-printer-companies/. 2018-08-29. dead.
  15. Web site: MarlinFirmware/Marlin. GitHub. en. 2018-08-07.
  16. Web site: Artillery Genius Firmware With Marlin 2.0.5.3. Ciprian. 3D Print Beginner. en-US. 2020-05-24.
  17. News: AnyCubic returns to GPL compliance! Chiron Firmware source released.. 2018-08-27. 3D Printer - Known License Violators. 2018-08-29. en-US. https://web.archive.org/web/20180829212504/http://www.3dprintergploffenders.com/2018/08/27/anycubic-returns-to-gpl-compliance-chiron-firmware-source-released/. 2018-08-29. dead.
  18. News: Alfawise U10 : une imprimante 3D grand format à prix très agressif. Génération-NT. 2018-08-07. fr-fr.
  19. Web site: BCN3D/BCN3DSigma-Firmware. GitHub. en. 2018-08-07.
  20. Web site: BCN3D/BCN3DSigma-Firmware. GitHub. en. 2018-08-07.
  21. Web site: BTT/BIQU Firmware. GitHub. en. 2021-11-11.
  22. News: First Completely Open Source 3D Printer from China. 2018-07-09. 3D Printer - Known License Violators. 2018-08-07. en-US. https://web.archive.org/web/20180807175600/http://www.3dprintergploffenders.com/2018/07/09/first-completely-open-source-3d-printer-from-china/. 2018-08-07. dead.
  23. News: A disappointing month for GPL compliance. 2018-08-26. 3D Printer - Known License Violators. 2018-08-29. en-US. https://web.archive.org/web/20180829222113/http://www.3dprintergploffenders.com/2018/08/26/a-disappointing-month-for-gpl-compliance/. 2018-08-29. dead.
  24. News: We are ending our relationship with Creality.. Solid. Printed. Printed Solid. 2018-08-29. en.
  25. News: JGAurora release A3S and A5 GPL compliant source code. 2018-04-16. 3D Printer - Known License Violators. 2018-08-07. en-US. https://web.archive.org/web/20180807175603/http://www.3dprintergploffenders.com/2018/04/16/jgaurora-release-a3s-and-a5-gpl-compliant-source-code/. 2018-08-07. dead.
  26. Web site: Sapphire Plus Review - Affordable CoreXY. Ciprian. 3D Print Beginner. 5 March 2020. en-US. 2020-05-24.
  27. Web site: Printrbot/Marlin. GitHub. en. 2018-08-04.
  28. News: Prusa Shows Us the New i3 MK2 3D Printer and Where the Community is Headed. 2016-06-15. Hackaday. 2018-08-04. en-US.
  29. Web site: Ultimaker/Ultimaker2Marlin. GitHub. en. 2018-08-04.

External links