Explorar el Código

Add Formbot Raptor2 and Raise3D pins (#12532)

* Add Formbot Raptor2 board
* Add Raise3D Rumba board
InsanityAutomation hace 5 años
padre
commit
dec721c52b

+ 4
- 0
Marlin/Makefile Ver fichero

@@ -204,12 +204,16 @@ else ifeq ($(HARDWARE_MOTHERBOARD),68)
204 204
 else ifeq ($(HARDWARE_MOTHERBOARD),72)
205 205
 # Rumba
206 206
 else ifeq ($(HARDWARE_MOTHERBOARD),80)
207
+# Raise3D Rumba
208
+else ifeq ($(HARDWARE_MOTHERBOARD),333)
207 209
 # Formbot T-Rex 2 Plus
208 210
 else ifeq ($(HARDWARE_MOTHERBOARD),95)
209 211
 # Formbot T-Rex 3
210 212
 else ifeq ($(HARDWARE_MOTHERBOARD),96)
211 213
 # Formbot Raptor
212 214
 else ifeq ($(HARDWARE_MOTHERBOARD),97)
215
+# Formbot Raptor 2
216
+else ifeq ($(HARDWARE_MOTHERBOARD),98)
213 217
 # bq ZUM Mega 3D
214 218
 else ifeq ($(HARDWARE_MOTHERBOARD),503)
215 219
 # MakeBoard Mini v2.1.2 is a control board sold by MicroMake

+ 2
- 0
Marlin/src/core/boards.h Ver fichero

@@ -73,9 +73,11 @@
73 73
 #define BOARD_AZTEEG_X3_PRO     68    // Azteeg X3 Pro
74 74
 #define BOARD_ULTIMAIN_2        72    // Ultimainboard 2.x (Uses TEMP_SENSOR 20)
75 75
 #define BOARD_RUMBA             80    // Rumba
76
+#define BOARD_RUMBA_RAISE3D     333   // Raise3D N series Rumba derivative
76 77
 #define BOARD_FORMBOT_TREX2PLUS 95    // Formbot T-Rex 2 Plus
77 78
 #define BOARD_FORMBOT_TREX3     96    // Formbot T-Rex 3
78 79
 #define BOARD_FORMBOT_RAPTOR    97    // Formbot Raptor
80
+#define BOARD_FORMBOT_RAPTOR2   98    // Formbot Raptor 2
79 81
 #define BOARD_BQ_ZUM_MEGA_3D    503   // bq ZUM Mega 3D
80 82
 #define BOARD_MAKEBOARD_MINI    431   // MakeBoard Mini v2.1.2 is a control board sold by MicroMake
81 83
 #define BOARD_TRIGORILLA_13     343   // TriGorilla Anycubic version 1.3 based on RAMPS EFB

+ 4
- 0
Marlin/src/pins/pins.h Ver fichero

@@ -132,12 +132,16 @@
132 132
   #include "pins_ULTIMAIN_2.h"        // ATmega2560                                 env:megaatmega2560
133 133
 #elif MB(FORMBOT_RAPTOR)
134 134
   #include "pins_FORMBOT_RAPTOR.h"    // ATmega2560                                 env:megaatmega2560
135
+#elif MB(FORMBOT_RAPTOR2)
136
+  #include "pins_FORMBOT_RAPTOR2.h"   // ATmega2560                                 env:megaatmega2560
135 137
 #elif MB(FORMBOT_TREX2PLUS)
136 138
   #include "pins_FORMBOT_TREX2PLUS.h" // ATmega2560                                 env:megaatmega2560
137 139
 #elif MB(FORMBOT_TREX3)
138 140
   #include "pins_FORMBOT_TREX3.h"     // ATmega2560                                 env:megaatmega2560
139 141
 #elif MB(RUMBA)
140 142
   #include "pins_RUMBA.h"             // ATmega2560                                 env:megaatmega2560
143
+#elif MB(RUMBA_RAISE3D)
144
+  #include "pins_RUMBA_RAISE3D.h"     // ATmega2560                                 env:megaatmega2560
141 145
 #elif MB(BQ_ZUM_MEGA_3D)
142 146
   #include "pins_BQ_ZUM_MEGA_3D.h"    // ATmega2560                                 env:megaatmega2560
143 147
 #elif MB(MAKEBOARD_MINI)

+ 13
- 6
Marlin/src/pins/pins_FORMBOT_RAPTOR.h Ver fichero

@@ -21,7 +21,7 @@
21 21
  */
22 22
 
23 23
 /**
24
- * Formbot pin assignments
24
+ * Formbot Raptor pin assignments
25 25
  */
26 26
 
27 27
 #ifndef __AVR_ATmega2560__
@@ -32,8 +32,12 @@
32 32
   #error "Formbot supports up to 3 hotends / E-steppers. Comment this line to keep going."
33 33
 #endif
34 34
 
35
-#define DEFAULT_MACHINE_NAME "Formbot Raptor"
36
-#define BOARD_NAME           "Formbot Raptor"
35
+#ifndef DEFAULT_MACHINE_NAME
36
+  #define DEFAULT_MACHINE_NAME "Formbot Raptor"
37
+#endif
38
+#ifndef BOARD_NAME
39
+  #define BOARD_NAME           "Formbot Raptor"
40
+#endif
37 41
 
38 42
 //
39 43
 // Servos
@@ -41,7 +45,6 @@
41 45
 #define SERVO0_PIN         11
42 46
 #define SERVO1_PIN          6
43 47
 #define SERVO2_PIN          5
44
-#define SERVO3_PIN         -1
45 48
 
46 49
 //
47 50
 // Limit Switches
@@ -142,7 +145,9 @@
142 145
 #define HEATER_1_PIN        7
143 146
 #define HEATER_BED_PIN      8
144 147
 
145
-#define FAN_PIN             9
148
+#ifndef FAN_PIN
149
+  #define FAN_PIN           9
150
+#endif
146 151
 
147 152
 #if DISABLED(FILAMENT_RUNOUT_SENSOR)
148 153
   #define FAN1_PIN          4
@@ -151,7 +156,9 @@
151 156
 //
152 157
 // Misc. Functions
153 158
 //
154
-#define SDSS               53
159
+#ifndef SDSS
160
+  #define SDSS             53
161
+#endif
155 162
 #define LED_PIN            13
156 163
 #define LED4_PIN            5
157 164
 

+ 70
- 0
Marlin/src/pins/pins_FORMBOT_RAPTOR2.h Ver fichero

@@ -0,0 +1,70 @@
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
+ */
22
+
23
+/**
24
+ * Formbot Raptor 2 pin assignments
25
+ */
26
+
27
+#define DEFAULT_MACHINE_NAME "Formbot Raptor2"
28
+#define BOARD_NAME           "Formbot Raptor2"
29
+
30
+#define FAN_PIN             6
31
+#define SDSS                5
32
+
33
+#include "pins_FORMBOT_RAPTOR.h"
34
+
35
+#ifndef FIL_RUNOUT_PIN
36
+  #define FIL_RUNOUT_PIN   22
37
+#endif
38
+
39
+#define GREEDY_PANEL (   ENABLED(PANEL_ONE) || ENABLED(VIKI2)     \
40
+                      || ENABLED(miniVIKI)  || ENABLED(MINIPANEL) \
41
+                      || ENABLED(REPRAPWORLD_KEYPAD) )
42
+
43
+//
44
+// M3/M4/M5 - Spindle/Laser Control
45
+//
46
+#if ENABLED(SPINDLE_LASER_ENABLE) && !PIN_EXISTS(SPINDLE_LASER_ENABLE)
47
+  #if !NUM_SERVOS                       // Try to use servo connector first
48
+    #define SPINDLE_LASER_ENABLE_PIN  6 // Pin should have a pullup/pulldown!
49
+    #define SPINDLE_LASER_PWM_PIN     4 // MUST BE HARDWARE PWM
50
+    #define SPINDLE_DIR_PIN           5
51
+  #elif !GREEDY_PANEL                   // Try to use AUX2
52
+    #define SPINDLE_LASER_ENABLE_PIN 40 // Pin should have a pullup/pulldown!
53
+    #define SPINDLE_LASER_PWM_PIN    44 // MUST BE HARDWARE PWM
54
+    #define SPINDLE_DIR_PIN          65
55
+  #endif
56
+#endif
57
+
58
+#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
59
+  #if NUM_SERVOS <= 1                   // Try to use servo connector first
60
+    #define CASE_LIGHT_PIN  6           // MUST BE HARDWARE PWM
61
+  #elif !GREEDY_PANEL                   // Try to use AUX2
62
+    #define CASE_LIGHT_PIN 44           // MUST BE HARDWARE PWM
63
+  #endif
64
+#endif
65
+
66
+#undef GREEDY_PANEL
67
+
68
+#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && (CASE_LIGHT_PIN == SPINDLE_LASER_ENABLE_PIN || CASE_LIGHT_PIN == SPINDLE_LASER_PWM_PIN)
69
+  #error "CASE_LIGHT_PIN conflicts with a Spindle / Laser pin."
70
+#endif

