Browse Source

Bugfix 2.0.x add motherboard pins define (#12689)

- `pins_BIQU_B300_V1.0.h` defines pins for B300, as found in the BIQU Thunder 3D printer.
- `pins_BIQU_SKR_V1.1.h` defines pins for bigtree/BIQU SKR V1.1 motherboard.
Msq001 6 years ago
parent
commit
f8c5d31864

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

@@ -185,6 +185,8 @@
185 185
 #define BOARD_COHESION3D_MINI     1756  // Cohesion3D Mini
186 186
 #define BOARD_SMOOTHIEBOARD       1757  // Smoothieboard
187 187
 #define BOARD_AZTEEG_X5_MINI_WIFI 1758  // Azteeg X5 Mini (Power outputs: Hotend0, Bed, Fan)
188
+#define BOARD_BIQU_SKR_V1_1       1759  // BIQU SKR_V1.1 (Power outputs: Hotend0,Hotend1, Fan, Bed)
189
+#define BOARD_BIQU_B300_V1_0      1760  // BIQU B300_V1.0 (Power outputs: Hotend0, Fan, Bed, SPI Driver)
188 190
 
189 191
 //
190 192
 // SAM3X8E ARM Cortex M3

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

@@ -320,6 +320,10 @@
320 320
   #include "pins_COHESION3D_MINI.h"   // LPC1769                                    env:LPC1769
321 321
 #elif MB(SMOOTHIEBOARD)
322 322
   #include "pins_SMOOTHIEBOARD.h"     // LPC1769                                    env:LPC1769
323
+#elif MB(BIQU_SKR_V1_1)
324
+  #include "pins_BIQU_SKR_V1.1.h"     // LPC1768                                    env:LPC1768
325
+#elif MB(BIQU_B300_V1_0)
326
+  #include "pins_BIQU_B300_V1.0.h"    // LPC1768                                    env:LPC1768
323 327
 
324 328
 //
325 329
 // Other 32-bit Boards

+ 183
- 0
Marlin/src/pins/pins_BIQU_B300_V1.0.h View File

@@ -0,0 +1,183 @@
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
+ * BIQU BQ111-A4
26
+ *
27
+ * Applies to the following boards:
28
+ *
29
+ *  BOARD_BIQU_BQ111_A4 (Hotend, Fan, Bed)
30
+ *
31
+ */
32
+
33
+#ifndef TARGET_LPC1768
34
+  #error "Oops!  Make sure you have the LPC1768 environment selected in your IDE."
35
+#endif
36
+
37
+#ifndef BOARD_NAME
38
+  #define BOARD_NAME "BIQU Thunder B300 V1.0"
39
+#endif
40
+
41
+//
42
+// Limit Switches
43
+//
44
+#define X_MIN_PIN           P1_24   // 10k pullup to 3.3V, 1K series
45
+#define X_MAX_PIN           P1_25   // 10k pullup to 3.3V, 1K series
46
+#define Y_MIN_PIN           P1_26   // 10k pullup to 3.3V, 1K series
47
+#define Y_MAX_PIN           P1_27   // 10k pullup to 3.3V, 1K series
48
+#define Z_MIN_PIN           P1_28   // 10k pullup to 3.3V, 1K series
49
+#define Z_MAX_PIN           P1_29   // 10k pullup to 3.3V, 1K series
50
+
51
+
52
+//
53
+// Steppers
54
+//
55
+#define X_STEP_PIN          P2_00
56
+#define X_DIR_PIN           P0_05
57
+#define X_ENABLE_PIN        P0_04
58
+#ifndef X_CS_PIN
59
+  #define X_CS_PIN          P1_15   // ETH
60
+#endif
61
+
62
+
63
+#define Y_STEP_PIN          P2_01
64
+#define Y_DIR_PIN           P0_11
65
+#define Y_ENABLE_PIN        P0_10
66
+#ifndef Y_CS_PIN
67
+  #define Y_CS_PIN          P1_14   // ETH
68
+#endif
69
+
70
+#define Z_STEP_PIN          P2_02
71
+#define Z_DIR_PIN           P0_20
72
+#define Z_ENABLE_PIN        P0_19
73
+#ifndef Z_CS_PIN
74
+  #define Z_CS_PIN          P1_16   // ETH
75
+#endif
76
+
77
+#define E0_STEP_PIN         P2_03
78
+#define E0_DIR_PIN          P0_22
79
+#define E0_ENABLE_PIN       P0_21
80
+#ifndef E0_CS_PIN
81
+  #define E0_CS_PIN         P1_17   // ETH
82
+#endif
83
+
84
+
85
+//
86
+// Software SPI pins for TMC2130 stepper drivers
87
+//
88
+#if ENABLED(TMC_USE_SW_SPI)
89
+  #define TMC_SW_MOSI       P0_18   // ETH
90
+  #define TMC_SW_MISO       P0_17   // ETH
91
+  #define TMC_SW_SCK        P0_15   // ETH
92
+#endif
93
+
94
+//
95
+// Temperature Sensors
96
+//  3.3V max when defined as an analog input
97
+//
98
+#define TEMP_0_PIN          1   // A0 (T0)
99
+#define TEMP_BED_PIN        0   // A1 (T1)
100
+
101
+
102
+//
103
+// Heaters / Fans
104
+//
105
+#define HEATER_0_PIN        P2_07
106
+#define HEATER_BED_PIN      P2_05
107
+#ifndef FAN_PIN
108
+  #define FAN_PIN           P2_04
109
+#endif
110
+
111
+//
112
+// Unused
113
+//
114
+//#define PIN_P2_10         P2_10   // IBOOT-1
115
+//#define PIN_P0_27         P0_27   // Onboard SD Detect
116
+
117
+/**
118
+ * LCD / Controller
119
+ *
120
+ * REPRAP_DISCOUNT_SMART_CONTROLLER is not supported due to the lack of LCD_PINS_D5,
121
+ * LCD_PINS_D6 or LCD_PINS_D7 in the EXP1 connector.
122
+ *
123
+ * A remote SD card is not supported as the pins routed to EXP2 are the same as used
124
+ * for the onboard SD card, and a chip select signal is not provided for the remote
125
+ * SD card.
126
+ */
127
+#if ENABLED(ULTRA_LCD)
128
+
129
+  #define BEEPER_PIN        P1_31   // EXP1-1
130
+
131
+  #define BTN_EN1           P3_26   // EXP2-3
132
+  #define BTN_EN2           P3_25   // EXP2-5
133
+  #define BTN_ENC           P1_30   // EXP1-2
134
+
135
+  #define SD_DETECT_PIN     P0_27   // EXP2-7
136
+  #define LCD_PINS_RS       P0_16   // EXP1-4
137
+  #define LCD_PINS_ENABLE   P0_18   // (MOSI) EXP1-3
138
+  #define LCD_PINS_D4       P0_15   // (SCK)  EXP1-5
139
+
140
+  #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && DISABLED(DOGLCD)
141
+    #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
142
+  #endif
143
+
144
+  #if ENABLED(SDSUPPORT)
145
+    #error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
146
+  #endif
147
+
148
+#endif // ULTRA_LCD
149
+
150
+/**
151
+ * SD Card Reader
152
+ *
153
+ * Software SPI is used to interface with a stand-alone SD card reader connected to EXP1.
154
+ * Hardware SPI can't be used because P0_17 (MISO) is not brought out on this board.
155
+ */
156
+#if ENABLED(SDSUPPORT)
157
+
158
+  #define SCK_PIN   P0_15   // EXP1-5
159
+  #define MISO_PIN  P0_16   // EXP1-4
160
+  #define MOSI_PIN  P0_18   // EXP1-3
161
+  #define SS_PIN    P1_30   // EXP1-2
162
+  #define SDSS      SS_PIN
163
+
164
+#endif // SDSUPPORT
165
+
166
+/**
167
+ *  PWMS
168
+ *
169
+ *  There are 6 PWMS.  Each PWM can be assigned to one of two pins.
170
+ *
171
+ *  PWM1.1   P0_18   LCD_PINS_ENABLE
172
+ *  PWM1.1   P2_0    X_STEP_PIN
173
+ *  PWM1.2   P1_20   <none>
174
+ *  PWM1.2   P2_1    Y_STEP_PIN
175
+ *  PWM1.3   P1_21   <none>
176
+ *  PWM1.3   P2_2    Z_STEP_PIN
177
+ *  PWM1.4   P1_23   <none>
178
+ *  PWM1.4   P2_3    E0_STEP_PIN
179
+ *  PWM1.5   P1_24   X_MIN_PIN
180
+ *  PWM1.5   P2_4    FAN_PIN
181
+ *  PWM1.6   P1_26   Y_MIN_PIN
182
+ *  PWM1.6   P2_5    HEATER_BED_PIN
183
+ */

+ 194
- 0
Marlin/src/pins/pins_BIQU_SKR_V1.1.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
+#ifndef TARGET_LPC1768
25
+  #error "Oops!  Make sure you have the LPC1768 environment selected in your IDE."
26
+#endif
27
+
28
+#ifndef BOARD_NAME
29
+  #define BOARD_NAME "BIQU SKR V1.1"
30
+#endif
31
+
32
+//
33
+// Limit Switches
34
+//
35
+#define X_MIN_PIN          P1_29
36
+#define X_MAX_PIN          P1_28
37
+#define Y_MIN_PIN          P1_27
38
+#define Y_MAX_PIN          P1_26
39
+#define Z_MIN_PIN          P1_25
40
+#define Z_MAX_PIN          P1_24
41
+
42
+//
43
+// Steppers
44
+//
45
+#define X_STEP_PIN         P0_04
46
+#define X_DIR_PIN          P0_05
47
+#define X_ENABLE_PIN       P4_28
48
+
49
+#define Y_STEP_PIN         P2_01
50
+#define Y_DIR_PIN          P2_02
51
+#define Y_ENABLE_PIN       P2_00
52
+
53
+#define Z_STEP_PIN         P0_20
54
+#define Z_DIR_PIN          P0_21
55
+#define Z_ENABLE_PIN       P0_19
56
+
57
+#define E0_STEP_PIN        P0_11
58
+#define E0_DIR_PIN         P2_13
59
+#define E0_ENABLE_PIN      P2_12
60
+
61
+#define E1_STEP_PIN        P0_01
62
+#define E1_DIR_PIN         P0_00
63
+#define E1_ENABLE_PIN      P0_10
64
+
65
+//
66
+// Temperature Sensors
67
+//  3.3V max when defined as an analog input
68
+//
69
+#define TEMP_BED_PIN       0   // A0 (T0) - (67) - TEMP_BED_PIN
70
+#define TEMP_0_PIN         1   // A1 (T1) - (68) - TEMP_0_PIN
71
+#define TEMP_1_PIN         2   // A2 (T2) - (69) - TEMP_1_PIN
72
+
73
+//
74
+// Heaters / Fans
75
+//
76
+#define HEATER_0_PIN       P2_07
77
+#define HEATER_1_PIN       P2_04
78
+#define FAN_PIN            P2_03
79
+#define HEATER_BED_PIN     P2_05
80
+
81
+//
82
+// Misc. Functions
83
+//
84
+#define SDSS               P1_23   // (53)
85
+
86
+/**
87
+ * LCD / Controller
88
+ *
89
+ * All controllers can use J3 and J5 on the Re-ARM board.  Custom cabling will be required.
90
+ */
91
+
92
+/**
93
+ * Smart LCD adapter
94
+ *
95
+ * The Smart LCD adapter can be used for the two 10 pin LCD controllers such as
96
+ * REPRAP_DISCOUNT_SMART_CONTROLLER.  It can't be used for controllers that use
97
+ * DOGLCD_A0, DOGLCD_CS, LCD_PINS_D5, LCD_PINS_D6 or LCD_PINS_D7. A custom cable
98
+ * is needed to pick up 5V for the EXP1 connection.
99
+ *
100
+ * SD card on the LCD uses the same SPI signals as the LCD. This results in garbage/lines
101
+ * on the LCD display during accesses of the SD card. The menus/code has been arranged so
102
+ * that the garbage/lines are erased immediately after the SD card accesses are completed.
103
+ */
104
+
105
+#if ENABLED(ULTRA_LCD)
106
+
107
+  #if ENABLED(CR10_STOCKDISPLAY)
108
+
109
+    // Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
110
+    // Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
111
+    // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
112
+    // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
113
+
114
+    #define BEEPER_PIN     P2_11   // J3-3 & AUX-4
115
+
116
+    #define BTN_EN1        P0_16   // J3-7 & AUX-4
117
+    #define BTN_EN2        P1_23   // J3-5 & AUX-4
118
+    #define BTN_ENC        P3_25   // J3-4 & AUX-4
119
+
120
+    #define LCD_PINS_RS    P0_15   // J3-9 & AUX-4 (CS)
121
+    #define LCD_PINS_ENABLE P0_18  // J3-10 & AUX-3 (SID, MOSI)
122
+    #define LCD_PINS_D4    P2_06   // J3-8 & AUX-3 (SCK, CLK)
123
+
124
+  #else
125
+
126
+    #define BEEPER_PIN     P1_30   // (37) not 5V tolerant
127
+
128
+    #define BTN_EN1        P3_26   // (31) J3-2 & AUX-4
129
+    #define BTN_EN2        P3_25   // (33) J3-4 & AUX-4
130
+    #define BTN_ENC        P2_11   // (35) J3-3 & AUX-4
131
+
132
+    #define SD_DETECT_PIN  P1_31   // (49) not 5V tolerant   J3-1 & AUX-3
133
+    #define KILL_PIN       P1_22   // (41) J5-4 & AUX-4
134
+    #define LCD_PINS_RS    P0_16   // (16) J3-7 & AUX-4
135
+    #define LCD_SDSS       P0_16   // (16) J3-7 & AUX-4
136
+
137
+    #if ENABLED(REPRAPWORLD_KEYPAD)
138
+      #define SHIFT_OUT    P0_18   // (51)  (MOSI) J3-10 & AUX-3
139
+      #define SHIFT_CLK    P0_15   // (52)  (SCK)  J3-9 & AUX-3
140
+      #define SHIFT_LD     P1_31   // (49)  not 5V tolerant   J3-1 & AUX-3
141
+    #elif DISABLED(NEWPANEL)
142
+      //#define SHIFT_CLK  P3_26   // (31)  J3-2 & AUX-4
143
+      //#define SHIFT_LD   P3_25   // (33)  J3-4 & AUX-4
144
+      //#define SHIFT_OUT  P2_11   // (35)  J3-3 & AUX-4
145
+      //#define SHIFT_EN   P1_22   // (41)  J5-4 & AUX-4
146
+    #endif
147
+
148
+    #if ENABLED(VIKI2) || ENABLED(miniVIKI)
149
+      // #define LCD_SCREEN_ROT_180
150
+
151
+      #define BTN_EN1      P3_26   // (31) J3-2 & AUX-4
152
+      #define BTN_EN2      P3_25   // (33) J3-4 & AUX-4
153
+      #define BTN_ENC      P2_11   // (35) J3-3 & AUX-4
154
+
155
+      #define SD_DETECT_PIN P1_31  // (49) not 5V tolerant   J3-1 & AUX-3
156
+      #define KILL_PIN     P1_22   // (41) J5-4 & AUX-4
157
+
158
+      #define DOGLCD_CS    P0_16   // (16)
159
+      #define DOGLCD_A0    P2_06   // (59) J3-8 & AUX-2
160
+      #define DOGLCD_SCK   SCK_PIN
161
+      #define DOGLCD_MOSI  MOSI_PIN
162
+
163
+      #define STAT_LED_BLUE_PIN   P0_26   // (63)  may change if cable changes
164
+      #define STAT_LED_RED_PIN    P1_21   // ( 6)  may change if cable changes
165
+    #else
166
+      #define DOGLCD_CS    P0_26   // (63) J5-3 & AUX-2
167
+      #define DOGLCD_A0    P2_06   // (59) J3-8 & AUX-2
168
+      #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
169
+      #define LCD_PINS_ENABLE P0_18   // (51) (MOSI) J3-10 & AUX-3
170
+      #define LCD_PINS_D4  P0_15   // (52) (SCK)  J3-9 & AUX-3
171
+      #if ENABLED(ULTIPANEL)
172
+        #define LCD_PINS_D5 P1_17  // (71) ENET_MDIO
173
+        #define LCD_PINS_D6 P1_14  // (73) ENET_RX_ER
174
+        #define LCD_PINS_D7 P1_10  // (75) ENET_RXD1
175
+      #endif
176
+    #endif
177
+
178
+    //#define MISO_PIN      P0_17   // (50)  system defined J3-10 & AUX-3
179
+    //#define MOSI_PIN      P0_18   // (51)  system defined J3-10 & AUX-3
180
+    //#define SCK_PIN       P0_15   // (52)  system defined J3-9 & AUX-3
181
+    //#define SS_PIN        P1_23   // (53)  system defined J3-5 & AUX-3 - sometimes called SDSS
182
+
183
+    #if ENABLED(MINIPANEL)
184
+      // GLCD features
185
+      //#define LCD_CONTRAST   190
186
+      // Uncomment screen orientation
187
+      //#define LCD_SCREEN_ROT_90
188
+      //#define LCD_SCREEN_ROT_180
189
+      //#define LCD_SCREEN_ROT_270
190
+    #endif
191
+
192
+  #endif
193
+
194
+#endif // ULTRA_LCD

Loading…
Cancel
Save