This is a custom version of the Marlin Firmware for the i3 Mega/Mega-S, gratefully based on derhopp's repo with his remarkable efforts to get the Anycubic TFT screen to work with the latest versions of Marlin.
Looking for a BLtouch firmware? Head this way! Mounting and configuration instructions are included.
A German translation of the instructions can be found here.
While the i3 Mega is a great printer for its price and produces fantastic results in stock, there are some improvements and additional features that this firmware provides:
M888
cooldown routine for the Anycubic Ultrabase (EXPERIMENTAL): This is meant to be placed at the end Gcode of your slicer. It hovers over the print bed and does circular movements while running the fan. Works best with custom fan ducts.
T<temperature>
: Target bed temperature (min 15°C), 30°C if not specified (do not set this under room temperature)S<fan speed>
: Fan speed between 0 and 255, full speed if not specifiedM888 S191 T25
: run the fan at 75% until the bed has cooled down to 25°CI provided three different precompiled hex files: One for no modifications on the stepper motor drivers - good for people who didn't touch anything yet, one for boards with TMC2208 installed and where the connectors have been flipped and one with TMC2208 and the connectors in original orientation.
Marlin-AI3M-vx.x.x-TMC2208.hex
Marlin-AI3M-vx.x.x-TMC2208_reversed.hex
Marlin-AI3M-vx.x.x-TMC2208_reversed.hex
.Marlin-AI3M-vx.x.x-stock_drivers.hex
.Marlin.ino
Tools -> Board
select Genuino Mega 2560
and ATmega2560
559
to 566
and line 857
to 865
in Configuration.h
)Sketch
, select Export compiled binary
Marlin.ino.hex
, not the Marlin.ino.with_bootloader.hex
!)M502
- load hard coded default valuesM500
- save them to EEPROMIf you are using this on a Mega-S, those four additional commands are necessary:
M92 E384
- set correct steps for the new extruderM203 E30
- limit extruder feedrateM204 R1500.00
- lower retract accelerationM500
- save the valuesIf you have issues with an uneven bed, this is a great feature.
G28
or G28 Z0
) command and insert these two right underneath it:M501
M420 S1
G29 S1
- Start MMBLG29 S2
- Next Mesh pointG91
, G1 Z0.02
, G90
(one after another, not in one line)G91
, G1 Z-0.02
, G90
ok
in the console, send M500
to save.G28
G26 C H200 P5 R25 Q4.2 Z4
H
parameterB80
Q
parameter sets retraction length in mm, Z
sets unretraction.BETA: This now also works without USB printing, via SD & display.
M603 L0 U0
to use manual loading & unloading.M603 L538 U555
to use automatic loading & unloading
L
and U
paramters define the load and unload length in mm. The values above work well on a stock setup, if you modded your extruder, bowden tube or hotend, you might need to adjust those.M500
M600
in your GCode at the desired layerM600
in your GCode at the desired layer or send it via terminalFilamentChange Pause
in the Special MenuCONTINUE
(only once!) on the screen and wait for the hotend to heat up again.M108
and wait for the hotend to heat up again.CONTINUE
on the screenM108
via your USB host or use FilamentChange Resume
in the Special MenuM108
, enable the advanced options at the bottom of the terminal and press Fake Acknowledgement
M600
in your GCode at the desired layerM600
in your GCode at the desired layer or send it via terminalFilamentChange Pause
in the Special MenuCONTINUE
(only once!) on the screen and wait for the hotend to heat up again.M108
and wait for the hotend to heat up again.CONTINUE
on the screenM108
via your USB host or use FilamentChange Resume
in the Special MenuM108
, enable the advanced options at the bottom of the terminal and press Fake Acknowledgement
Some updates require the storage to be cleared (M502
), if mentioned in the update log. In those cases, before updating, send M503
and make a backup of all the lines starting with:
M92
G29
M301
M304
After flashing the new version, issue a M502
and M500
. After that, enter every line you saved before and finish by saving with M500
.
No worries. You can easily go back to the default firmware and restore the default settings.
M502
and M500
. Now your machine is exactly as it came out of the box.M900 Kx
)M78
to read them)M600
filament change feature enabled
M888
cooldown routine for the Anycubic UltrabaseSpecial menu
Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. First created in 2011 for RepRap and Ultimaker printers, today Marlin drives a majority of the world's most popular 3D printers. Marlin delivers outstanding print quality with unprecedented control over the process.
If you have coding or writing skills you're encouraged to contribute to Marlin. You may also contribute suggestions, feature requests, and bug reports through the Marlin Issue Queue.
Before contributing, please read our Contributing Guidelines and Code of Conduct.
Marlin's administrators are:
Notable contributors include:
Marlin is published under the GPLv3 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.
/*
* Flashing a custom firmware happens at your own risk.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
* AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/