[Tutorial] Dual Z axis stepper motor+ Dual Z axis endstop

Post Reply
William
Posts: 24
Joined: Fri May 10, 2019 3:40 pm

[Tutorial] Dual Z axis stepper motor+ Dual Z axis endstop

Post by William » Tue Dec 03, 2019 8:04 am

Dual Z-axis stepper motor+ Dual Z-axis endstop
-Based on Eryone thinker stock firmware (version 2019/12/3)

Before to all:
-Marlin 1.1.9 firmware included the dual Z-axis stepper+Dual Z-axis endstop feature.
-The motherboard of thinker uses the ZMAX and XMAX port for the Bltouch sensor (Bltouch not included in the factory package)
-The port of YMAX is the spare one, it means you can use this port for the Z2 endstop
PS: The port of "XMAX" and "P-Y" use the same signal line of the motherboard. You can use one of them at the same time.
Also, the "P-Y" port is 24V

Hardware Prepare:
1. TMC2208 stepper board*1
2. Endstop and wires kit*1
3. Endstop mount plate kit*1

Firmware Prepare:
1. Stock firmware
https://www.eryone.com/forum/viewtopic.php?f=6&t=5

2. Refer to these steps and edit it
Configuration.h
1) Enable YMAX PLUG

Code: Select all

#define USE_YMAX_PLUG

2) Invert the logic of YMAX endstop

Code: Select all

#define Y_MAX_ENDSTOP_INVERTING true//false // set to true to invert the logic of the endstop.
3) Check the direction of the Z-axis and E1. Make sure they are in the same direction.

Code: Select all

// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
#define INVERT_X_DIR true
#define INVERT_Y_DIR false
#define INVERT_Z_DIR false

// @section extruder

// For direct drive extruder v9 set to true, for geared extruder set to false.
#define INVERT_E0_DIR true
#define INVERT_E1_DIR false
#define INVERT_E2_DIR false
#define INVERT_E3_DIR false
#define INVERT_E4_DIR false
Configuration_adv.h
1) Enable the dual Z-axis stepper+Dual Z-axis endstop feature
2) Replace "XMAX" to "YMAX"
Before:

Code: Select all

//#define Z_DUAL_STEPPER_DRIVERS
#if ENABLED(Z_DUAL_STEPPER_DRIVERS)
 //#define Z_DUAL_ENDSTOPS
  #if ENABLED(Z_DUAL_ENDSTOPS)
    #define Z2_USE_ENDSTOP _XMAX_
    #define Z_DUAL_ENDSTOPS_ADJUSTMENT  0
  #endif
#endif
After:

Code: Select all

#define Z_DUAL_STEPPER_DRIVERS
#if ENABLED(Z_DUAL_STEPPER_DRIVERS)
  #define Z_DUAL_ENDSTOPS
  #if ENABLED(Z_DUAL_ENDSTOPS)
    #define Z2_USE_ENDSTOP _YMAX_
    #define Z_DUAL_ENDSTOPS_ADJUSTMENT  0
  #endif
#endif
3. Upload the firmware to your printer

Hardware Assembly
1. Insert the TMC2208 to E1 port of the motherboard
2. Adjust the vref of the TMC2208 (E1) to 0.8V
3. Unplug the Z2 cable of the motherboard then insert it to E1 stepper motor cable port
4. Assembly the new endstop plate and new endstop
At last, you need to insert the new endstop cable to YMAX port of the motherboard

At last, attach the firmware of myself(It is a beta version, so it may exist some bugs)
Dual endstop_beta.zip
(3.44 MiB) Downloaded 4 times
Updating...

Post Reply