Browse Source

Add MKS BASE 1.4 pins (#12770)

Alain Martel 5 years ago
parent
commit
44ed34475b
3 changed files with 207 additions and 0 deletions
  1. 1
    0
      Marlin/src/core/boards.h
  2. 2
    0
      Marlin/src/pins/pins.h
  3. 204
    0
      Marlin/src/pins/pins_MKS_BASE_14.h

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

@@ -57,6 +57,7 @@
57 57
 #define BOARD_BAM_DICE          401   // 2PrintBeta BAM&DICE with STK drivers
58 58
 #define BOARD_BAM_DICE_DUE      402   // 2PrintBeta BAM&DICE Due with STK drivers
59 59
 #define BOARD_MKS_BASE          40    // MKS BASE v1.0
60
+#define BOARD_MKS_BASE_14       404   // MKS v1.4 A4982 stepper drivers
60 61
 #define BOARD_MKS_BASE_15       405   // MKS v1.5 with Allegro A4982 stepper drivers
61 62
 #define BOARD_MKS_BASE_HEROIC   41    // MKS BASE 1.0 with Heroic HR4982 stepper drivers
62 63
 #define BOARD_MKS_GEN_13        47    // MKS GEN v1.3 or 1.4

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

@@ -100,6 +100,8 @@
100 100
   #include "pins_BAM_DICE_DUE.h"      // ATmega1280, ATmega2560                     env:megaatmega1280 env:megaatmega2560
101 101
 #elif MB(MKS_BASE)
102 102
   #include "pins_MKS_BASE.h"          // ATmega1280, ATmega2560                     env:megaatmega1280 env:megaatmega2560
103
+#elif MB(MKS_BASE_14)
104
+  #include "pins_MKS_BASE_14.h"       // ATmega2560                                 env:megaatmega2560 
103 105
 #elif MB(MKS_BASE_15)
104 106
   #include "pins_MKS_BASE_15.h"       // ATmega1280, ATmega2560                     env:megaatmega1280 env:megaatmega2560
105 107
 #elif MB(MKS_BASE_HEROIC)

+ 204
- 0
Marlin/src/pins/pins_MKS_BASE_14.h View File

@@ -0,0 +1,204 @@
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
+ *  MKS BASE v1.4 
25
+ */
26
+
27
+#if HOTENDS > 2 || E_STEPPERS > 2
28
+  #error "MKS BASE 1.4 only supports up to 2 hotends / E-steppers. Comment out this line to continue."
29
+#endif
30
+
31
+#define BOARD_NAME "MKS BASE 1.4"
32
+
33
+//
34
+// Heaters / Fans
35
+//
36
+#define MOSFET_D_PIN              7   // PH4 ** Pin16 ** PWM7   //E1
37
+#define FAN_PIN                   9   // PH6 ** Pin18 ** PWM9
38
+// Other Mods
39
+#define CASE_LIGHT_PIN           11   // PB5 ** Pin24 ** PWM11
40
+#define SERVO3_PIN               12   // PB6 ** Pin25 ** D12
41
+#define PS_ON_PIN                 2   // X+ // PE4 ** Pin6  ** PWM2       **MUST BE HARDWARE PWM
42
+#define FILWIDTH_PIN             15   // Y+ // PJ0 ** Pin63 ** USART3_RX  **Pin should have a pullup!
43
+#define FIL_RUNOUT_PIN           19   // Z+ // PD2 ** Pin45 ** USART1_RX
44
+
45
+
46
+//
47
+// M3/M4/M5 - Spindle/Laser Control
48
+//
49
+#define SPINDLE_LASER_PWM_PIN     2   // X+ // PE4 ** Pin6  ** PWM2       **MUST BE HARDWARE PWM
50
+#define SPINDLE_LASER_ENABLE_PIN 15   // Y+ // PJ0 ** Pin63 ** USART3_RX  **Pin should have a pullup!
51
+#define SPINDLE_DIR_PIN          19   // Z+ // PD2 ** Pin45 ** USART1_RX
52
+
53
+/**
54
+ * Microstepping pins
55
+ */
56
+#define X_MS1_PIN                 5  // PE3 ** Pin5  ** PWM5
57
+#define X_MS2_PIN                 6  // PH3 ** Pin15 ** PWM6
58
+#define Y_MS1_PIN                59  // PF5 ** Pin92 ** A5
59
+#define Y_MS2_PIN                58  // PF4 ** Pin93 ** A4
60
+#define Z_MS1_PIN                22  // PA0 ** Pin78 ** D22
61
+#define Z_MS2_PIN                39  // PG2 ** Pin70 ** D39
62
+#define E0_MS1_PIN               64  // PK2 ** Pin87 ** A10
63
+#define E0_MS2_PIN               63  // PK1 ** Pin88 ** A9
64
+#define E1_MS1_PIN               57  // PF3 ** Pin94 ** A3
65
+#define E1_MS2_PIN                4  // PG5 ** Pin1  ** PWM4
66
+
67
+#include "pins_RAMPS.h"
68
+
69
+  /*****************************************/
70
+ /* Available connectors on MKS BASE v1.4 */
71
+/*****************************************/
72
+
73
+/*
74
+ *******
75
+ * GND *
76
+ *******   E0
77
+ *  10 *
78
+ *******
79
+ * GND *
80
+ *******   E1
81
+ *  7  *
82
+ *******
83
+ * GND *
84
+ *******   FAN
85
+ *  9  *
86
+ *******
87
+10 // PB4 ** Pin23 ** PWM10
88
+7  // PH4 ** Pin16 ** PWM7
89
+9  // PH6 ** Pin18 ** PWM9
90
+ *******
91
+ * GND *
92
+ *******   Heat Bed
93
+ *  8  *
94
+ *******
95
+8  // PH5 ** Pin17 ** PWM8
96
+ **********
97
+ * 12-24V *
98
+ **********   Power
99
+ *  GND   *
100
+ **********
101
+XS3 Connector
102
+ *****************
103
+ * 65 * GND * 5V *
104
+ *****************
105
+ * 66 * GND * 5V *
106
+ *****************
107
+65 // PK3 ** Pin86 ** A11
108
+66 // PK4 ** Pin85 ** A12
109
+Servos Connector
110
+ *****************
111
+ * 11 * GND * 5V *
112
+ *****************
113
+ * 12 * GND * 5V *
114
+ *****************
115
+11 // PB5 ** Pin24 ** PWM11 
116
+12 // PB6 ** Pin25 ** PWM12
117
+ICSP
118
+ *****************
119
+ * 5V * 51 * GND *
120
+ *****************
121
+ * 50 * 52 * RST *
122
+ *****************
123
+50 // PB3 ** Pin22 ** SPI_MISO  
124
+51 // PB2 ** Pin21 ** SPI_MOSI  
125
+52 // PB1 ** Pin20 ** SPI_SCK
126
+XS6/AUX-1 Connector
127
+ **********************
128
+ * 5V * GND * NC * 20 *
129
+ **********************
130
+ * 50 *  51 * 52 * 21 *
131
+ **********************
132
+50 // PB3 ** Pin22 ** SPI_MISO  
133
+51 // PB2 ** Pin21 ** SPI_MOSI  
134
+52 // PB1 ** Pin20 ** SPI_SCK
135
+20 // PD1 ** Pin44 ** I2C_SDA 
136
+21 // PD0 ** Pin43 ** I2C_SCL
137
+Temperature
138
+ **********************************
139
+ * GND * 69 * GND * 68 * GND * 68 *
140
+ **********************************
141
+69 // PK7 ** Pin82 ** A15
142
+68 // PK6 ** Pin83 ** A14 
143
+67 // PK5 ** Pin84 ** A13
144
+Limit Switches
145
+ ************
146
+ *  2 * GND * X+
147
+ ************
148
+ *  3 * GND * X-
149
+ ************
150
+ * 15 * GND * Y+
151
+ ************
152
+ * 14 * GND * Y-
153
+ ************
154
+ * 19 * GND * Z+
155
+ ************
156
+ * 18 * GND * Z-
157
+ ************
158
+2  // PE4 ** Pin6  ** PWM2       **X+
159
+3  // PE5 ** Pin7  ** PWM3       **X-
160
+15 // PJ0 ** Pin63 ** USART3_RX  **Y+
161
+14 // PJ1 ** Pin64 ** USART3_TX  **Y-
162
+19 // PD2 ** Pin45 ** USART1_RX  **Z+
163
+18 // PD3 ** Pin46 ** USART1_TX  **Z-
164
+EXP1
165
+ ************
166
+ *  37 * 35 *
167
+ ************
168
+ *  17 * 16 *
169
+ ************
170
+ *  23 * 25 *
171
+ ************
172
+ *  27 * 29 *
173
+ ************
174
+ * GND * 5V *
175
+ ************
176
+37 // PC0 ** Pin53 ** D37
177
+35 // PC2 ** Pin55 ** D35
178
+17 // PH0 ** Pin12 ** USART2_RX
179
+16 // PH1 ** Pin13 ** USART2_TX
180
+23 // PA1 ** Pin77 ** D23
181
+25 // PA3 ** Pin75 ** D25
182
+27 // PA5 ** Pin73 ** D27
183
+29 // PA7 ** Pin71 ** D29
184
+EXP2
185
+ ************
186
+ *  50 * 52 *
187
+ ************
188
+ *  31 * 53 *
189
+ ************
190
+ *  33 * 51 *
191
+ ************
192
+ *  49 * 41 *
193
+ ************
194
+ * GND * NC *
195
+ ************
196
+50 // PB3 ** Pin22 ** SPI_MISO
197
+52 // PB1 ** Pin20 ** SPI_SCK
198
+31 // PC6 ** Pin59 ** D31
199
+53 // PB0 ** Pin19 ** SPI_SS
200
+33 // PC4 ** Pin57 ** D33
201
+51 // PB2 ** Pin21 ** SPI_MOSI
202
+49 // PL0 ** Pin35 ** D49
203
+41 // PG0 ** Pin51 ** D41
204
+*/

Loading…
Cancel
Save