Parcourir la source

Mightyboard Revision E

Scott Lahteine il y a 8 ans
Parent
révision
c2f13be750
4 fichiers modifiés avec 213 ajouts et 1 suppressions
  1. 1
    0
      Marlin/boards.h
  2. 2
    0
      Marlin/pins.h
  3. 205
    0
      Marlin/pins_MIGHTYBOARD_REVE.h
  4. 5
    1
      Marlin/ultralcd_impl_HD44780.h

+ 1
- 0
Marlin/boards.h Voir le fichier

@@ -33,6 +33,7 @@
33 33
 #define BOARD_CNCONTROLS_12     112  // Cartesio CN Controls V12
34 34
 #define BOARD_CHEAPTRONIC       2    // Cheaptronic v1.0
35 35
 #define BOARD_SETHI             20   // Sethi 3D_1
36
+#define BOARD_MIGHTYBOARD_REVE  200  // Makerbot Mightyboard Revision E
36 37
 #define BOARD_RAMPS_OLD         3    // MEGA/RAMPS up to 1.2
37 38
 #define BOARD_RAMPS_13_EFB      33   // RAMPS 1.3 (Power outputs: Hotend, Fan, Bed)
38 39
 #define BOARD_RAMPS_13_EEB      34   // RAMPS 1.3 (Power outputs: Hotend0, Hotend1, Bed)

+ 2
- 0
Marlin/pins.h Voir le fichier

@@ -39,6 +39,8 @@
39 39
   #include "pins_CHEAPTRONIC.h"
40 40
 #elif MB(SETHI)
41 41
   #include "pins_SETHI.h"
42
+#elif MB(MIGHTYBOARD_REVE)
43
+  #include "pins_MIGHTYBOARD_REVE.h"
42 44
 #elif MB(RAMPS_OLD)
43 45
   #include "pins_RAMPS_OLD.h"
44 46
 #elif MB(RAMPS_13_EFB)

+ 205
- 0
Marlin/pins_MIGHTYBOARD_REVE.h Voir le fichier

