The Template #
Firstly, you’ll need the Marlin firmware with the appropriate template settings.
Start by downloading the latest stable release of Marlin from here and the configuration files here.
Extract the zip.
Copy the 4 files from config/examples/Creality/Ender-3 to the Marlin/ folder, overwriting the 2 already there.
Configuration.h #
Open the new Marlin/Configuration.h file using a text editor suitable for code, like vs code. We’ll customize our configuration now:
Change
STRINGCONFIGH_AUTHOR
to clearly differentiate the configuration from the defaultDisable
SHOW_BOOTSCREEN
andSHOWCUSTOMBOOTSCREEN
to save space by commenting out the lines (prefix them with // )Ensure you have the correct
BAUDRATE
. The original Ender 3 was configured to 115200 by Creality, but the newer Ender 3 Pro (and newer Creality motherboards) default to 250000. You may be fine with 250000 on an older Ender 3.Change
CUSTOMMACHINENAME
to represent your printer, e.g. "Ender 3 Pro"If you’re using a BLTouch ABL sensor:
Uncomment
#define BLTOUCH
#define SERVO0_PIN 27
is not required to set up your BLTouch in Marlin 2.x, as it’s defined in the pins folder by defaultYou’ll need to customize the offset between Probe and Extruder. In Marlin 1.x, this was done with X, Y, and 4.
ZPROBEOFFSETFROMEXTRUDER
. In Marlin 2.x, they’re now combined inNOZZLETOPROBE_OFFSET
. Instructions are in the comments. Using the Creality BLTouch Kit bracket, mine is { -43, -9, 0 }. It’s safer to leave Z as 0 here are calibrate this yourself later.To keep the probe away from the edge of the bed, increase
PROBING_MARGIN
to 20You can increase
XYPROBESPEED
to 10000 to speed up probing slightlyUncomment #define
AUTOBEDLEVELING_BILINEAR
to enable bilinear ABLBy default, bilinear ABL uses a 3×3 grid. You can change this by editing
GRIDMAXPOINTS_X
underEITHER
(AUTOBEDLEVELING_LINEAR
,AUTOBEDLEVELING_BILINEAR
). Mine is set to 5, for a 5×5 gridUncomment
#define LCDBEDLEVELING
to add bed leveling menu items
If your bed is non-standard, you’ll need to adjust the size and/or travel limits to make sure Marlin knows this. I use bulldog clips to secure a glass bed. To ensure the nozzle stays clear of the clips, I’ve changed the following:
YBEDSIZE
from 235 to 199,XMINPOS
from 0 to -2,YMINPOS
from 0 to -24.Uncomment
ZSAFEHOMING
. This prevents your Z homing from occurring without prior X and Y homing. Without this, you may accidentally miss the bed when homing Z.To increase the homing speed, increase
HOMINGFEEDRATEXY
from (2060) to (4060) andHOMINGFEEDRATEZ
from (460) to (860).If you want to use PID to efficiently heat your bed, uncomment
#define PIDTEMPBED
. You’ll need to calibrate this later.If you’re using a “silent” Creality board v1.1.4 or v1.1.5, you’re using TMC2208 drivers in standalone mode. Uncomment X, Y, Z, and
E0DRIVERTYPE
and set them toTMC2208_STANDALONE
.To save space, uncomment #define SLIMLCDMENUS. This will remove any menu items that you won’t need if controlling using a PC or OctoPrint.
To save space, comment out
#define SPEAKER
. This will stop fully disable the speaker.To save space if you won’t be printing from an SD card, comment out #define
SDSUPPORT
.Save the file and close the file.
Configuration_adv.h #
Open the new Marlin/Configuration_adv.h file in your chosen text editor.
If you’re using a BLTouch:
Uncomment
#define BLTOUCH_DELAY
and change from 500 to 200. This reduces the pause after each individual probe.Baby stepping allows the nozzle to move a tiny amount without changing the recorded coordinates for the hot-end. This is usually used for calibrating your Z Offset for a perfect first layer. You can increase
BABYSTEPMULTIPLICATORZ
and_XY
to 10 for faster motion.Uncomment
BABYSTEPZPROBEOFFSET
and#define BABYSTEPZPROBEGFX_OVERLAY
If you want to use Linear Advance to increase your print quality at higher speeds, uncomment
#define LIN_ADVANCE
and setLINADVANCEK
from 0.22 to 0, which will enable the feature but turn it off. Your GCODE will need to specify the K value, which you’ll calibrate later. You need different K values for different filament types. Note that LinearsAdvance is not compatible with the TMC2208 stepper driver in Standalone mode (using StealthChop), so will not worth it with Creality “silent” boards v1.1.4 and v1.1.5.To save space, comment out #define
ARC_SUPPORT
. This feature is used by other types of CNC machines, but usually not 3D printers.If you want to display progress and time remaining from another system with the M73 command, such as OctoPrint, uncomment
LCDSETPROGRESS_MANUALLY
. If your system will also send the M73 R parameter to update the time remaining, uncommentUSEM73REMAINING_TIME
.Marlin watches the rate of temperature increase for hot-end and bed. If it’s too slow, it will trigger an error and halt your print. If you have the windows open for ventilation and it’s cold out, this can be a problem. Increase
WATCHBEDTEMP_PERIOD
a little if you have this issue.
Save your changes and close the file.
To The Printer! #
Take a copy of your M503
output to save your current printer settings. You’ll need to put some of these back later.
Open Marlin/Marlin.ino with the Visual Studio Code, compile with PlateformIO, and write the new firmware to your printer.
Run M502 to set all settings to those specified in your firmware files, then M500 to store these settings in the EEPROM.
Depending on your configuration, you’ll now want to calibrate your Z-Probe Offset, PID for Hotend and Heated Bed and Linear Advance, or set them from your previous values.
Enjoy!