Browse Source

[2.0.x] Add support for Cohesion3D ReMix and Mini (#9512)

* Add support for Cohesion3D ReMix and Mini
* Two separate pins files for pedantic reasons
Thomas Moore 7 years ago
parent
commit
93af0365e8

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

@@ -163,6 +163,8 @@
163 163
 #define BOARD_AZTEEG_X5_GT        1752  // Azteeg X5 GT (Power outputs: Hotend0, Hotend1, Bed, Fan)
164 164
 #define BOARD_BIQU_BQ111_A4       1753  // BIQU BQ111-A4 (Power outputs: Hotend, Fan, Bed)
165 165
 #define BOARD_SELENA_COMPACT      1754  // Selena Compact (Power outputs: Hotend0, Hotend1, Bed0, Bed1, Fan0, Fan1)
166
+#define BOARD_COHESION3D_REMIX    1755  // Cohesion3D ReMix
167
+#define BOARD_COHESION3D_MINI     1756  // Cohesion3D Mini
166 168
 
167 169
 //
168 170
 // SAM3X8E ARM Cortex M3

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

@@ -343,6 +343,10 @@
343 343
   #include "pins_THE_BORG.h"
344 344
 #elif MB(SELENA_COMPACT)
345 345
   #include "pins_SELENA_COMPACT.h"
346
+#elif MB(COHESION3D_REMIX)
347
+  #include "pins_COHESION3D_REMIX.h"
348
+#elif MB(COHESION3D_MINI)
349
+  #include "pins_COHESION3D_MINI.h"
346 350
 #else
347 351
   #error "Unknown MOTHERBOARD value set in Configuration.h"
348 352
 #endif

+ 171
- 0
Marlin/src/pins/pins_COHESION3D_MINI.h View File

@@ -0,0 +1,171 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ * Copyright (C) 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
5
+ *
6
+ * Based on Sprinter and grbl.
7
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
8
+ *
9
+ * This program is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+
24
+/**
25
+ * Cohesion3D Mini pin assignments
26
+ */
27
+
28
+#ifndef TARGET_LPC1768
29
+  #error "Oops!  Make sure you have LPC1768 selected."
30
+#endif
31
+
32
+#ifndef BOARD_NAME
33
+  #define BOARD_NAME "Cohesion3D Mini"
34
+#endif
35
+
36
+//
37
+// Servos
38
+//
39
+#define SERVO0_PIN          P1_23
40
+
41
+//
42
+// Limit Switches
43
+//
44
+#define X_MIN_PIN           P1_24 // 10k pullup to 3.3V
45
+#define X_MAX_PIN           P1_25 // 10k pullup to 3.3V
46
+#define Y_MIN_PIN           P1_26 // 10k pullup to 3.3V
47
+#define Y_MAX_PIN           P1_27 // 10k pullup to 3.3V
48
+#define Z_MIN_PIN           P1_28 // 10k pullup to 3.3V
49
+#define Z_MAX_PIN           P1_29 // 10k pullup to 3.3V
50
+
51
+//
52
+// Steppers
53
+//
54
+#define X_STEP_PIN          P2_00
55
+#define X_DIR_PIN           P0_05
56
+#define X_ENABLE_PIN        P0_04
57
+#define X_CS_PIN            P1_10 // Ethernet Expansion - Pin 9
58
+
59
+#define Y_STEP_PIN          P2_01
60
+#define Y_DIR_PIN           P0_11
61
+#define Y_ENABLE_PIN        P0_10
62
+#define Y_CS_PIN            P1_09 // Ethernet Expansion - Pin 10
63
+
64
+#define Z_STEP_PIN          P2_02
65
+#define Z_DIR_PIN           P0_20
66
+#define Z_ENABLE_PIN        P0_19
67
+#define Z_CS_PIN            P1_00 // Ethernet Expansion - Pin 11
68
+
69
+#define E0_STEP_PIN         P2_03
70
+#define E0_DIR_PIN          P0_22
71
+#define E0_ENABLE_PIN       P0_21
72
+#define E0_CS_PIN           P1_04 // Ethernet Expansion - Pin 12
73
+
74
+//
75
+// Default pins for TMC software SPI
76
+//
77
+#if ENABLED(TMC_USE_SW_SPI)
78
+  #ifndef TMC_SW_MOSI
79
+    #define TMC_SW_MOSI     P1_16 // Ethernet Expansion - Pin 5
80
+  #endif
81
+  #ifndef TMC_SW_MISO
82
+    #define TMC_SW_MISO     P1_17 // Ethernet Expansion - Pin 6
83
+  #endif
84
+  #ifndef TMC_SW_SCK
85
+    #define TMC_SW_SCK      P1_08 // Ethernet Expansion - Pin 7
86
+  #endif
87
+#endif
88
+
89
+//
90
+// Analog Inputs
91
+//  3.3V max when defined as an analog input
92
+//
93
+#define TEMP_0_PIN          0 // P0_23
94
+#define TEMP_BED_PIN        1 // P0_24
95
+
96
+//
97
+// Heaters / Fans
98
+//
99
+#define HEATER_BED_PIN      P2_05
100
+#define HEATER_0_PIN        P2_07 // FET 1
101
+#define AUTO_FAN_PIN        P2_04 // FET 4
102
+#define FAN_PIN             P2_06 // ReMix FET 4, Mini FET 3
103
+
104
+//
105
+// Auto fans
106
+//
107
+#define ORIG_E0_AUTO_FAN_PIN  AUTO_FAN_PIN
108
+#define ORIG_E1_AUTO_FAN_PIN  AUTO_FAN_PIN
109
+#define ORIG_E2_AUTO_FAN_PIN  AUTO_FAN_PIN
110
+
111
+//
112
+// Misc. Functions
113
+//
114
+#define LED_PIN             P4_28 // Play LED
115
+
116
+//
117
+// M3/M4/M5 - Spindle/Laser Control
118
+//
119
+#if ENABLED(SPINDLE_LASER_ENABLE)
120
+  #undef HEATER_0_PIN
121
+  #define SPINDLE_LASER_ENABLE_PIN  P2_07 // FET 1
122
+  #undef HEATER_BED_PIN
123
+  #define SPINDLE_LASER_PWM_PIN     P2_05 // Bed FET
124
+  #undef FAN_PIN
125
+  #define SPINDLE_DIR_PIN           P2_06 // ReMix FET 4, Mini FET 3
126
+#endif
127
+
128
+//
129
+// LCD / Controller
130
+//
131
+// LCD_PINS_D5, D6, and D7 are not present in the EXP1 connector, and will need to be
132
+// defined to use the REPRAP_DISCOUNT_SMART_CONTROLLER.
133
+//
134
+// A remote SD card is currently not supported because the pins routed to the EXP2
135
+// connector are shared with the onboard SD card, and Marlin does not support reading
136
+// G-code files from the onboard SD card.
137
+//
138
+#if ENABLED(ULTRA_LCD)
139
+
140
+  #define BEEPER_PIN        P0_27 // EXP2-7 - open drain
141
+
142
+  #define BTN_EN1           P3_26 // EXP2-5
143
+  #define BTN_EN2           P3_25 // EXP2-3
144
+  #define BTN_ENC           P1_30 // EXP1-2
145
+
146
+  #define LCD_PINS_RS       P0_16 // EXP1-4
147
+  #define LCD_SDSS          P0_28 // EXP2-4
148
+  #define LCD_PINS_ENABLE   P0_18 // EXP1-3
149
+  #define LCD_PINS_D4       P0_15 // EXP1-5
150
+
151
+  #define KILL_PIN          P2_11 // EXP2-10
152
+
153
+  #if ENABLED(SDSUPPORT)
154
+    #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
155
+  #endif
156
+
157
+#endif // ULTRA_LCD
158
+
159
+//
160
+// Ethernet pins
161
+//
162
+#define ENET_MDIO           P1_17
163
+#define ENET_RX_ER          P1_14
164
+#define ENET_RXD1           P1_10
165
+#define ENET_MOC            P1_16
166
+#define REF_CLK             P1_15
167
+#define ENET_RXD0           P1_09
168
+#define ENET_CRS            P1_08
169
+#define ENET_TX_EN          P1_04
170
+#define ENET_TXD0           P1_00
171
+#define ENET_TXD1           P1_01

+ 194
- 0
Marlin/src/pins/pins_COHESION3D_REMIX.h View File

@@ -0,0 +1,194 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ * Copyright (C) 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
5
+ *
6
+ * Based on Sprinter and grbl.
7
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
8
+ *
9
+ * This program is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+
24
+/**
25
+ * Cohesion3D ReMix pin assignments
26
+ */
27
+
28
+#ifndef TARGET_LPC1768
29
+  #error "Oops!  Make sure you have LPC1768 selected."
30
+#endif
31
+
32
+#ifndef BOARD_NAME
33
+  #define BOARD_NAME "Cohesion3D ReMix"
34
+#endif
35
+
36
+//
37
+// Servos
38
+//
39
+#define SERVO0_PIN        P2_04
40
+
41
+//
42
+// Limit Switches
43
+//
44
+#define X_MIN_PIN           P1_24 // 10k pullup to 3.3V
45
+#define X_MAX_PIN           P1_25 // 10k pullup to 3.3V
46
+#define Y_MIN_PIN           P1_26 // 10k pullup to 3.3V
47
+#define Y_MAX_PIN           P1_27 // 10k pullup to 3.3V
48
+#define Z_MIN_PIN           P1_28 // 10k pullup to 3.3V
49
+#define Z_MAX_PIN           P1_29 // 10k pullup to 3.3V
50
+
51
+//
52
+// Steppers
53
+//
54
+#define X_STEP_PIN          P2_00
55
+#define X_DIR_PIN           P0_05
56
+#define X_ENABLE_PIN        P0_04
57
+#define X_CS_PIN            P1_10 // Ethernet Expansion - Pin 9
58
+
59
+#define Y_STEP_PIN          P2_01
60
+#define Y_DIR_PIN           P0_11
61
+#define Y_ENABLE_PIN        P0_10
62
+#define Y_CS_PIN            P1_09 // Ethernet Expansion - Pin 10
63
+
64
+#define Z_STEP_PIN          P2_02
65
+#define Z_DIR_PIN           P0_20
66
+#define Z_ENABLE_PIN        P0_19
67
+#define Z_CS_PIN            P1_00 // Ethernet Expansion - Pin 11
68
+
69
+#define E0_STEP_PIN         P2_03
70
+#define E0_DIR_PIN          P0_22
71
+#define E0_ENABLE_PIN       P0_21
72
+#define E0_CS_PIN           P1_04 // Ethernet Expansion - Pin 12
73
+
74
+#define E1_STEP_PIN         P2_08
75
+#define E1_DIR_PIN          P2_13
76
+#define E1_ENABLE_PIN       P4_29
77
+#define E1_CS_PIN           P1_01 // Ethernet Expansion - Pin 14
78
+
79
+#define E2_STEP_PIN         P1_20
80
+#define E2_DIR_PIN          P1_19
81
+#define E2_ENABLE_PIN       P1_21
82
+#define E2_CS_PIN           P1_18 // FET 6
83
+
84
+//
85
+// Default pins for TMC software SPI
86
+//
87
+#if ENABLED(TMC_USE_SW_SPI)
88
+  #ifndef TMC_SW_MOSI
89
+    #define TMC_SW_MOSI     P1_16 // Ethernet Expansion - Pin 5
90
+  #endif
91
+  #ifndef TMC_SW_MISO
92
+    #define TMC_SW_MISO     P1_17 // Ethernet Expansion - Pin 6
93
+  #endif
94
+  #ifndef TMC_SW_SCK
95
+    #define TMC_SW_SCK      P1_08 // Ethernet Expansion - Pin 7
96
+  #endif
97
+#endif
98
+
99
+//
100
+// Analog Inputs
101
+//  3.3V max when defined as an analog input
102
+//
103
+#define TEMP_0_PIN          0 // P0_23
104
+#define TEMP_BED_PIN        1 // P0_24
105
+#define TEMP_1_PIN          2 // P0_25
106
+#if ENABLED(FILAMENT_WIDTH_SENSOR)
107
+  #define FILWIDTH_PIN      3 // P0_26
108
+#else
109
+  #define TEMP_2_PIN        3 // P0_26
110
+#endif
111
+
112
+//
113
+// Heaters / Fans
114
+//
115
+#define HEATER_BED_PIN      P2_05
116
+#define HEATER_0_PIN        P2_07 // FET 1
117
+#define HEATER_1_PIN        P1_23 // FET 2
118
+#if HOTENDS == 3
119
+  #define HEATER_2_PIN      P1_22 // FET 3
120
+  #define AUTO_FAN_PIN      P1_18 // FET 6
121
+#else
122
+  #define AUTO_FAN_PIN      P1_22 // FET 3
123
+#endif
124
+#define FAN_PIN             P2_06 // ReMix FET 4, Mini FET 3
125
+
126
+//
127
+// Auto fans
128
+//
129
+#define ORIG_E0_AUTO_FAN_PIN  AUTO_FAN_PIN
130
+#define ORIG_E1_AUTO_FAN_PIN  AUTO_FAN_PIN
131
+#define ORIG_E2_AUTO_FAN_PIN  AUTO_FAN_PIN
132
+
133
+//
134
+// Misc. Functions
135
+//
136
+#define LED_PIN             P4_28 // Play LED
137
+
138
+//
139
+// M3/M4/M5 - Spindle/Laser Control
140
+//
141
+#if ENABLED(SPINDLE_LASER_ENABLE)
142
+  #undef HEATER_0_PIN
143
+  #define SPINDLE_LASER_ENABLE_PIN  P2_07 // FET 1
144
+  #undef HEATER_BED_PIN
145
+  #define SPINDLE_LASER_PWM_PIN     P2_05 // Bed FET
146
+  #undef FAN_PIN
147
+  #define SPINDLE_DIR_PIN           P2_06 // ReMix FET 4, Mini FET 3
148
+#endif
149
+
150
+//
151
+// LCD / Controller
152
+//
153
+// LCD_PINS_D5, D6, and D7 are not present in the EXP1 connector, and will need to be
154
+// defined to use the REPRAP_DISCOUNT_SMART_CONTROLLER.
155
+//
156
+// A remote SD card is currently not supported because the pins routed to the EXP2
157
+// connector are shared with the onboard SD card, and Marlin does not support reading
158
+// G-code files from the onboard SD card.
159
+//
160
+#if ENABLED(ULTRA_LCD)
161
+
162
+  #define BEEPER_PIN        P1_31 // EXP1-1
163
+  #define SD_DETECT_PIN     P0_27 // EXP2-7
164
+
165
+  #define BTN_EN1           P3_26 // EXP2-5
166
+  #define BTN_EN2           P3_25 // EXP2-3
167
+  #define BTN_ENC           P1_30 // EXP1-2
168
+
169
+  #define LCD_PINS_RS       P0_16 // EXP1-4
170
+  #define LCD_SDSS          P0_28 // EXP2-4
171
+  #define LCD_PINS_ENABLE   P0_18 // EXP1-3
172
+  #define LCD_PINS_D4       P0_15 // EXP1-5
173
+
174
+  #define KILL_PIN          P2_11 // EXP2-10
175
+
176
+  #if ENABLED(SDSUPPORT)
177
+    #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
178
+  #endif
179
+
180
+#endif // ULTRA_LCD
181
+
182
+//
183
+// Ethernet pins
184
+//
185
+#define ENET_MDIO           P1_17
186
+#define ENET_RX_ER          P1_14
187
+#define ENET_RXD1           P1_10
188
+#define ENET_MOC            P1_16
189
+#define REF_CLK             P1_15
190
+#define ENET_RXD0           P1_09
191
+#define ENET_CRS            P1_08
192
+#define ENET_TX_EN          P1_04
193
+#define ENET_TXD0           P1_00
194
+#define ENET_TXD1           P1_01

Loading…
Cancel
Save