Kaynağa Gözat

Add BIQU BQ111-A4 board

Thomas Moore 7 yıl önce
ebeveyn
işleme
fa577392b2

+ 15
- 5
Marlin/src/HAL/HAL_LPC1768/spi_pins.h Dosyayı Görüntüle

@@ -31,11 +31,21 @@
31 31
 //#define MOSI_PIN          P0_09
32 32
 //#define SS_PIN            P0_06
33 33
 /** external */
34
-#define SCK_PIN           P0_15
35
-#define MISO_PIN          P0_17
36
-#define MOSI_PIN          P0_18
37
-#define SS_PIN            P1_23
38
-#define SDSS              SS_PIN
34
+#ifndef SCK_PIN
35
+  #define SCK_PIN           P0_15
36
+#endif
37
+#ifndef MISO_PIN
38
+  #define MISO_PIN          P0_17
39
+#endif
40
+#ifndef MOSI_PIN
41
+  #define MOSI_PIN          P0_18
42
+#endif
43
+#ifndef SS_PIN
44
+  #define SS_PIN            P1_23
45
+#endif
46
+#ifndef SDSS
47
+  #define SDSS              SS_PIN
48
+#endif
39 49
 
40 50
 #if (defined(TARGET_LPC1768) && !(defined(LPC_SOFTWARE_SPI)))   // signal LCDs that they need to use the hardware SPI
41 51
   #define SHARED_SPI

+ 1
- 0
Marlin/src/core/boards.h Dosyayı Görüntüle

@@ -150,6 +150,7 @@
150 150
 #define BOARD_MKS_SBASE           1750  // MKS-Sbase (Power outputs: Hotend0, Hotend1, Bed, Fan)
151 151
 #define BOARD_AZSMZ_MINI          1751  // AZSMZ Mini
152 152
 #define BOARD_AZTEEG_X5_GT        1752  // Azteeg X5 GT (Power outputs: Hotend0, Hotend1, Bed, Fan)
153
+#define BOARD_BIQU_BQ111_A4       1753  // BIQU BQ111-A4 (Power outputs: Hotend, Fan, Bed)
153 154
 
154 155
 //
155 156
 // SAM3X8E ARM Cortex M3

+ 2
- 0
Marlin/src/pins/pins.h Dosyayı Görüntüle

@@ -318,6 +318,8 @@
318 318
   #include "pins_AZSMZ_MINI.h"
319 319
 #elif MB(AZTEEG_X5_GT)
320 320
   #include "pins_AZTEEG_X5_GT.h"
321
+#elif MB(BIQU_BQ111_A4)
322
+  #include "pins_BIQU_BQ111_A4.h"
321 323
 #else
322 324
   #error "Unknown MOTHERBOARD value set in Configuration.h"
323 325
 #endif

+ 161
- 0
Marlin/src/pins/pins_BIQU_BQ111_A4.h Dosyayı Görüntüle

@@ -0,0 +1,161 @@
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 Re-Arm selected."
35
+#endif
36
+
37
+#ifndef BOARD_NAME
38
+  #define BOARD_NAME "BIQU BQ111-A4"
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_0
56
+#define X_DIR_PIN          P0_5
57
+#define X_ENABLE_PIN       P0_4
58
+
59
+#define Y_STEP_PIN         P2_1
60
+#define Y_DIR_PIN          P0_11
61
+#define Y_ENABLE_PIN       P0_10
62
+
63
+#define Z_STEP_PIN         P2_2
64
+#define Z_DIR_PIN          P0_20
65
+#define Z_ENABLE_PIN       P0_19
66
+
67
+#define E0_STEP_PIN        P2_3
68
+#define E0_DIR_PIN         P0_22
69
+#define E0_ENABLE_PIN      P0_21
70
+
71
+
72
+//
73
+// Temperature Sensors
74
+//  3.3V max when defined as an analog input
75
+//
76
+#define TEMP_0_PIN          0  // A0 (T0)
77
+#define TEMP_BED_PIN        1  // A1 (T1)
78
+
79
+
80
+//
81
+// Heaters / Fans
82
+//
83
+#define HEATER_0_PIN       P2_7
84
+#define HEATER_BED_PIN     P2_5
85
+#define FAN_PIN            P2_4
86
+
87
+//
88
+// Unused
89
+//
90
+//#define PIN_P2_10         P2_10  // IBOOT-1
91
+//#define PIN_P0_27         P0_27  // Onboard SD Detect
92
+
93
+/**
94
+ * LCD / Controller
95
+ *
96
+ * REPRAP_DISCOUNT_SMART_CONTROLLER is not supported due to the lack of LCD_PINS_D5,
97
+ * LCD_PINS_D6 or LCD_PINS_D7 in the EXP1 connector.
98
+ * 
99
+ * A remote SD card is not supported as the pins routed to EXP2 are the same as used
100
+ * for the onboard SD card, and a chip select signal is not provided for the remote
101
+ * SD card.
102
+ */
103
+#if ENABLED(ULTRA_LCD)
104
+
105
+  #define BEEPER_PIN          P1_31  // EXP1-1
106
+
107
+  #define BTN_EN1             P3_26  // EXP2-3
108
+  #define BTN_EN2             P3_25  // EXP2-5
109
+  #define BTN_ENC             P1_30  // EXP1-2
110
+
111
+  #define SD_DETECT_PIN       P0_27  // EXP2-7
112
+  #define LCD_PINS_RS         P0_16  // EXP1-4
113
+  #define LCD_PINS_ENABLE     P0_18  // (MOSI) EXP1-3
114
+  #define LCD_PINS_D4         P0_15  // (SCK)  EXP1-5
115
+
116
+  #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && !ENABLED(DOGLCD)
117
+    #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
118
+  #endif
119
+
120
+  #if ENABLED(SDSUPPORT)
121
+    #error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
122
+  #endif
123
+
124
+#endif // ULTRA_LCD
125
+
126
+
127
+/**
128
+ * SD Card Reader
129
+ *
130
+ * Software SPI is used to interface with a stand-alone SD card reader connected to EXP1.
131
+ * Hardware SPI can't be used because P0_17 (MISO) is not brought out on this board.
132
+ */
133
+#if ENABLED(SDSUPPORT)
134
+
135
+  #define SCK_PIN   P0_15 // EXP1-5
136
+  #define MISO_PIN  P0_16 // EXP1-4
137
+  #define MOSI_PIN  P0_18 // EXP1-3
138
+  #define SS_PIN    P1_30 // EXP1-2
139
+  #define SDSS      SS_PIN
140
+
141
+#endif // SDSUPPORT
142
+
143
+
144
+/**
145
+ *  PWMS
146
+ *
147
+ *  There are 6 PWMS.  Each PWM can be assigned to one of two pins.
148
+ *
149
+ *  PWM1.1   P0_18   LCD_PINS_ENABLE
150
+ *  PWM1.1   P2_0    X_STEP_PIN
151
+ *  PWM1.2   P1_20   <none>
152
+ *  PWM1.2   P2_1    Y_STEP_PIN
153
+ *  PWM1.3   P1_21   <none>
154
+ *  PWM1.3   P2_2    Z_STEP_PIN
155
+ *  PWM1.4   P1_23   <none>
156
+ *  PWM1.4   P2_3    E0_STEP_PIN
157
+ *  PWM1.5   P1_24   X_MIN_PIN
158
+ *  PWM1.5   P2_4    FAN_PIN
159
+ *  PWM1.6   P1_26   Y_MIN_PIN
160
+ *  PWM1.6   P2_5    HEATER_BED_PIN
161
+ */

Loading…
İptal
Kaydet