Browse Source

Support for Ortur 4.3 mainboard (#17790)

animavitis 5 years ago
parent
commit
3ea1c8a6fa
No account linked to committer's email address
3 changed files with 119 additions and 0 deletions
  1. 1
    0
      Marlin/src/core/boards.h
  2. 2
    0
      Marlin/src/pins/pins.h
  3. 116
    0
      Marlin/src/pins/ramps/pins_ORTUR_4.h

+ 1
- 0
Marlin/src/core/boards.h View File

104
 #define BOARD_TANGO                   1148  // BIQU Tango V1
104
 #define BOARD_TANGO                   1148  // BIQU Tango V1
105
 #define BOARD_MKS_GEN_L_V2            1149  // MKS GEN L V2
105
 #define BOARD_MKS_GEN_L_V2            1149  // MKS GEN L V2
106
 #define BOARD_COPYMASTER_3D           1150  // Copymaster 3D
106
 #define BOARD_COPYMASTER_3D           1150  // Copymaster 3D
107
+#define BOARD_ORTUR_4                 1151  // Ortur 4
107
 
108
 
108
 //
109
 //
109
 // RAMBo and derivatives
110
 // RAMBo and derivatives

+ 2
- 0
Marlin/src/pins/pins.h View File

190
   #include "ramps/pins_MKS_GEN_L_V2.h"          // ATmega2560                             env:mega2560
190
   #include "ramps/pins_MKS_GEN_L_V2.h"          // ATmega2560                             env:mega2560
191
 #elif MB(COPYMASTER_3D)
191
 #elif MB(COPYMASTER_3D)
192
   #include "ramps/pins_COPYMASTER_3D.h"         // ATmega2560                             env:mega2560
192
   #include "ramps/pins_COPYMASTER_3D.h"         // ATmega2560                             env:mega2560
193
+#elif MB(ORTUR_4)
194
+  #include "ramps/pins_ORTUR_4.h"               // ATmega2560                             env:mega2560
193
 
195
 
194
 //
196
 //
195
 // RAMBo and derivatives
197
 // RAMBo and derivatives

+ 116
- 0
Marlin/src/pins/ramps/pins_ORTUR_4.h View File

1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+/**
25
+ * Ortur 4 Arduino Mega based on RAMPS v1.4 pin assignments
26
+ */
27
+
28
+#define BOARD_INFO_NAME "Ortur 4.3"
29
+#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
30
+
31
+//
32
+// Servos
33
+//
34
+#define SERVO0_PIN                            29
35
+
36
+//
37
+// Limit Switches
38
+//
39
+#define X_MAX_PIN                             18
40
+#define Z_MIN_PIN                             63
41
+
42
+#define Z_MIN_PROBE_PIN                        2
43
+#define FIL_RUNOUT_PIN                        59
44
+
45
+//
46
+// Steppers
47
+//
48
+#define E0_CS_PIN                             44
49
+#define E1_CS_PIN                             42
50
+
51
+//
52
+// Temperature Sensors
53
+//
54
+#define TEMP_0_PIN                            15  // Analog Input
55
+#define TEMP_1_PIN                            13  // Analog Input
56
+
57
+//
58
+// Software serial
59
+//
60
+#define X_SERIAL_TX_PIN                       59
61
+#define X_SERIAL_RX_PIN                       63
62
+
63
+#define Y_SERIAL_TX_PIN                       64
64
+#define Y_SERIAL_RX_PIN                       40
65
+
66
+#define Z_SERIAL_TX_PIN                       44
67
+#define Z_SERIAL_RX_PIN                       42
68
+
69
+#define E0_SERIAL_TX_PIN                      66
70
+#define E0_SERIAL_RX_PIN                      65
71
+
72
+#include "pins_RAMPS.h"
73
+
74
+//
75
+// Steppers
76
+//
77
+#undef E0_STEP_PIN
78
+#undef E0_DIR_PIN
79
+#undef E0_ENABLE_PIN
80
+#define E0_STEP_PIN                           36
81
+#define E0_DIR_PIN                            34
82
+#define E0_ENABLE_PIN                         30
83
+
84
+#undef E1_STEP_PIN
85
+#undef E1_DIR_PIN
86
+#undef E1_ENABLE_PIN
87
+#define E1_STEP_PIN                           26
88
+#define E1_DIR_PIN                            28
89
+#define E1_ENABLE_PIN                         24
90
+
91
+//
92
+// LCD / Controller
93
+//
94
+#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
95
+  #undef BEEPER_PIN
96
+  #define BEEPER_PIN                          35
97
+
98
+  #undef LCD_PINS_RS
99
+  #undef LCD_PINS_ENABLE
100
+  #undef LCD_PINS_D4
101
+  #define LCD_PINS_RS                         27
102
+  #define LCD_PINS_ENABLE                     23
103
+  #define LCD_PINS_D4                         37
104
+
105
+  #undef LCD_SDSS
106
+  #undef SD_DETECT_PIN
107
+  #define LCD_SDSS                            53
108
+  #define SD_DETECT_PIN                       49
109
+
110
+  #undef BTN_EN1
111
+  #undef BTN_EN2
112
+  #undef BTN_ENC
113
+  #define BTN_EN1                             29
114
+  #define BTN_EN2                             25
115
+  #define BTN_ENC                             16
116
+#endif

Loading…
Cancel
Save