Browse Source

Merge pull request #6932 from thinkyhead/bf_zrib_2.0

Support for ZRIB v2.0 Control Board
Scott Lahteine 7 years ago
parent
commit
e2c3695e11

+ 1
- 0
Marlin/boards.h View File

@@ -95,6 +95,7 @@
95 95
 #define BOARD_BAM_DICE          401  // 2PrintBeta BAM&DICE with STK drivers
96 96
 #define BOARD_BAM_DICE_DUE      402  // 2PrintBeta BAM&DICE Due with STK drivers
97 97
 #define BOARD_BQ_ZUM_MEGA_3D    503  // bq ZUM Mega 3D
98
+#define BOARD_ZRIB_V20          504  // zrib V2.0 control board (Chinese knock off RAMPS replica) 
98 99
 
99 100
 #define MB(board) (MOTHERBOARD==BOARD_##board)
100 101
 

+ 2
- 0
Marlin/pins.h View File

@@ -174,6 +174,8 @@
174 174
   #include "pins_MKS_13.h"
175 175
 #elif MB(SAINSMART_2IN1)
176 176
   #include "pins_SAINSMART_2IN1.h"
177
+#elif MB(ZRIB_V20)
178
+  #include "pins_ZRIB_V20.h"
177 179
 #else
178 180
   #error "Unknown MOTHERBOARD value set in Configuration.h"
179 181
 #endif

+ 4
- 1
Marlin/pins_CHEAPTRONICv2.h View File

@@ -111,9 +111,12 @@
111 111
 //
112 112
 // Other board specific pins
113 113
 //
114
-#define FILWIDTH_PIN       37
115 114
 #define LED_PIN            13
116 115
 #define SPINDLE_ENABLE_PIN  4
117 116
 #define FAN_PIN             3
118 117
 #define PS_ON_PIN          45
119 118
 #define KILL_PIN           46
119
+
120
+#ifndef FILWIDTH_PIN
121
+  #define FILWIDTH_PIN     37   // should be Analog Input (0-15)
122
+#endif

+ 4
- 1
Marlin/pins_PRINTRBOARD.h View File

@@ -99,7 +99,10 @@
99 99
 // Misc. Functions
100 100
 //
101 101
 #define SDSS               26
102
-#define FILWIDTH_PIN        2   // Analog Input
102
+
103
+#ifndef FILWIDTH_PIN
104
+  #define FILWIDTH_PIN      2   // Analog Input
105
+#endif
103 106
 
104 107
 //
105 108
 // LCD / Controller

+ 4
- 1
Marlin/pins_PRINTRBOARD_REVF.h View File

@@ -102,7 +102,10 @@
102 102
 // Misc. Functions
103 103
 //
104 104
 #define SDSS               20 // Teensylu pin mapping
105
-#define FILWIDTH_PIN        2 // Analog Input
105
+
106
+#ifndef FILWIDTH_PIN
107
+  #define FILWIDTH_PIN      2   // Analog Input
108
+#endif
106 109
 
107 110
 //
108 111
 // LCD / Controller

+ 4
- 1
Marlin/pins_RAMBO.h View File

@@ -135,10 +135,13 @@
135 135
 //
136 136
 #define SDSS               53
137 137
 #define LED_PIN            13
138
-#define FILWIDTH_PIN        3   // Analog Input
139 138
 #define PS_ON_PIN           4
140 139
 #define CASE_LIGHT_PIN     46
141 140
 
141
+#ifndef FILWIDTH_PIN
142
+  #define FILWIDTH_PIN      3   // Analog Input
143
+#endif
144
+
142 145
 //
143 146
 // LCD / Controller
144 147
 //

+ 3
- 2
Marlin/pins_RAMPS.h View File

@@ -196,8 +196,9 @@
196 196
 #define SDSS               53
197 197
 #define LED_PIN            13
198 198
 
199
-// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
200
-#define FILWIDTH_PIN        5   // Analog Input
199
+#ifndef FILWIDTH_PIN
200
+  #define FILWIDTH_PIN      5   // Analog Input on AUX2
201
+#endif
201 202
 
202 203
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
203 204
 #define FIL_RUNOUT_PIN      4

+ 4
- 1
Marlin/pins_SCOOVO_X9H.h View File

@@ -118,7 +118,10 @@
118 118
 #define SDSS                53
119 119
 #define LED_PIN             13
120 120
 #define PS_ON_PIN            4
121
-#define FILWIDTH_PIN         3   // Analog Input
121
+
122
+#ifndef FILWIDTH_PIN
123
+  #define FILWIDTH_PIN       3   // Analog Input
124
+#endif
122 125
 
123 126
 //
124 127
 // LCD / Controller

+ 39
- 0
Marlin/pins_ZRIB_V20.h View File

@@ -0,0 +1,39 @@
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
+ * ZRIB V2.0 pin assignments
25
+ */
26
+
27
+#define ZRIB_V20_D6_PIN 6
28
+#define ZRIB_V20_D9_PIN 9
29
+#define RAMPS_D9_PIN         ZRIB_V20_D6_PIN
30
+#define ORIG_E0_AUTO_FAN_PIN ZRIB_V20_D9_PIN
31
+#define ORIG_E1_AUTO_FAN_PIN ZRIB_V20_D9_PIN
32
+#define ORIG_E2_AUTO_FAN_PIN ZRIB_V20_D9_PIN
33
+#define ORIG_E3_AUTO_FAN_PIN ZRIB_V20_D9_PIN
34
+
35
+#ifndef FILWIDTH_PIN
36
+  #define FILWIDTH_PIN 11   // Analog Input
37
+#endif
38
+
39
+#include "pins_MKS_13.h"

Loading…
Cancel
Save