Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Commit

Permalink
New Printer Support
Browse files Browse the repository at this point in the history
Added ZoneStar Z5F
  • Loading branch information
Timothy Hoogland committed Jul 8, 2020
1 parent bba374b commit 0b2866e
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 5 deletions.
17 changes: 16 additions & 1 deletion TH3DUF_R2/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,21 @@
//#define WANHAO_D6_OEM
//#define CUSTOM_PROBE

//===========================================================================
// ************************ ZONESTAR PRINTERS ************************
//===========================================================================

//===========================================================================
// Zonestar Z5F Options - Select 'Arduino Mega 2560' from Tools > Board
//===========================================================================
//#define ZONESTAR_Z5F

//Stock ABL Option
//#define ZONESTAR_Z5F_STOCK_ABL

// EZABL Probe Mounts
//#define CUSTOM_PROBE

//===========================================================================
// *********************** MKS Gen L Based Printer ***********************
// ************* Select 'Arduino Mega 2560' from Tools > Board *************
Expand Down Expand Up @@ -1099,7 +1114,7 @@

#define LCD_LANGUAGE en

#define UNIFIED_VERSION "TH3D U1.R2.B4"
#define UNIFIED_VERSION "TH3D U1.R2.B5"
#include "Configuration_backend.h"

#endif // CONFIGURATION_H
4 changes: 4 additions & 0 deletions TH3DUF_R2/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@
#define E0_AUTO_FAN_PIN 7
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
#define EXTRUDER_AUTO_FAN_SPEED 255
#elif ENABLED(ZONESTAR_Z5F)
#define E0_AUTO_FAN_PIN 6
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
#define EXTRUDER_AUTO_FAN_SPEED 255
#else
#define E0_AUTO_FAN_PIN -1
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
Expand Down
71 changes: 71 additions & 0 deletions TH3DUF_R2/Configuration_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
#if ENABLED(CUSTOM_PROBE)
#define EZABL_ENABLE
#endif
#if ENABLED(ZONESTAR_Z5F_STOCK_ABL)
#define EZABL_ENABLE
#define X_PROBE_OFFSET_FROM_EXTRUDER 35
#define Y_PROBE_OFFSET_FROM_EXTRUDER 0
#endif
#if ENABLED(SIDEWINDER_X1_OEM)
#define EZABL_ENABLE
#define X_PROBE_OFFSET_FROM_EXTRUDER 0 //TODO
Expand Down Expand Up @@ -248,6 +253,72 @@
#endif
#endif

//ZoneStar Z5F Settings
#if ENABLED(ZONESTAR_Z5F)
#define BAUDRATE 115200

#define REPRAP_DISCOUNT_SMART_CONTROLLER
#define LCD2004

#define X_MIN_ENDSTOP_INVERTING true
#define Y_MIN_ENDSTOP_INVERTING true
#define Z_MIN_ENDSTOP_INVERTING true
#define X_MAX_ENDSTOP_INVERTING false
#define Y_MAX_ENDSTOP_INVERTING false
#define Z_MAX_ENDSTOP_INVERTING false
#define Z_MIN_PROBE_ENDSTOP_INVERTING false

#if ENABLED(CUSTOM_ESTEPS)
#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 400, CUSTOM_ESTEPS_VALUE }
#else
#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 400, 95 }
#endif

#define DEFAULT_MAX_FEEDRATE { 200, 200, 15, 50 }
#define DEFAULT_MAX_ACCELERATION { 1000, 1000, 500, 5000 }

#define DEFAULT_ACCELERATION 1000
#define DEFAULT_RETRACT_ACCELERATION 1000
#define DEFAULT_TRAVEL_ACCELERATION 1000

#define DEFAULT_XJERK 7.0
#define DEFAULT_YJERK 7.0
#define DEFAULT_ZJERK 0.3
#define DEFAULT_EJERK 5.0

#define INVERT_X_DIR true
#define INVERT_Y_DIR true
#define INVERT_Z_DIR false

#if ENABLED(REVERSE_E_MOTOR_DIRECTION)
#define INVERT_E0_DIR false
#else
#define INVERT_E0_DIR true
#endif

#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_ZRIB_V20
#endif

#define X_BED_SIZE 220
#define Y_BED_SIZE 220
#define Z_MAX_POS 220

#if ENABLED(HOME_ADJUST)
#define X_MIN_POS X_HOME_ADJUST_LOCATION
#define Y_MIN_POS Y_HOME_ADJUST_LOCATION
#else
#define X_MIN_POS -15
#define Y_MIN_POS -21
#endif

//#define ENCODER_PULSES_PER_STEP 4
//#define ENCODER_STEPS_PER_MENU_ITEM 1

#define PRINTER_ENABLED_CHECK

#endif

//AnyCubic Mega Zero Settings
#if ENABLED(AC_MEGA_ZERO)
#define SLIM_1284P
Expand Down
10 changes: 8 additions & 2 deletions TH3DUF_R2/pins_RAMPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,14 @@
#else
#define Y_MAX_PIN 15
#endif
#define Z_MIN_PIN 18
#define Z_MAX_PIN 19

#if ENABLED(ZONESTAR_Z5F_STOCK_ABL)
#define Z_MIN_PIN 19 //18
#define Z_MAX_PIN 18 //19
#else
#define Z_MIN_PIN 18
#define Z_MAX_PIN 19
#endif

//
// Z Probe (when not Z_MIN_PIN)
Expand Down
4 changes: 2 additions & 2 deletions TH3DUF_R2/pins_ZRIB_V20.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* ZRIB V2.0 pin assignments
*/

#define ZRIB_V20_D6_PIN 6
#define ZRIB_V20_D9_PIN 9
#define ZRIB_V20_D6_PIN 9 //6
#define ZRIB_V20_D9_PIN 6 //9
#define RAMPS_D9_PIN ZRIB_V20_D6_PIN
#define ORIG_E0_AUTO_FAN_PIN ZRIB_V20_D9_PIN
#define ORIG_E1_AUTO_FAN_PIN ZRIB_V20_D9_PIN
Expand Down

0 comments on commit 0b2866e

Please sign in to comment.