Browse Source

✨ BOARD_CREALITY_V24S1_301 (#23620)

Co-Authored-By: Miguel Risco-Castillo <mriscoc@users.noreply.github.com>
Scott Lahteine 2 years ago
parent
commit
91c7db027f
No account linked to committer's email address

+ 11
- 10
Marlin/src/core/boards.h View File

@@ -349,16 +349,17 @@
349 349
 #define BOARD_CREALITY_V452           4049  // Creality v4.5.2 (STM32F103RE)
350 350
 #define BOARD_CREALITY_V453           4050  // Creality v4.5.3 (STM32F103RE)
351 351
 #define BOARD_CREALITY_V24S1          4051  // Creality v2.4.S1 (STM32F103RE) v101 as found in the Ender 7
352
-#define BOARD_TRIGORILLA_PRO          4052  // Trigorilla Pro (STM32F103ZE)
353
-#define BOARD_FLY_MINI                4053  // FLYmaker FLY MINI (STM32F103RC)
354
-#define BOARD_FLSUN_HISPEED           4054  // FLSUN HiSpeedV1 (STM32F103VE)
355
-#define BOARD_BEAST                   4055  // STM32F103RE Libmaple-based controller
356
-#define BOARD_MINGDA_MPX_ARM_MINI     4056  // STM32F103ZE Mingda MD-16
357
-#define BOARD_GTM32_PRO_VD            4057  // STM32F103VE controller
358
-#define BOARD_ZONESTAR_ZM3E2          4058  // Zonestar ZM3E2    (STM32F103RC)
359
-#define BOARD_ZONESTAR_ZM3E4          4059  // Zonestar ZM3E4 V1 (STM32F103VC)
360
-#define BOARD_ZONESTAR_ZM3E4V2        4060  // Zonestar ZM3E4 V2 (STM32F103VC)
361
-#define BOARD_ERYONE_ERY32_MINI       4061  // Eryone Ery32 mini (STM32F103VE)
352
+#define BOARD_CREALITY_V24S1_301      4052  // Creality v2.4.S1_301 (STM32F103RCT) as found in the Ender 3 S1
353
+#define BOARD_TRIGORILLA_PRO          4053  // Trigorilla Pro (STM32F103ZE)
354
+#define BOARD_FLY_MINI                4054  // FLYmaker FLY MINI (STM32F103RC)
355
+#define BOARD_FLSUN_HISPEED           4055  // FLSUN HiSpeedV1 (STM32F103VE)
356
+#define BOARD_BEAST                   4056  // STM32F103RE Libmaple-based controller
357
+#define BOARD_MINGDA_MPX_ARM_MINI     4057  // STM32F103ZE Mingda MD-16
358
+#define BOARD_GTM32_PRO_VD            4058  // STM32F103VE controller
359
+#define BOARD_ZONESTAR_ZM3E2          4059  // Zonestar ZM3E2    (STM32F103RC)
360
+#define BOARD_ZONESTAR_ZM3E4          4060  // Zonestar ZM3E4 V1 (STM32F103VC)
361
+#define BOARD_ZONESTAR_ZM3E4V2        4061  // Zonestar ZM3E4 V2 (STM32F103VC)
362
+#define BOARD_ERYONE_ERY32_MINI       4062  // Eryone Ery32 mini (STM32F103VE)
362 363
 
363 364
 //
364 365
 // ARM Cortex-M4F

+ 2
- 0
Marlin/src/inc/Conditionals_LCD.h View File

@@ -511,6 +511,8 @@
511 511
   #ifndef LCD_SERIAL_PORT
512 512
     #if MB(BTT_SKR_MINI_E3_V1_0, BTT_SKR_MINI_E3_V1_2, BTT_SKR_MINI_E3_V2_0, BTT_SKR_MINI_E3_V3_0, BTT_SKR_E3_TURBO)
513 513
       #define LCD_SERIAL_PORT 1
514
+    #elif MB(CREALITY_V24S1_301)
515
+      #define LCD_SERIAL_PORT 2 // Creality Ender3S1 board
514 516
     #else
515 517
       #define LCD_SERIAL_PORT 3 // Creality 4.x board
516 518
     #endif

+ 2
- 0
Marlin/src/pins/pins.h View File

@@ -573,6 +573,8 @@
573 573
   #include "stm32f1/pins_CREALITY_V453.h"       // STM32F1                                env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
574 574
 #elif MB(CREALITY_V24S1)
575 575
   #include "stm32f1/pins_CREALITY_V24S1.h"      // STM32F1                                env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
576
+#elif MB(CREALITY_V24S1_301)
577
+  #include "stm32f1/pins_CREALITY_V24S1_301.h"  // STM32F1                                env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
576 578
 #elif MB(TRIGORILLA_PRO)
577 579
   #include "stm32f1/pins_TRIGORILLA_PRO.h"      // STM32F1                                env:trigorilla_pro env:trigorilla_pro_maple
578 580
 #elif MB(FLY_MINI)

+ 66
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V24S1_301.h View File

@@ -0,0 +1,66 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2022 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 <https://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+/**
25
+ * Creality V24S1_301 (STM32F103RCT) board pin assignments as found on Ender 3 S1
26
+ */
27
+
28
+#include "env_validate.h"
29
+
30
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
31
+  #error "Creality V4 only supports one hotend / E-stepper. Comment out this line to continue."
32
+#endif
33
+
34
+#define BOARD_INFO_NAME      "Creality V24S1-301"
35
+#define DEFAULT_MACHINE_NAME "Ender 3 S1"
36
+
37
+//
38
+// Servos
39
+//
40
+#if !defined(SERVO0_PIN) && !defined(HAS_PIN_27_BOARD)
41
+  #define SERVO0_PIN                        PC13  // BLTouch OUT
42
+#endif
43
+
44
+//
45
+// Limit Switches
46
+//
47
+#define Z_STOP_PIN                          PC14
48
+
49
+#ifndef Z_MIN_PROBE_PIN
50
+  #define Z_MIN_PROBE_PIN                   PC14  // BLTouch IN
51
+#endif
52
+
53
+//
54
+// Filament Runout Sensor
55
+//
56
+#ifndef FIL_RUNOUT_PIN
57
+  #define FIL_RUNOUT_PIN                    PC15  // "Pulled-high"
58
+#endif
59
+
60
+//
61
+// Heaters / Fans
62
+//
63
+#define HEATER_BED_PIN                      PA7   // HOT BED
64
+#define FAN1_PIN                            PC0   // extruder fan
65
+
66
+#include "pins_CREALITY_V4.h"

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

@@ -72,7 +72,9 @@
72 72
 //
73 73
 #define X_STOP_PIN                          PA5
74 74
 #define Y_STOP_PIN                          PA6
75
-#define Z_STOP_PIN                          PA7
75
+#ifndef Z_STOP_PIN
76
+  #define Z_STOP_PIN                        PA7
77
+#endif
76 78
 
77 79
 #ifndef Z_MIN_PROBE_PIN
78 80
   #define Z_MIN_PROBE_PIN                   PB1   // BLTouch IN

Loading…
Cancel
Save