Giter Club home page Giter Club logo

mks-gen-l-v2-marlin-firmware-for-ender-3's Introduction

MKS GEN L V2 Marlin Firmware for Ender 3

Marlin Firmware for Creality Ender 3 Printers with MKS GEN L V2.0 Board and TMC2209 Stepper Motors

The following guide is for use without a BLTouch. For more information about using one, please see Using a BLTouch

Known issues

⚠️ Step miscount when using Octoprint

There is currently an issue when using Octoprint with the PSU Control plugin / supplying power to the stepper motors after boot. See the corresponding ticket at MarlinFirmware/Marlin#17671.

"Error EEPROM Ver." Message

Fix: Connect to the printer using Printrun, Octoprint or similar. Send a M502, followed by an M500 GCODE command via console to the printer to do a factory reset. This will get rid of the error message. Keep in mind that you have to reapply all previous settings such as Z-Offset, if you had any.

Content

The Marlin folder contains a current fork of the Marlin branch, the changes from the original Ender 3 template and my changes to the files to make them work with the MKS GEN L V2.0 Board and TMC2209 Stepper Motors. If you want to make the changes yourself, see my changes listed below.

Please copy the correct configuration file from the config folder (normal or for use with a BLTouch and ABL). There is also file with the modified startup GCODE for Cura.

Wiring

Use the schematic below to wire up your printer Schematic

Place a jumper on the outlined pins to enable UART.

Connect the ribbon cable to EXT3 on your display. As you have to plug the plug in reverse, you have to sand down the notch on the outside of the plug.

Place the cables from the endstops on the top and the bottom pin of each plug, so that the switch is connected to the 5V and D pin in this schematic. You must use either jumper cables or resolder the plugs.

I made some adapter cables so that I could easily undo the changes in the future. In terms of plugs you are looking for JST connectors, 2.5mm XH 3-Pin. This is what my adapter looks like: Adapter

Configuration changes

Make sure you copy the Ender-3 config files first (https://github.com/MarlinFirmware/Configurations/tree/import-2.0.x/config/examples/Creality/Ender-3/CrealityV1) and then apply my changes

Configuration.h

//#define SHOW_CUSTOM_BOOTSCREEN
and
// #define CUSTOM_STATUS_SCREEN_IMAGE

(optional) Removes the custom boot logo and logo on the status page


#define MOTHERBOARD BOARD_MKS_GEN_L_V2

Defines the correct board


#define X_MIN_ENDSTOP_INVERTING true
#define Y_MIN_ENDSTOP_INVERTING true
#define Z_MIN_ENDSTOP_INVERTING true

Inverts the logic of the endstops


#define X_DRIVER_TYPE  TMC2209
#define Y_DRIVER_TYPE  TMC2209
#define Z_DRIVER_TYPE  TMC2209

and
#define E0_DRIVER_TYPE TMC2209

Enables support for TMC2209 in UART mode. Requires that UART jumper is set correctly. Set drivers to TMC2209_STANDALONE otherwise

Configuration_adv.h

#define E0_AUTO_FAN_PIN 7

Sets the correct output for the fan, which will automatically enable when the hotend reaches 50° or more


#define HOMING_BUMP_MM { 5, 5, 2 }

Only when using an older config file. Replaces X_HOME_BUMP_MM, Y_HOME_BUMP_MM and Z_HOME_BUMP_MM as Marlin changed the variable name

Using a BLTouch

Mounting

Use this thing from Thingiverse, it works great!

Wiring

The metioned pins correspond to this schematic.

The 3 wire plug goes on the D11 pin, orientate it in a way that the yellow cable is on the leftmost pin.

The 2 wire black and white cable goes to the green Z-min header, however unlike the normal endstops, the black cable goes on the middle plug (GND) and the white one on the lowermost one (D18).

Firmware

Change the following parameters in addition to the changes above

Configuration.h

#define BLTOUCH


#define NOZZLE_TO_PROBE_OFFSET { -41, -10, 0 }


#define PROBING_MARGIN 30


#define AUTO_BED_LEVELING_BILINEAR


#define Z_SAFE_HOMING


#define NUM_SERVOS 1

mks-gen-l-v2-marlin-firmware-for-ender-3's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mks-gen-l-v2-marlin-firmware-for-ender-3's Issues

How can I send a M150 to change the LEDs from anywhere in the code?

This isn't exactly an issue, I'm sorry, I just don't know where else to ask. We have spent so many hours trying to send a M150 command to change the LED color at line 574 of temperature.cpp where it says

_temp_error(heater_id, str_t_heating_failed, GET_TEXT(MSG_HEATING_FAILED_LCD));

and we are so stuck. We just want the lights to change when that message pops up. I feel like it shouldn't be that hard, but I also feel like we have tried everything. Can someone please tell me what we need to put there to do this? Thank you so much! Any help is greatly appreciated!

edit:
I totally forgot to say - Thanks so much for making all this! This is an incredible amount of work, I really appreciate all the time and effort you have put into this MasterPuffin!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.