+ 24
- 16
Marlin/src/pins/pins_RUMBA.h Ver fichero

@@ -32,13 +32,17 @@
32 32
   #error "RUMBA supports up to 3 hotends / E-steppers. Comment out this line to continue."
33 33
 #endif
34 34
 
35
-#define DEFAULT_MACHINE_NAME "Rumba"
36
-#define BOARD_NAME           "Rumba"
35
+#ifndef DEFAULT_MACHINE_NAME
36
+  #define DEFAULT_MACHINE_NAME "Rumba"
37
+#endif
38
+#ifndef BOARD_NAME
39
+  #define BOARD_NAME "Rumba"
40
+#endif
37 41
 
38 42
 //
39 43
 // Servos
40 44
 //
41
-#define SERVO0_PIN         5
45
+#define SERVO0_PIN          5
42 46
 
43 47
 //
44 48
 // Limit Switches
@@ -87,16 +91,20 @@
87 91
 //
88 92
 // Temperature Sensors
89 93
 //
90
-#if TEMP_SENSOR_0 == -1
91
-  #define TEMP_0_PIN        6   // Analog Input (connector *K1* on RUMBA thermocouple ADD ON is used)
92
-#else
93
-  #define TEMP_0_PIN       15   // Analog Input (default connector for thermistor *T0* on rumba board is used)
94
+#ifndef TEMP_0_PIN
95
+  #if TEMP_SENSOR_0 == -1
96
+    #define TEMP_0_PIN      6   // Analog Input (connector *K1* on RUMBA thermocouple ADD ON is used)
97
+  #else
98
+    #define TEMP_0_PIN     15   // Analog Input (default connector for thermistor *T0* on rumba board is used)
99
+  #endif
94 100
 #endif
