Browse Source

Wanhao Duplicator i3 Plus pins create (#12701)

Ludy 6 years ago
parent
commit
f7127c44f8

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

@@ -85,6 +85,7 @@
85 85
 #define BOARD_RAMPS_ENDER_4     243   // Creality: Ender-4, CR-8
86 86
 #define BOARD_RAMPS_CREALITY    244   // Creality: CR10S, CR20, CR-X
87 87
 #define BOARD_FYSETC_F6_13      541   // Fysetc F6
88
+#define BOARD_DUPLICATOR_I3_PLUS 31   // Wanhao Duplicator i3 Plus
88 89
 
89 90
 //
90 91
 // Other ATmega1280, ATmega2560
@@ -99,6 +100,7 @@
99 100
 #define BOARD_MEGATRONICS_2     701   // Megatronics v2.0
100 101
 #define BOARD_MEGATRONICS_3     703   // Megatronics v3.0
101 102
 #define BOARD_MEGATRONICS_31    704   // Megatronics v3.1
103
+#define BOARD_MEGATRONICS_32    705   // Megatronics v3.2
102 104
 #define BOARD_RAMBO             301   // Rambo
103 105
 #define BOARD_MINIRAMBO         302   // Mini-Rambo
104 106
 #define BOARD_MINIRAMBO_10A     303   // Mini-Rambo 1.0a

+ 3
- 1
Marlin/src/pins/pins.h View File

@@ -156,6 +156,8 @@
156 156
   #include "pins_RAMPS_CREALITY.h"    // ATmega2560                                 env:megaatmega2560
157 157
 #elif MB(FYSETC_F6_13)
158 158
   #include "pins_FYSETC_F6_13.h"      // ATmega2560                                 env:megaatmega2560
159
+#elif MB(DUPLICATOR_I3_PLUS)
160
+  #include "pins_DUPLICATOR_I3_PLUS.h" // ATmega2560                                 env:megaatmega2560
159 161
 
160 162
 //
161 163
 // Other ATmega1280, ATmega2560
@@ -175,7 +177,7 @@
175 177
   #include "pins_MEGATRONICS.h"       // ATmega2560                                 env:megaatmega2560
176 178
 #elif MB(MEGATRONICS_2)
177 179
   #include "pins_MEGATRONICS_2.h"     // ATmega2560                                 env:megaatmega2560
178
-#elif MB(MEGATRONICS_3) || MB(MEGATRONICS_31)
180
+#elif MB(MEGATRONICS_3) || MB(MEGATRONICS_31) || MB(MEGATRONICS_32)
179 181
   #include "pins_MEGATRONICS_3.h"     // ATmega2560                                 env:megaatmega2560
180 182
 #elif MB(RAMBO)
181 183
   #include "pins_RAMBO.h"             // ATmega2560                                 env:rambo

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

@@ -0,0 +1,183 @@
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
+ * Wanhao Duplicator i3 Plus pin assignments
25
+ */
26
+
27
+#ifndef __AVR_ATmega2560__
28
+  #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29
+#endif
30
+
31
+#define BOARD_NAME         "Duplicator i3 Plus"
32
+
33
+//
34
+// Limit Switches
35
+//
36
+#define X_STOP_PIN         54   // PF0 / A0
37
+#define Y_STOP_PIN         24   // PA2 / AD2
38
+#define Z_MIN_PIN          23   // PA1 / AD1
39
+#define Z_MAX_PIN          25   // PA3 / AD3
40
+#define SERVO0_PIN         40   // PG1 / !RD
41
+
42
+//
43
+// Steppers
44
+//
45
+#define X_STEP_PIN         61   // PF7 / A7
46
+#define X_DIR_PIN          62   // PK0 / A8
47
+#define X_ENABLE_PIN       60   // PF6 / A6
48
+
49
+#define Y_STEP_PIN         64   // PK2 / A10
50
+#define Y_DIR_PIN          65   // PK3 / A11
51
+#define Y_ENABLE_PIN       63   // PK1 / A9
52
+
53
+#define Z_STEP_PIN         67   // PK5 / A13
54
+#define Z_DIR_PIN          69   // PK7 / A15
55
+#define Z_ENABLE_PIN       66   // PK4 / A12
56
+#define Z_MIN_PROBE_PIN    25   // PA3 / AD3
57
+
58
+#define E0_STEP_PIN        58   // PF4 / A4
59
+#define E0_DIR_PIN         59   // PF5 / A5
60
+#define E0_ENABLE_PIN      57   // PF3 / A3
61
+
62
+//
63
+// Temperature Sensors
64
+//
65
+#define TEMP_0_PIN          1   // PF1 / A1   Analog
66
+#define TEMP_BED_PIN       14   // PK6 / A14  Analog
67
+
68
+//
69
+// Heaters / Fans
70
+//
71
+#define HEATER_0_PIN        4   // PG5 / PWM4
72
+#define HEATER_BED_PIN      3   // PE5 / PWM3
73
+
74
+#define FAN_PIN             5   // PE3 / PWM5
75
+
76
+//
77
+// Misc. Functions
78
+//
79
+#define SDSS               53   // PB0 / SS
80
+#define LED_PIN            13   // PB7 / PWM13
81
+
82
+#define MISO_PIN           50   // PB3
83
+#define MOSI_PIN           51   // PB2
84
+#define SCK_PIN            52   // PB1
85
+
86
+//
87
+// LCDs and Controllers
88
+//
89
+#if ENABLED(ULTRA_LCD)
90
+  #if ENABLED(ZONESTAR_LCD)
91
+    #define LCD_PINS_RS        2
92
+    #define LCD_PINS_ENABLE   36
93
+    #define LCD_PINS_D4       37
94
+    #define LCD_PINS_D5       34
95
+    #define LCD_PINS_D6       35
96
+    #define LCD_PINS_D7       32
97
+    #define ADC_KEYPAD_PIN    12   // Analog
98
+  #endif
99
+#endif
100
+
101
+/**
102
+ *  == EXT connector ==
103
+ *
104
+ *         2  4  6  8  10
105
+ *       #---------------#
106
+ *  #2   | °  °  °  °  ° |
107
+ *  #1   | °  °  °  °  ° |
108
+ *       #---------------#
109
+ *         1  3  5  7  9
110
+ *
111
+ * ##################################
112
+ * # Pin | ATMEGA2560 Pin | Arduino #
113
+ * ##################################
114
+ * #  1  | 52 / PG1 (!RD) |    40   #
115
+ * #  2  | 95 / PF2 (A2)  |     2   #
116
+ * #  3  | 54 / PC1 (A9)  |    36   #
117
+ * #  4  | 53 / PC0 (A8)  |    37   #
118
+ * #  5  | 56 / PC3 (A11) |    34   #
119
+ * #  6  | 55 / PC2 (A10) |    35   #
120
+ * #  7  | 58 / PC5 (A13) |    32   #
121
+ * #  8  | 57 / PC4 (A12) |    33   #
122
+ * #  9  |       GND      |     -   #
123
+ * # 10  |       VCC      |     +   #
124
+ * ##################################
125
+ *
126
+ * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
127
+ *
128
+ *  == Z-probe connector ==
129
+ *
130
+ *          1  2  3
131
+ *        #---------#
132
+ *        | °  °  ° |
133
+ *        #---------#
134
+ *
135
+ * ##################################
136
+ * # Pin | ATMEGA2560 Pin | Arduino #
137
+ * ##################################
138
+ * #  1  |    24V or 5V   |     +   #
139
+ * #  2  | 75 / PA3 (AD3) |    25   #
140
+ * #  3  |       GND      |     -   #
141
+ * ##################################
142
+ *
143
+ * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
144
+ * 
145
+ *  == Y-endstop ==                            == Z-endstop ==                 == Bed temperature ==
146
+ *
147
+ *        1  2                                       1  2                               1  2
148
+ *      #------#                                   #------#                           #------#
149
+ *      | °  ° |                                   | °  ° |                           | °  ° |
150
+ *      #------#                                   #------#                           #------#
151
+ *
152
+ * ############### Y ################ ############### Z ################ ############## BED ###############
153
+ * # Pin | ATMEGA2560 Pin | Arduino # # Pin | ATMEGA2560 Pin | Arduino # # Pin | ATMEGA2560 Pin | Arduino #
154
+ * ################################## ################################## ##################################
155
+ * #  1  |       GND      |     -   # #  1  |       GND      |     -   # #  1  |       GND      |     -   #
156
+ * #  2  | 76 / PA2 (AD2) |    24   # #  2  | 77 / PA1 (AD1) |    23   # #  2  |83 / PK6 (ADC14)|    14   #
157
+ * ################################## ################################## ##################################
158
+ *
159
+ * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
160
+ *
161
+ *  == SPI connector ==
162
+ *
163
+ *        5  3  1
164
+ *      #---------#
165
+ *      | °  °  ° |
166
+ *      | °  °  ° |
167
+ *      #---------#
168
+ *        6  4  2
169
+ *
170
+ * ##################################
171
+ * # Pin | ATMEGA2560 Pin | Arduino #
172
+ * ##################################
173
+ * #  1  | 22 / PB3 (MISO)|    50   #
174
+ * #  2  |       VCC      |     +   #
175
+ * #  3  | 20 / PB1 (SCK) |    52   #
176
+ * #  4  | 21 / PB2 (MOSI)|    51   #
177
+ * #  5  | 30 / !RESET    |  RESET  #
178
+ * #  6  |       GND      |     -   #
179
+ * ##################################
180
+ *
181
+ * Pictogram by Ludy https://github.com/Ludy87
182
+ * See: https://sebastien.andrivet.com/en/posts/wanhao-duplicator-i3-plus-3d-printer/
183
+ */

+ 5
- 3
Marlin/src/pins/pins_MEGATRONICS_3.h View File

@@ -21,14 +21,16 @@
21 21
  */
22 22
 
23 23
 /**
24
- * MegaTronics v3.0 / v3.1 pin assignments
24
+ * MegaTronics v3.0 / v3.1 / v3.2 pin assignments
25 25
  */
26 26
 
27 27
 #ifndef __AVR_ATmega2560__
28 28
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
29 29
 #endif
30 30
 
31
-#if MB(MEGATRONICS_31)
31
+#if MB(MEGATRONICS_32)
32
+  #define BOARD_NAME "Megatronics v3.2"
33
+#elif MB(MEGATRONICS_31)
32 34
   #define BOARD_NAME "Megatronics v3.1"
33 35
 #else
34 36
   #define BOARD_NAME "Megatronics v3.0"
@@ -161,7 +163,7 @@
161 163
   #define SHIFT_OUT        34
162 164
   #define SHIFT_EN         44
163 165
 
164
-  #if MB(MEGATRONICS_31)
166
+  #if MB(MEGATRONICS_31) || MB(MEGATRONICS_32)
165 167
     #define SD_DETECT_PIN  56
166 168
   #endif
167 169
 

Loading…
Cancel
Save