@@ -0,0 +1,205 @@
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
+ * Mightyboard Rev.E pin assignments
25
+ */
26
+
27
+#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
28
+  #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
29
+#endif
30
+
31
+#define DEFAULT_MACHINE_NAME    "MB Replicator"
32
+#define BOARD_NAME              "Mightyboard"
33
+
34
+#define LARGE_FLASH true
35
+
36
+//
37
+// Servos
38
+//
39
+#define SERVO0_PIN         36 // C1 (1280-EX1)
40
+#define SERVO1_PIN         37 // C0 (1280-EX2)
41
+#define SERVO2_PIN         40 // G1 (1280-EX3)
42
+#define SERVO3_PIN         41 // G0 (1280-EX4)
43
+
44
+//
45
+// Limit Switches
46
+//
47
+#define X_MIN_PIN          49 // L0
48
+#define X_MAX_PIN          48 // L1
49
+#define Y_MIN_PIN          47 // L2
50
+#define Y_MAX_PIN          46 // L3
51
+#define Z_MIN_PIN          43 // L6
52
+#define Z_MAX_PIN          42 // L7
53
+
54
+//
55
+// Z Probe (when not Z_MIN_PIN)
56
+//
57
+#ifndef Z_MIN_PROBE_PIN
58
+  #define Z_MIN_PROBE_PIN  42
59
+#endif
60
+
61
+//
62
+// Steppers
63
+//
64
+#define X_STEP_PIN         55 // F1
65
+#define X_DIR_PIN          54 // F0
66
+#define X_ENABLE_PIN       56 // F2
67
+
68
+#define Y_STEP_PIN         59 // F5
69
+#define Y_DIR_PIN          58 // F4
70
+#define Y_ENABLE_PIN       60 // F6
71
+
72
+#define Z_STEP_PIN         63 // K1
73
+#define Z_DIR_PIN          62 // K0
74
+#define Z_ENABLE_PIN       64 // K2
75
+
76
+#define E0_STEP_PIN        25 // A3
77
+#define E0_DIR_PIN         24 // A2
78
+#define E0_ENABLE_PIN      26 // A4
79
+
80
+#define E1_STEP_PIN        29 // A7
81
+#define E1_DIR_PIN         28 // A6
82
+#define E1_ENABLE_PIN      39 // G2
83
+
84
+//
85
+// I2C Digipots - MCP4018
86
+// Address 5E (2F << 1)
87
+// Set from 0 - 127 with stop bit.
88
+// (Ex. 3F << 1 | 1)
89
+//
90
+#define DIGIPOTS_I2C_SCL    76 // J5
91
+#define DIGIPOTS_I2C_SDA_X  57 // F3
92
+#define DIGIPOTS_I2C_SDA_Y  61 // F7
93
+#define DIGIPOTS_I2C_SDA_Z  65 // K3
94
+#define DIGIPOTS_I2C_SDA_E0 27 // A5
95
+#define DIGIPOTS_I2C_SDA_E1 77 // J6
96
+
97
+//
98
+// Temperature Sensors
99
+//
100
+#define TEMP_BED_PIN       69 // K7
101
+
102
+// SPI for Max6675 or Max31855 Thermocouple
103
+// Uses a separate SPI bus
104
+//
105
+//  3 E5 DO (SO)
106
+//  5 E3 CS1
107
+//  2 E4 CS2
108
+// 78 E2 SCK
109
+//
110
+#define THERMO_SCK_PIN     78 // E2
111
+#define THERMO_DO_PIN       3 // E5
112
+#define THERMO_CS1          5 // E3
113
+#define THERMO_CS2          2 // E4
114
+
115
+//
116
+// Augmentation for auto-assigning plugs
117
+//
118
+// Two thermocouple connectors allows for either
119
+// 2 extruders or 1 extruder and a heated bed.
120
+// With no heated bed, an additional 24V fan is possible.
121
+//
122
+#define MOSFET_A_PIN     6 // H3
123
+#define MOSFET_B_PIN     9 // B5
124
+#define MOSFET_C_PIN    45 // L4
125
+#define MOSFET_D_PIN    44 // L5
126
+
127
+#if HOTENDS > 1
128
+  #if TEMP_SENSOR_BED
129
+    #define IS_EEB
130
+  #else
131
+    #define IS_EEF
132
+  #endif
133
+#elif TEMP_SENSOR_BED
134
+  #define IS_EFB
135
+#else
136
+  #define IS_EFF
137
+#endif
138
+
139
+//
140
+// Heaters / Fans (24V)
141
+//
142
+#define HEATER_0_PIN     MOSFET_A_PIN
143
+
144
+#if ENABLED(IS_EFB)                            // Hotend, Fan, Bed
145
+  #define FAN_PIN        MOSFET_B_PIN
146
+  #define HEATER_BED_PIN MOSFET_C_PIN
147
+#elif ENABLED(IS_EEF)                          // Hotend, Hotend, Fan
148
+  #define HEATER_1_PIN   MOSFET_B_PIN
149
+  #define FAN_PIN        MOSFET_C_PIN
150
+#elif ENABLED(IS_EEB)                          // Hotend, Hotend, Bed
151
+  #define HEATER_1_PIN   MOSFET_B_PIN
152
+  #define HEATER_BED_PIN MOSFET_C_PIN
153
+#elif ENABLED(IS_EFF)                          // Hotend, Fan, Fan
154
+  #define FAN_PIN        MOSFET_B_PIN
155
+  #define FAN1_PIN       MOSFET_C_PIN
156
+#elif ENABLED(IS_SF)                           // Spindle, Fan
157
+  #define FAN_PIN        MOSFET_C_PIN
158
+#endif
159
+
160
+#ifndef FAN_PIN
161
+  #define FAN_PIN MOSFET_D_PIN
162
+#endif
163
+
164
+//
165
+// Extruder Auto Fan Pins
166
+//
167
+#define EXTRUDER_0_AUTO_FAN  7 // H4
168
+#define EXTRUDER_1_AUTO_FAN 12 // B6
169
+
170
+//
171
+// Misc. Functions
172
+//
173
+#define LED_PIN             13 // B7
174
+#define CUTOFF_RESET_PIN    16 // H1
175
+#define CUTOFF_TEST_PIN     17 // H0
176
+
177
+//
178
+// LCD / Controller
179
+//
180
+// Replicator uses a 3-wire SR controller with HD44780
181
+// For now, pretend it's the SAV
182
+//
183
+#define SAV_3DLCD
184
+#define SR_DATA_PIN         34 // C3
185
+#define SR_CLK_PIN          35 // C2
186
+#define SR_STROBE_PIN       33 // C4
187
+
188
+#define BTN_UP              75 // J4
189
+#define BTN_DOWN            73 // J3
190
+#define BTN_LEFT            72 // J2
191
+#define BTN_RIGHT           14 // J1
192
+#define BTN_CENTER          15 // J0
193
+#define BTN_ENC             BTN_CENTER
194
+
195
+#define BEEPER_PIN           4 // G5
196
+
197
+#define STAT_LED_RED        32 // C5
198
+#define STAT_LED_BLUE       31 // C6 (Actually green)
199
+
200
+//
201
+// SD Card
202
+//
203
+#define SDSS                53 // B0
204
+#define SD_DETECT_PIN       30 // C7
205
+

+ 5
- 1
Marlin/ultralcd_impl_HD44780.h Voir le fichier

@@ -161,7 +161,11 @@ extern volatile uint8_t buttons;  //an extended version of the last checked butt
161 161
   #include <LCD.h>
162 162
   #include <LiquidCrystal_SR.h>
163 163
   #define LCD_CLASS LiquidCrystal_SR
164
-  LCD_CLASS lcd(SR_DATA_PIN, SR_CLK_PIN);
164
+  #if defined(SR_STROBE_PIN)
165
+    LCD_CLASS lcd(SR_DATA_PIN, SR_CLK_PIN, SR_STROBE_PIN);
166
+  #else
167
+    LCD_CLASS lcd(SR_DATA_PIN, SR_CLK_PIN);
168
+  #endif
165 169
 #elif ENABLED(LCM1602)
166 170
   #include <Wire.h>
167 171
   #include <LCD.h>

Chargement…
Annuler
Enregistrer