95 101
 
96
-#if TEMP_SENSOR_1 == -1
97
-  #define TEMP_1_PIN        5   // Analog Input (connector *K2* on RUMBA thermocouple ADD ON is used)
98
-#else
99
-  #define TEMP_1_PIN       14   // Analog Input (default connector for thermistor *T1* on rumba board is used)
102
+#ifndef TEMP_1_PIN
103
+  #if TEMP_SENSOR_1 == -1
104
+    #define TEMP_1_PIN      5   // Analog Input (connector *K2* on RUMBA thermocouple ADD ON is used)
105
+  #else
106
+    #define TEMP_1_PIN     14   // Analog Input (default connector for thermistor *T1* on rumba board is used)
107
+  #endif
100 108
 #endif
101 109
 
102 110
 #if TEMP_SENSOR_2 == -1
@@ -105,7 +113,7 @@
105 113
   #define TEMP_2_PIN       13   // Analog Input (default connector for thermistor *T2* on rumba board is used)
106 114
 #endif
107 115
 
108
-// optional for extruder 4 or chamber:
116
+// Optional for extruder 4 or chamber:
109 117
 //#define TEMP_X_PIN         12   // Analog Input (default connector for thermistor *T3* on rumba board is used)
110 118
 //#define TEMP_CHAMBER_PIN   12   // Analog Input (default connector for thermistor *T3* on rumba board is used)
111 119
 
@@ -142,13 +150,13 @@
142 150
 // M3/M4/M5 - Spindle/Laser Control
143 151
 //
144 152
 #ifndef SPINDLE_LASER_PWM_PIN
145
-  #define SPINDLE_LASER_PWM_PIN     4   // MUST BE HARDWARE PWM. Pin 4 interrupts OC0* and OC1* always in use?
153
+  #define SPINDLE_LASER_PWM_PIN 4   // MUST BE HARDWARE PWM. Pin 4 interrupts OC0* and OC1* always in use?
146 154
 #endif
147 155
 #ifndef SPINDLE_LASER_ENABLE_PIN
148 156
   #define SPINDLE_LASER_ENABLE_PIN 14   // Pin should have a pullup!
149 157
 #endif
150 158
 #ifndef SPINDLE_DIR_PIN
151
-  #define SPINDLE_DIR_PIN          15
159
+  #define SPINDLE_DIR_PIN  15
152 160
 #endif
153 161
 
154 162
 //
@@ -162,8 +170,8 @@
162 170
 #define BTN_ENC            43
163 171
 
164 172
 #if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
165
-  #define LCD_PINS_DC      38 // Set as output on init
166
-  #define LCD_PINS_RS      41 // Pull low for 1s to init
173
+  #define LCD_PINS_DC      38   // Set as output on init
174
+  #define LCD_PINS_RS      41   // Pull low for 1s to init
167 175
   // DOGM SPI LCD Support
168 176
   #define DOGLCD_CS        19
169 177
   #define DOGLCD_MOSI      42

+ 30
- 0
Marlin/src/pins/pins_RUMBA_RAISE3D.h Ver fichero

@@ -0,0 +1,30 @@
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
+ */
22
+
23
+#define DEFAULT_MACHINE_NAME "Raise3D N Series"
24
+#define BOARD_NAME           "Raise3D Rumba"
25
+
26
+// Raise3D uses thermocouples on the standard input pins
27
+#define TEMP_0_PIN         15   // Analog Input
28
+#define TEMP_1_PIN         14   // Analog Input
29
+
30
+#include "pins_RUMBA.h"

Loading…
Cancelar
Guardar