Browse Source

Add support for board RuRAMPS4D v1.3 (#11363)

Bo Herrmannsen 7 years ago
parent
commit
67b205fd45

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

@@ -197,7 +197,8 @@
197 197
 #define BOARD_RAMPS4DUE_EFF    1545   // RAMPS4DUE (Power outputs: Hotend, Fan0, Fan1)
198 198
 #define BOARD_RAMPS4DUE_EEF    1546   // RAMPS4DUE (Power outputs: Hotend0, Hotend1, Fan)
199 199
 #define BOARD_RAMPS4DUE_SF     1548   // RAMPS4DUE (Power outputs: Spindle, Controller Fan)
200
-#define BOARD_RURAMPS4D        1550   // RuRAMPS4Duo v1 (Power outputs: Hotend0, Hotend2, Hotend2, Fan0, Fan1, Bed)
200
+#define BOARD_RURAMPS4D_11     1550   // RuRAMPS4Duo v1.1 (Power outputs: Hotend0, Hotend1, Hotend2, Fan0, Fan1, Bed)
201
+#define BOARD_RURAMPS4D_13     1551   // RuRAMPS4Duo v1.3 (Power outputs: Hotend0, Hotend1, Hotend2, Fan0, Fan1, Bed)
201 202
 #define BOARD_ULTRATRONICS_PRO 1560   // ReprapWorld Ultratronics Pro V1.0
202 203
 #define BOARD_ARCHIM2          1590   // UltiMachine Archim2 (with TMC2130 drivers)
203 204
 #define BOARD_ALLIGATOR        1602   // Alligator Board R2

+ 3
- 0
Marlin/src/inc/SanityCheck.h View File

@@ -311,10 +311,13 @@
311 311
 
312 312
 #define BOARD_MKS_13     -47
313 313
 #define BOARD_TRIGORILLA -343
314
+#define BOARD_RURAMPS4D  -1550
314 315
 #if MB(MKS_13)
315 316
   #error "BOARD_MKS_13 has been renamed BOARD_MKS_GEN_13. Please update your configuration."
316 317
 #elif MB(BOARD_TRIGORILLA)
317 318
   #error "BOARD_TRIGORILLA has been renamed BOARD_TRIGORILLA_13. Please update your configuration."
319
+#elif MB(BOARD_RURAMPS4D)
320
+  #error "BOARD_RURAMPS4D has been renamed BOARD_RURAMPS4D_11. Please update your configuration."
318 321
 #endif
319 322
 
320 323
 /**

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

@@ -305,8 +305,10 @@
305 305
   #include "pins_DUE3DOM_MINI.h"      // SAM3X8E                                    env:DUE env:DUE_USB env:DUE_debug
306 306
 #elif MB(RADDS)
307 307
   #include "pins_RADDS.h"             // SAM3X8E                                    env:DUE env:DUE_USB env:DUE_debug
308
-#elif MB(RURAMPS4D)
309
-  #include "pins_RURAMPS4D.h"         // SAM3X8E                                    env:DUE env:DUE_USB env:DUE_debug
308
+#elif MB(RURAMPS4D_11)
309
+  #include "pins_RURAMPS4D_11.h"      // SAM3X8E                                    env:DUE env:DUE_USB env:DUE_debug
310
+#elif MB(RURAMPS4D_13)
311
+  #include "pins_RURAMPS4D_13.h"      // SAM3X8E                                    env:DUE env:DUE_USB env:DUE_debug
310 312
 #elif MB(RAMPS_FD_V1)
311 313
   #include "pins_RAMPS_FD_V1.h"       // SAM3X8E                                    env:DUE env:DUE_USB env:DUE_debug
312 314
 #elif MB(RAMPS_FD_V2)

+ 0
- 3
Marlin/src/pins/pinsDebug_list.h View File

@@ -917,9 +917,6 @@
917 917
 #if PIN_EXISTS(Z_MS2)
918 918
   REPORT_NAME_DIGITAL(__LINE__, Z_MS2_PIN)
919 919
 #endif
920
-#if PIN_EXISTS(Z_PROBE)
921
-  REPORT_NAME_DIGITAL(__LINE__, Z_PROBE_PIN)
922
-#endif
923 920
 #if PIN_EXISTS(Z_STEP)
924 921
   REPORT_NAME_DIGITAL(__LINE__, Z_STEP_PIN)
925 922
 #endif

Marlin/src/pins/pins_RURAMPS4D.h → Marlin/src/pins/pins_RURAMPS4D_11.h View File

@@ -37,10 +37,16 @@
37 37
 #endif
38 38
 
39 39
 #ifndef BOARD_NAME
40
-  #define BOARD_NAME       "RuRAMPS4Due"
40
+  #define BOARD_NAME       "RuRAMPS4Due v1.1"
41 41
 #endif
42 42
 
43 43
 //
44
+// Servos
45
+//
46
+#define SERVO0_PIN          5
47
+#define SERVO1_PIN          3
48
+
49
+//
44 50
 // Limit Switches
45 51
 //
46 52
 #define X_MIN_PIN          45
@@ -63,38 +69,51 @@
63 69
 #define X_STEP_PIN         37   // Support Extension Board
64 70
 #define X_DIR_PIN          36
65 71
 #define X_ENABLE_PIN       38
72
+#ifndef X_CS_PIN
73
+  #define X_CS_PIN         -1
74
+#endif
66 75
 
67 76
 #define Y_STEP_PIN         32   // Support Extension Board
68 77
 #define Y_DIR_PIN          35
69 78
 #define Y_ENABLE_PIN       34
79
+#ifndef Y_CS_PIN
80
+  #define Y_CS_PIN         -1
81
+#endif
70 82
 
71 83
 #define Z_STEP_PIN         30   // Support Extension Board
72 84
 #define Z_DIR_PIN           2
73 85
 #define Z_ENABLE_PIN       33
86
+#ifndef Z_CS_PIN
87
+  #define Z_CS_PIN         -1
88
+#endif
74 89
 
75 90
 #define E0_STEP_PIN        29
76 91
 #define E0_DIR_PIN         28
77 92
 #define E0_ENABLE_PIN      31
93
+#ifndef E0_CS_PIN
94
+  #define E0_CS_PIN        -1
95
+#endif
78 96
 
79 97
 #define E1_STEP_PIN        22
80 98
 #define E1_DIR_PIN         24
81 99
 #define E1_ENABLE_PIN      26
100
+#ifndef E1_CS_PIN
101
+  #define E1_CS_PIN        -1
102
+#endif
82 103
 
83 104
 #define E2_STEP_PIN        25
84 105
 #define E2_DIR_PIN         23
85 106
 #define E2_ENABLE_PIN      27
107
+#ifndef E2_CS_PIN
108
+  #define E2_CS_PIN        -1
109
+#endif
86 110
 
87 111
 #define E3_STEP_PIN        15   // Only For Extension Board
88 112
 #define E3_DIR_PIN         14
89 113
 #define E3_ENABLE_PIN      61
90
-
91
-//#define X_CS_PIN           -1
92
-//#define Y_CS_PIN           -1
93
-//#define Z_CS_PIN           -1
94
-//#define E0_CS_PIN          -1
95
-//#define E1_CS_PIN          -1
96
-//#define E2_CS_PIN          -1
97
-//#define E3_CS_PIN          -1
114
+#ifndef E3_CS_PIN
115
+  #define E3_CS_PIN        -1
116
+#endif
98 117
 
99 118
 // For Future: Microstepping pins - Mapping not from fastio.h (?)
100 119
 //#define E3_MS1_PIN         ?
@@ -136,8 +155,9 @@
136 155
 #define TEMP_2_PIN          2   // ANALOG A2
137 156
 #define TEMP_3_PIN          3   // ANALOG A2
138 157
 #define TEMP_BED_PIN        4   // ANALOG A3
139
-//Thermocouple Use Analog Pins
140
-#if ENABLED(VER_WITH_THERMOCOUPLE) // If Nead, define is in Configuration.h
158
+
159
+// The thermocouple uses Analog pins
160
+#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
141 161
   #define TEMP_4_PIN        5   // A5
142 162
   #define TEMP_5_PIN        6   // A6 (Marlin 2.0 not support)
143 163
 #endif
@@ -150,14 +170,6 @@
150 170
 //#endif
151 171
 
152 172
 //
153
-// Servos
154
-//
155
-#define SERVO0_PIN          5
156
-#define SERVO1_PIN          3
157
-#define SERVO2_PIN         -1
158
-#define SERVO3_PIN         -1
159
-
160
-//
161 173
 // Misc. Functions
162 174
 //
163 175
 #define SDSS                4   // 4,10,52 if using HW SPI.
@@ -195,6 +207,8 @@
195 207
 
196 208
   #if ENABLED(RADDS_DISPLAY) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
197 209
 
210
+    #define BEEPER_PIN      62
211
+
198 212
     #define LCD_PINS_RS     63
199 213
     #define LCD_PINS_ENABLE 64
200 214
     #define LCD_PINS_D4     48
@@ -202,16 +216,12 @@
202 216
     #define LCD_PINS_D6     52
203 217
     #define LCD_PINS_D7     53
204 218
 
205
-    #define BEEPER_PIN      62
206
-
207
-    #define BTN_EN1         44
208
-    #define BTN_EN2         42
209
-    #define BTN_ENC         40
210
-
211 219
     #define SD_DETECT_PIN   51
212 220
 
213 221
   #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
214 222
 
223
+    #define BEEPER_PIN      62
224
+
215 225
     #define LCD_PINS_RS     52
216 226
     #define LCD_PINS_ENABLE 53
217 227
     #define LCD_PINS_D4     48
@@ -219,20 +229,10 @@
219 229
     #define LCD_PINS_D6     52
220 230
     #define LCD_PINS_D7     53
221 231
 
222
-    #define BEEPER_PIN      62
223
-
224
-    #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
225
-     #define BTN_EN1        44
226
-     #define BTN_EN2        42
227
-     #define BTN_ENC        40
228
-     #define SD_DETECT_PIN  51
229
-    #endif
232
+    #define SD_DETECT_PIN   51
230 233
 
231 234
   #elif ENABLED(SSD1306_OLED_I2C_CONTROLLER)
232 235
 
233
-    #define BTN_EN1         44
234
-    #define BTN_EN2         42
235
-    #define BTN_ENC         40
236 236
     #define BEEPER_PIN      62
237 237
     #define LCD_SDSS        10
238 238
     #define SD_DETECT_PIN   51
@@ -250,4 +250,10 @@
250 250
 
251 251
   #endif // SPARK_FULL_GRAPHICS
252 252
 
253
+  #if ENABLED(NEWPANEL)
254
+    #define BTN_EN1         44
255
+    #define BTN_EN2         42
256
+    #define BTN_ENC         40
257
+  #endif
258
+
253 259
 #endif // ULTRA_LCD

+ 240
- 0
Marlin/src/pins/pins_RURAMPS4D_13.h View File

@@ -0,0 +1,240 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 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
+ * Ported sys0724 & Vynt
22
+ */
23
+
24
+/**
25
+ * Arduino Mega? or Due with RuRAMPS4DUE pin assignments
26
+ *
27
+ * Applies to the following boards:
28
+ *  RURAMPS4DUE      (Hotend0, Hotend1, Hotend2, Fan0, Fan1, Bed)
29
+ *
30
+ *  Differences between
31
+ *     RADDS | RuRAMPS4DUE
32
+ *           |
33
+ */
34
+
35
+#ifndef __SAM3X8E__
36
+  #error "Oops!  Make sure you have 'Arduino Due' selected from the 'Tools -> Boards' menu."
37
+#endif
38
+
39
+#ifndef BOARD_NAME
40
+  #define BOARD_NAME       "RuRAMPS4Due v1.3"
41
+#endif
42
+
43
+//
44
+// Servos
45
+//
46
+#define SERVO0_PIN          5
47
+#define SERVO1_PIN          3
48
+
49
+//
50
+// Limit Switches
51
+//
52
+#define X_MIN_PIN          45
53
+#define X_MAX_PIN          39
54
+#define Y_MIN_PIN          46
55
+#define Y_MAX_PIN          41
56
+#define Z_MIN_PIN          47
57
+#define Z_MAX_PIN          43
58
+
59
+//
60
+// Z Probe (when not Z_MIN_PIN)
61
+//
62
+#ifndef Z_MIN_PROBE_PIN
63
+  #define Z_MIN_PROBE_PIN  49
64
+#endif
65
+
66
+//
67
+// Steppers
68
+//
69
+#define X_STEP_PIN         37   // Support Extension Board
70
+#define X_DIR_PIN          36
71
+#define X_ENABLE_PIN       31
72
+#ifndef X_CS_PIN
73
+  #define X_CS_PIN         38
74
+#endif
75
+
76
+#define Y_STEP_PIN         32   // Support Extension Board
77
+#define Y_DIR_PIN          35
78
+#define Y_ENABLE_PIN       31
79
+#ifndef Y_CS_PIN
80
+  #define Y_CS_PIN         34
81
+#endif
82
+
83
+#define Z_STEP_PIN         30   // Support Extension Board
84
+#define Z_DIR_PIN           2
85
+#define Z_ENABLE_PIN       31
86
+#ifndef Z_CS_PIN
87
+  #define Z_CS_PIN         10
88
+#endif
89
+
90
+#define E0_STEP_PIN        29
91
+#define E0_DIR_PIN         28
92
+#define E0_ENABLE_PIN      33
93
+#ifndef E0_CS_PIN
94
+  #define E0_CS_PIN        14
95
+#endif
96
+
97
+#define E1_STEP_PIN        22
98
+#define E1_DIR_PIN         24
99
+#define E1_ENABLE_PIN      26
100
+#ifndef E1_CS_PIN
101
+  #define E1_CS_PIN        15
102
+#endif
103
+
104
+#define E2_STEP_PIN        25
105
+#define E2_DIR_PIN         23
106
+#define E2_ENABLE_PIN      27
107
+#ifndef E2_CS_PIN
108
+  #define E2_CS_PIN        61
109
+#endif
110
+
111
+#if DISABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
112
+  #define Z_MIN_PROBE_PIN  49
113
+#endif
114
+
115
+#if ENABLED(FILAMENT_RUNOUT_SENSOR)
116
+  #ifndef FIL_RUNOUT_PIN
117
+    #define FIL_RUNOUT_PIN   Y_MIN_PIN
118
+  #endif
119
+#endif
120
+
121
+//
122
+// Heaters / Fans
123
+//
124
+#define HEATER_0_PIN       13
125
+#define HEATER_1_PIN       12
126
+#define HEATER_2_PIN       11
127
+#define HEATER_BED_PIN      7   // BED H1
128
+
129
+#define FAN_PIN             9
130
+#define FAN1_PIN            8
131
+#define CONTROLLER_FAN_PIN -1
132
+
133
+//
134
+// Temperature Sensors
135
+//
136
+#define TEMP_0_PIN          0   // ANALOG A0
137
+#define TEMP_1_PIN          1   // ANALOG A1
138
+#define TEMP_2_PIN          2   // ANALOG A2
139
+#define TEMP_3_PIN          3   // ANALOG A2
140
+#define TEMP_BED_PIN        4   // ANALOG A3
141
+
142
+// The thermocouple uses Analog pins
143
+#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
144
+  #define TEMP_4_PIN        5   // A5
145
+  #define TEMP_5_PIN        6   // A6 (Marlin 2.0 not support)
146
+#endif
147
+
148
+// SPI for Max6675 or Max31855 Thermocouple
149
+//#if DISABLED(SDSUPPORT)
150
+//  #define MAX6675_SS        53
151
+//#else
152
+//  #define MAX6675_SS        49
153
+//#endif
154
+
155
+//
156
+// Misc. Functions
157
+//
158
+#define SDSS                4   // 4,10,52 if using HW SPI.
159
+#define LED_PIN            -1   // 13 - HEATER_0_PIN
160
+#define PS_ON_PIN          -1   // 65
161
+
162
+// MKS TFT / Nextion Use internal USART-1
163
+#define TFT_LCD_MODULE_COM        1
164
+#define TFT_LCD_MODULE_BAUDRATE   115600
165
+
166
+// ESP WiFi Use internal USART-2
167
+#define ESP_WIFI_MODULE_COM       2
168
+#define ESP_WIFI_MODULE_BAUDRATE  115600
169
+#define ESP_WIFI_MODULE_RESET_PIN -1
170
+#define PIGGY_GPIO_PIN            -1
171
+
172
+//
173
+// EEPROM
174
+//
175
+#define E2END 0x8000  // 32Kb (24lc256)
176
+#define I2C_EEPROM    // EEPROM on I2C-0
177
+//#define EEPROM_SD   // EEPROM on SDCARD
178
+//#define SPI_EEPROM  // EEPROM on SPI-0
179
+//#define SPI_CHAN_EEPROM1        ?
180
+//#define SPI_EEPROM1_CS          ?
181
+// 2K EEPROM
182
+//#define SPI_EEPROM2_CS          ?
183
+// 32Mb FLASH
184
+//#define SPI_FLASH_CS            ?
185
+
186
+//
187
+// LCD / Controller
188
+//
189
+#if ENABLED(ULTRA_LCD)
190
+
191
+  #if ENABLED(RADDS_DISPLAY) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
192
+
193
+    #define BEEPER_PIN      62
194
+
195
+    #define LCD_PINS_RS     63
196
+    #define LCD_PINS_ENABLE 64
197
+    #define LCD_PINS_D4     48
198
+    #define LCD_PINS_D5     50
199
+    #define LCD_PINS_D6     52
200
+    #define LCD_PINS_D7     53
201
+
202
+    #define SD_DETECT_PIN   51
203
+
204
+  #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
205
+
206
+    #define BEEPER_PIN      62
207
+
208
+    #define LCD_PINS_RS     52
209
+    #define LCD_PINS_ENABLE 53
210
+    #define LCD_PINS_D4     48
211
+    #define LCD_PINS_D5     50
212
+    #define LCD_PINS_D6     52
213
+    #define LCD_PINS_D7     53
214
+
215
+    #define SD_DETECT_PIN   51
216
+
217
+  #elif ENABLED(SSD1306_OLED_I2C_CONTROLLER)
218
+
219
+    #define BEEPER_PIN      62
220
+    #define LCD_SDSS        10
221
+    #define SD_DETECT_PIN   51
222
+
223
+  #elif ENABLED(MKS_MINI_12864)
224
+
225
+    #define ORIG_BEEPER_PIN 62
226
+
227
+    #define DOGLCD_A0       52
228
+    #define DOGLCD_CS       50
229
+
230
+    #define SD_DETECT_PIN   51
231
+
232
+  #endif
233
+
234
+  #if ENABLED(NEWPANEL)
235
+    #define BTN_EN1         44
236
+    #define BTN_EN2         42
237
+    #define BTN_ENC         40
238
+  #endif
239
+
240
+#endif // ULTRA_LCD

Loading…
Cancel
Save