Browse Source

🧑‍💻 Update MightyBoard FET pins (#23728)

Simon Pilepich 3 years ago
parent
commit
5439da6775
No account linked to committer's email address
1 changed files with 21 additions and 36 deletions
  1. 21
    36
      Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h

+ 21
- 36
Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h View File

@@ -144,56 +144,41 @@
144 144
 //#define TEMP_1_MOSI_PIN        TEMP_0_MOSI_PIN
145 145
 
146 146
 //
147
-// Augmentation for auto-assigning plugs
148
-//
149
-// Two thermocouple connectors allows for either
150
-// 2 extruders or 1 extruder and a heated bed.
151
-// With no heated bed, an additional 24V fan is possible.
147
+// FET Pin Mapping - FET 1 is closest to the input power connector
152 148
 //
153 149
 
154
-#define MOSFET_A_PIN                           6  // H3 EX1_HEAT_PIN
155
-#define MOSFET_B_PIN                          11  // B5 EX2_HEAT_PIN
156
-#define MOSFET_C_PIN                          45  // L4 HBP_PIN
157
-#define MOSFET_D_PIN                          44  // L5 EXTRA_FET_PIN
150
+#define MOSFET_1_PIN                           6  // Plug EX1 Pin 1-2 -> PH3 #15 -> Logical 06
151
+#define MOSFET_2_PIN                           7  // Plug EX1 Pin 3-4 -> PH4 #16 -> Logical 07
152
+#define MOSFET_3_PIN                          12  // Plug EX2 1-2 -> PB5 #25 -> Logical 12
153
+#define MOSFET_4_PIN                          11  // Plug EX2 3-4 -> PB6 #24 -> Logical 11
154
+#define MOSFET_5_PIN                          45  // Plug HBD 1-2 -> PL4 #39 -> Logical 45
155
+#define MOSFET_6_PIN                          13  // Plug Extra 1-2 -> PL5 #40 -> Logical 44 (FET not soldered in all boards)
158 156
 
159 157
 //
160 158
 // Heaters / Fans (24V)
161 159
 //
162
-#define HEATER_0_PIN                MOSFET_A_PIN
163
-
164
-#if FET_ORDER_EFB                                 // Hotend, Fan, Bed
165
-  #define HEATER_BED_PIN            MOSFET_C_PIN
166
-#elif FET_ORDER_EEF                               // Hotend, Hotend, Fan
167
-  #define HEATER_1_PIN              MOSFET_B_PIN
168
-#elif FET_ORDER_EEB                               // Hotend, Hotend, Bed
169
-  #define HEATER_1_PIN              MOSFET_B_PIN
170
-  #define HEATER_BED_PIN            MOSFET_C_PIN
171
-#elif FET_ORDER_EFF                               // Hotend, Fan, Fan
172
-  #define FAN1_PIN                  MOSFET_C_PIN
173
-#endif
174 160
 
175
-#ifndef FAN_PIN
176
-  #if EITHER(FET_ORDER_EFB, FET_ORDER_EFF)        // Hotend, Fan, Bed or Hotend, Fan, Fan
177
-    #define FAN_PIN                 MOSFET_B_PIN
178
-  #elif EITHER(FET_ORDER_EEF, FET_ORDER_SF)       // Hotend, Hotend, Fan or Spindle, Fan
179
-    #define FAN_PIN                 MOSFET_C_PIN
180
-  #else
181
-    #define FAN_PIN                 MOSFET_D_PIN
182
-  #endif
183
-#endif
161
+#define HEATER_0_PIN                MOSFET_1_PIN // EX1
162
+#define HEATER_1_PIN                MOSFET_3_PIN // EX2
163
+#define HEATER_BED_PIN              MOSFET_5_PIN // HBP
184 164
 
185
-#ifndef FAN1_PIN
186
-  #define FAN1_PIN                             7  // H4 EX1_FAN_PIN
165
+// EX1 FAN (Automatic Fans are disabled by default in Configuration_adv.h - comment that out for auto fans)
166
+#ifndef E0_AUTO_FAN_PIN
167
+  #define E0_AUTO_FAN_PIN           MOSFET_2_PIN
168
+#else
169
+  #define FAN_PIN                   MOSFET_2_PIN
187 170
 #endif
188
-
189
-#ifndef CONTROLLER_FAN_PIN
190
-  #define CONTROLLER_FAN_PIN                  12  // B6 EX2_FAN_PIN
171
+// EX2 FAN (Automatic Fans are disabled by default in Configuration_adv.h - comment that out for auto fans)
172
+#ifndef E1_AUTO_FAN_PIN
173
+  #define E1_AUTO_FAN_PIN           MOSFET_4_PIN
174
+#else
175
+  #define FAN1_PIN                  MOSFET_4_PIN
191 176
 #endif
192 177
 
193 178
 //
194 179
 // Misc. Functions
195 180
 //
196
-#define LED_PIN                               13  // B7
181
+#define LED_PIN                     MOSFET_6_PIN  // B7
197 182
 #define CUTOFF_RESET_PIN                      16  // H1
198 183
 #define CUTOFF_TEST_PIN                       17  // H0
199 184
 #define CUTOFF_SR_CHECK_PIN                   70  // G4 (TOSC1)

Loading…
Cancel
Save