Skip to content

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. | Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.

License

Notifications You must be signed in to change notification settings

RUTILEA/Marlin

 
 

Repository files navigation

Marlinファームウェア

環境構築

Git をインストール https://git-scm.com/

Visual Studio Codeをインストール https://azure.microsoft.com/ja-jp/products/visual-studio-code/

拡張機能のPlatform IO をインストール https://platformio.org/install/ide?install=vscode

本リポジトリを適当な場所にCloneする。

git clone [email protected]:RUTILEA/Marlin.git

Cloneしたディレクトリに移動する。

cd Marlin

案件ごとのブランチを作成する。

git checkout -b 作成するブランチ名 

API

PythonからMarlin基板に対してGcode(基板制御用信号)を送信するAPIを作成しました。 pygrblのリポジトリを組み込みたいブランチにSubmoduleとして追加してください。 https://github.com/RUTILEA/pygrbl 手順は上記リポジトリのインストールの項目を参照。

ファームウェア書き込み

ファームウェアの設定作業を行いボードに書き込む。 VScode上で下のバーの➡(PlatformIO:upload)をクリックし書き込む。 書き込み時にボード側で操作が必要なものもあります。

ファームウェアの設定変更

よく変える設定

主に変更が必要な設定は

Configuration.h
Configuration_adv.h

の2つのファイルに記載されてます。 ここではよく変更する設定を示します。

Configuration.h

名称 説明
BAURATE シリアルのボーレート
X_MIN_ENDSTOP_INVERTING エンドストップの論理
DEFAULT_AXIS_STEPS_PER_UNIT 各軸のStep数 (1mm移動/1°回転するのに何パルス必要か)
DEFAULT_MAX_FEEDRATE 最大Feedrate (mm/s or °/s)
DEFAULT_MAX_ACCELERATION 最大加速度
INVERT_X_DIR 軸の正方向を反転
X_MIN_POS 軸の最小位置
X_MAX_POS 軸の最大位置
HOMING_FEEDRATE_MM_M ホーミング速度

Configuration_adv.h

名称 説明
HOMING_BUMP_MM ホーミングした際に戻る距離
HOMING_BUMP_DIVISOR ホーミングした際に何回戻るか
MINIMUM_STEPPER_PULSE パルス幅

※変更した設定は設定がわからなくならないように案件ごとにブランチを作成してGithubにPushするようにしましょう。

効率的な設定方法

MarlinFirmware's logo

Marlin 3D Printer Firmware

GPL-V3.0 License Contributors Last Release Date CI Status GitHub Sponsors
Follow MarlinFirmware on Twitter

Additional documentation can be found at the Marlin Home Page. Please test this firmware and let us know if it misbehaves in any way. Volunteers are standing by!

Marlin 2.1

Marlin 2.1 continues to support both 32-bit ARM and 8-bit AVR boards while adding support for up to 9 coordinated axes and to up to 8 extruders.

Download earlier versions of Marlin on the Releases page.

Example Configurations

Before building Marlin you'll need to configure it for your specific hardware. Your vendor should have already provided source code with configurations for the installed firmware, but if you ever decide to upgrade you'll need updated configuration files. Marlin users have contributed dozens of tested example configurations to get you started. Visit the MarlinFirmware/Configurations repository to find the right configuration for your hardware.

Building Marlin 2.1

To build Marlin 2.1 you'll need Arduino IDE 1.8.8 or newer or PlatformIO. Detailed build and install instructions are posted at:

Supported Platforms

Platform MCU Example Boards
Arduino AVR ATmega RAMPS, Melzi, RAMBo
Teensy++ 2.0 AT90USB1286 Printrboard
Arduino Due SAM3X8E RAMPS-FD, RADDS, RAMPS4DUE
ESP32 ESP32 FYSETC E4, E4d@BOX, MRR
LPC1768 ARM® Cortex-M3 MKS SBASE, Re-ARM, Selena Compact
LPC1769 ARM® Cortex-M3 Smoothieboard, Azteeg X5 mini, TH3D EZBoard
STM32F103 ARM® Cortex-M3 Malyan M200, GTM32 Pro, MKS Robin, BTT SKR Mini
STM32F401 ARM® Cortex-M4 ARMED, Rumba32, SKR Pro, Lerdge, FYSETC S6, Artillery Ruby
STM32F7x6 ARM® Cortex-M7 The Borg, RemRam V1
SAMD51P20A ARM® Cortex-M4 Adafruit Grand Central M4
Teensy 3.5 ARM® Cortex-M4
Teensy 3.6 ARM® Cortex-M4
Teensy 4.0 ARM® Cortex-M7
Teensy 4.1 ARM® Cortex-M7
Linux Native x86/ARM/etc. Raspberry Pi

Submitting Patches

Marlin Support

The Issue Queue is reserved for Bug Reports and Feature Requests. To get help with configuration and troubleshooting, please use the following resources:

Contributors

Marlin is constantly improving thanks to a huge number of contributors from all over the world bringing their specialties and talents. Huge thanks are due to all the contributors who regularly patch up bugs, help direct traffic, and basically keep Marlin from falling apart. Marlin's continued existence would not be possible without them.

Administration

Regular users can open and close their own issues, but only the administrators can do project-related things like add labels, merge changes, set milestones, and kick trolls. The current Marlin admin team consists of:

License

Marlin is published under the GPL license because we believe in open development. The GPL comes with both rights and obligations. Whether you use Marlin firmware as the driver for your open or closed-source product, you must keep Marlin open, and you must provide your compatible Marlin source code to end users upon request. The most straightforward way to comply with the Marlin license is to make a fork of Marlin on Github, perform your modifications, and direct users to your modified fork.

While we can't prevent the use of this code in products (3D printers, CNC, etc.) that are closed source or crippled by a patent, we would prefer that you choose another firmware or, better yet, make your own.

About

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. | Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 65.0%
  • C 32.2%
  • Python 1.0%
  • Shell 0.7%
  • JavaScript 0.4%
  • HTML 0.3%
  • Other 0.4%