瀏覽代碼

Add MRR_ESPA/_ESPE (ESP32) boards (#16238)

Luc 5 年之前
父節點
當前提交
a3d88aebed
共有 4 個檔案被更改,包括 261 行新增0 行删除
  1. 2
    0
      Marlin/src/core/boards.h
  2. 101
    0
      Marlin/src/pins/esp32/pins_MRR_ESPA.h
  3. 154
    0
      Marlin/src/pins/esp32/pins_MRR_ESPE.h
  4. 4
    0
      Marlin/src/pins/pins.h

+ 2
- 0
Marlin/src/core/boards.h 查看文件

322
 // Espressif ESP32 WiFi
322
 // Espressif ESP32 WiFi
323
 //
323
 //
324
 #define BOARD_ESPRESSIF_ESP32         6000
324
 #define BOARD_ESPRESSIF_ESP32         6000
325
+#define BOARD_MRR_ESPA                6001
326
+#define BOARD_MRR_ESPE                6002
325
 
327
 
326
 //
328
 //
327
 // Simulations
329
 // Simulations

+ 101
- 0
Marlin/src/pins/esp32/pins_MRR_ESPA.h 查看文件

1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2019 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
+#pragma once
23
+
24
+/**
25
+ * MRR ESPA pin assignments
26
+ * MRR ESPA is a 3D printer control board based on the ESP32 microcontroller.
27
+ * Supports 4 stepper drivers, heated bed, single hotend.
28
+ */
29
+
30
+#ifndef ARDUINO_ARCH_ESP32
31
+  #error "Oops! Select an ESP32 board in 'Tools > Board.'"
32
+#elif EXTRUDERS > 1 || E_STEPPERS > 1
33
+  #error "MRR ESPA only supports one E Stepper. Comment out this line to continue."
34
+#elif HOTENDS > 1
35
+  #error "MRR ESPA currently supports only one hotend. Comment out this line to continue."
36
+#endif
37
+
38
+#define BOARD_INFO_NAME       "MRR ESPA"
39
+#define BOARD_WEBSITE_URL     "github.com/maplerainresearch/MRR_ESPA"
40
+#define DEFAULT_MACHINE_NAME  BOARD_INFO_NAME
41
+
42
+//
43
+// Disable I2S stepper stream
44
+//
45
+#ifdef I2S_STEPPER_STREAM
46
+  #undef I2S_STEPPER_STREAM
47
+#endif
48
+#define I2S_WS              -1
49
+#define I2S_BCK             -1
50
+#define I2S_DATA            -1
51
+
52
+//
53
+// Limit Switches
54
+//
55
+#define X_STOP_PIN         34
56
+#define Y_STOP_PIN         35
57
+#define Z_STOP_PIN         15
58
+
59
+//
60
+// Steppers
61
+//
62
+#define X_STEP_PIN         27
63
+#define X_DIR_PIN          26
64
+#define X_ENABLE_PIN       25
65
+//#define X_CS_PIN           21
66
+
67
+#define Y_STEP_PIN         33
68
+#define Y_DIR_PIN          32
69
+#define Y_ENABLE_PIN       X_ENABLE_PIN
70
+//#define Y_CS_PIN           22
71
+
72
+#define Z_STEP_PIN         14
73
+#define Z_DIR_PIN          12
74
+#define Z_ENABLE_PIN       X_ENABLE_PIN
75
+//#define Z_CS_PIN            5 // SS_PIN
76
+
77
+#define E0_STEP_PIN        16
78
+#define E0_DIR_PIN         17
79
+#define E0_ENABLE_PIN      X_ENABLE_PIN
80
+//#define E0_CS_PIN          21
81
+
82
+//
83
+// Temperature Sensors
84
+//
85
+#define TEMP_0_PIN         36   // Analog Input
86
+#define TEMP_BED_PIN       39   // Analog Input
87
+
88
+//
89
+// Heaters / Fans
90
+//
91
+#define HEATER_0_PIN        2
92
+#define FAN_PIN            13
93
+#define HEATER_BED_PIN      4
94
+
95
+//
96
+// MicroSD card
97
+//
98
+#define MOSI_PIN           23
99
+#define MISO_PIN           19
100
+#define SCK_PIN            18
101
+#define SDSS                5

+ 154
- 0
Marlin/src/pins/esp32/pins_MRR_ESPE.h 查看文件

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
+#pragma once
23
+
24
+/**
25
+ * MRR ESPE pin assignments
26
+ * MRR ESPE is a 3D printer control board based on the ESP32 microcontroller.
27
+ * Supports 5 stepper drivers (using I2S stepper stream), heated bed,
28
+ * single hotend, and LCD controller.
29
+ */
30
+
31
+#ifndef ARDUINO_ARCH_ESP32
32
+  #error "Oops! Select an ESP32 board in 'Tools > Board.'"
33
+#elif EXTRUDERS > 2 || E_STEPPERS > 2
34
+  #error "MRR ESPE only supports two E Steppers. Comment out this line to continue."
35
+#elif HOTENDS > 1
36
+  #error "MRR ESPE currently supports only one hotend. Comment out this line to continue."
37
+#endif
38
+
39
+#define BOARD_INFO_NAME      "MRR ESPE"
40
+#define BOARD_WEBSITE_URL    "github.com/maplerainresearch/MRR_ESPE"
41
+#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
42
+
43
+//
44
+// Limit Switches
45
+//
46
+#define X_STOP_PIN         35
47
+#define Y_STOP_PIN         32
48
+#define Z_STOP_PIN         33
49
+
50
+//
51
+// Enable I2S stepper stream
52
+//
53
+#undef I2S_STEPPER_STREAM
54
+#define I2S_STEPPER_STREAM
55
+
56
+#undef LIN_ADVANCE  // Currently, I2S stream does not work with linear advance
57
+
58
+#define I2S_WS             26
59
+#define I2S_BCK            25
60
+#define I2S_DATA           27
61
+
62
+//
63
+// Steppers
64
+//
65
+#define X_STEP_PIN        129
66
+#define X_DIR_PIN         130
67
+#define X_ENABLE_PIN      128
68
+//#define X_CS_PIN           21
69
+
70
+#define Y_STEP_PIN        132
71
+#define Y_DIR_PIN         133
72
+#define Y_ENABLE_PIN      131
73
+//#define Y_CS_PIN           22
74
+
75
+#define Z_STEP_PIN        135
76
+#define Z_DIR_PIN         136
77
+#define Z_ENABLE_PIN      134
78
+//#define Z_CS_PIN            5 // SS_PIN
79
+
80
+#define E0_STEP_PIN       138
81
+#define E0_DIR_PIN        139
82
+#define E0_ENABLE_PIN     137
83
+//#define E0_CS_PIN          21
84
+
85
+#define E1_STEP_PIN       141
86
+#define E1_DIR_PIN        142
87
+#define E1_ENABLE_PIN     140
88
+//#define E1_CS_PIN          22
89
+
90
+#define Z2_STEP_PIN       141
91
+#define Z2_DIR_PIN        142
92
+#define Z2_ENABLE_PIN     140
93
+//#define Z2_CS_PIN            5
94
+
95
+//
96
+// Temperature Sensors
97
+//
98
+#define TEMP_0_PIN         36   // Analog Input
99
+#define TEMP_1_PIN         34   // Analog Input
100
+#define TEMP_BED_PIN       39   // Analog Input
101
+
102
+//
103
+// Heaters / Fans
104
+//
105
+#define HEATER_0_PIN      145 // 2
106
+#define FAN_PIN           146 // 15
107
+#define HEATER_BED_PIN    144 // 4
108
+
109
+#define CONTROLLER_FAN_PIN 147
110
+//#define E0_AUTO_FAN_PIN 148 // need to update Configuration_adv.h @section extruder 
111
+//#define E1_AUTO_FAN_PIN 149 // need to update Configuration_adv.h @section extruder 
112
+#define FAN1_PIN 149
113
+
114
+//
115
+// MicroSD card
116
+//
117
+#define MOSI_PIN           23
118
+#define MISO_PIN           19
119
+#define SCK_PIN            18
120
+#define SDSS                5
121
+
122
+//////////////////////////
123
+// LCDs and Controllers //
124
+//////////////////////////
125
+
126
+#if HAS_GRAPHICAL_LCD
127
+
128
+  #define LCD_PINS_RS        13
129
+  #define LCD_PINS_ENABLE    17
130
+  #define LCD_PINS_D4        16
131
+
132
+  #if ENABLED(CR10_STOCKDISPLAY)
133
+
134
+    #define BEEPER_PIN      151
135
+
136
+  #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
137
+
138
+    #define BEEPER_PIN      152
139
+
140
+    //#define LCD_PINS_D5     150
141
+    //#define LCD_PINS_D6     151
142
+    //#define LCD_PINS_D7     153
143
+
144
+  #else
145
+
146
+    #error "Only CR10_STOCKDISPLAY and REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER are currently supported. Comment out this line to continue."
147
+
148
+  #endif
149
+
150
+  #define BTN_EN1             0
151
+  #define BTN_EN2            12
152
+  #define BTN_ENC            14
153
+
154
+#endif // HAS_GRAPHICAL_LCD

+ 4
- 0
Marlin/src/pins/pins.h 查看文件

553
 #elif MB(ESPRESSIF_ESP32)
553
 #elif MB(ESPRESSIF_ESP32)
554
 
554
 
555
   #include "esp32/pins_ESP32.h"                 // ESP32                                  env:esp32
555
   #include "esp32/pins_ESP32.h"                 // ESP32                                  env:esp32
556
+#elif MB(MRR_ESPA)
557
+  #include "esp32/pins_MRR_ESPA.h"              // ESP32                                  env:esp32
558
+#elif MB(MRR_ESPE)
559
+  #include "esp32/pins_MRR_ESPE.h"              // ESP32                                  env:esp32
556
 
560
 
557
 //
561
 //
558
 // Linux Native Debug board
562
 // Linux Native Debug board

Loading…
取消
儲存