Skip to content

Commit 71e0275

Browse files
✨ Orca 3D Modular Controller (MarlinFirmware#26534)
1 parent 205b0a6 commit 71e0275

File tree

4 files changed

+356
-0
lines changed

4 files changed

+356
-0
lines changed

Marlin/src/core/boards.h

+1
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@
401401
#define BOARD_KEDI_CONTROLLER_V1_2 5069 // EDUTRONICS Kedi Controller V1.2 (STM32F103RC)
402402
#define BOARD_MD_D301 5070 // Mingda D2 DZ301 V1.0 (STM32F103ZE)
403403
#define BOARD_VOXELAB_AQUILA 5071 // Voxelab Aquila V1.0.0/V1.0.1 (GD32F103RC / N32G455RE / STM32F103RE)
404+
#define BOARD_SPRINGER_CONTROLLER 5072 // ORCA 3D SPRINGER Modular Controller (STM32F103VC)
404405

405406
//
406407
// ARM Cortex-M4F

Marlin/src/pins/pins.h

+2
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,8 @@
702702
#include "stm32f1/pins_MD_D301.h" // STM32F1 env:mingda_d301 env:mingda_d301_maple
703703
#elif MB(VOXELAB_AQUILA)
704704
#include "gd32f1/pins_VOXELAB_AQUILA.h" // GD32F1, N32G4, STM32F1 env:GD32F103RC_voxelab_maple env:N32G455RE_voxelab_maple env:STM32F103RE_creality_maple env:STM32F103RE_creality
705+
#elif MB(SPRINGER_CONTROLLER)
706+
#include "stm32f1/pins_ORCA_3D_SPRINGER.h" // STM32F1 env:STM32F103VC_orca3d
705707

706708
//
707709
// ARM Cortex-M4F
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,341 @@
1+
/**
2+
* Marlin 3D Printer Firmware
3+
* Copyright (c) 2023 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+
* ORCA 3D Modular Controller (STM32F103VCT6) board pin assignments
26+
*/
27+
28+
#if NOT_TARGET(__STM32F1__, STM32F1)
29+
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
30+
#endif
31+
32+
#define BOARD_INFO_NAME "ORCA 3D Modular Controller"
33+
34+
// Avoid conflict with TIMER_SERVO when using the STM32 HAL
35+
#define TEMP_TIMER 5
36+
37+
//
38+
// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
39+
//
40+
#define DISABLE_DEBUG
41+
42+
//
43+
// Servos
44+
//
45+
#define SERVO0_PIN PA8 // Enable BLTOUCH
46+
47+
//
48+
// Limit Switches
49+
//
50+
#define X_STOP_PIN PA15
51+
#define Y_STOP_PIN PA14
52+
#define Z_STOP_PIN PA12
53+
54+
//
55+
// Steppers
56+
//
57+
#define X_ENABLE_PIN PC15
58+
#define X_STEP_PIN PE5
59+
#define X_DIR_PIN PE6
60+
#ifndef X_CS_PIN
61+
#define X_CS_PIN PE3
62+
#endif
63+
64+
#define Y_ENABLE_PIN PC15
65+
#define Y_STEP_PIN PC14
66+
#define Y_DIR_PIN PC13
67+
#ifndef Y_CS_PIN
68+
#define Y_CS_PIN PE4
69+
#endif
70+
71+
#define Z_ENABLE_PIN PB4
72+
#define Z_STEP_PIN PB5
73+
#define Z_DIR_PIN PB6
74+
#ifndef Z_CS_PIN
75+
#define Z_CS_PIN PB3
76+
#endif
77+
78+
#define E0_ENABLE_PIN PE2
79+
#define E0_STEP_PIN PE1
80+
#define E0_DIR_PIN PE0
81+
#ifndef E0_CS_PIN
82+
#define E0_CS_PIN PB7
83+
#endif
84+
85+
#define E1_ENABLE_PIN PB11
86+
#define E1_STEP_PIN PC7
87+
#define E1_DIR_PIN PC6
88+
#ifndef E1_CS_PIN
89+
#define E1_CS_PIN PD15
90+
#endif
91+
92+
#define E2_ENABLE_PIN PD7
93+
#define E2_STEP_PIN PD6
94+
#define E2_DIR_PIN PD5
95+
#ifndef E2_CS_PIN
96+
#define E2_CS_PIN PD4
97+
#endif
98+
99+
#define E3_ENABLE_PIN PD14
100+
#define E3_STEP_PIN PD13
101+
#define E3_DIR_PIN PC5
102+
#ifndef E3_CS_PIN
103+
#define E3_CS_PIN PD11
104+
#endif
105+
106+
#define E4_ENABLE_PIN PD3
107+
#define E4_STEP_PIN PE14
108+
#define E4_DIR_PIN PD9
109+
#ifndef E4_CS_PIN
110+
#define E4_CS_PIN PD8
111+
#endif
112+
113+
//
114+
// SPI pins for TMC2130 stepper drivers
115+
//
116+
#ifndef TMC_SPI_MOSI
117+
#define TMC_SPI_MOSI PB15
118+
#endif
119+
#ifndef TMC_SPI_MISO
120+
#define TMC_SPI_MISO PB14
121+
#endif
122+
#ifndef TMC_SPI_SCK
123+
#define TMC_SPI_SCK PB13
124+
#endif
125+
126+
#if HAS_TMC_UART
127+
/**
128+
* TMC2208/TMC2209 stepper drivers
129+
*
130+
* Hardware serial communication ports.
131+
* If undefined software serial is used according to the pins below
132+
*/
133+
//#define X_HARDWARE_SERIAL MSerial1
134+
//#define Y_HARDWARE_SERIAL MSerial1
135+
//#define Z_HARDWARE_SERIAL MSerial1
136+
//#define E0_HARDWARE_SERIAL MSerial1
137+
//#define E1_HARDWARE_SERIAL MSerial1
138+
139+
#define X_SERIAL_TX_PIN PE3
140+
#define X_SERIAL_RX_PIN PE3
141+
142+
#define Y_SERIAL_TX_PIN PE4
143+
#define Y_SERIAL_RX_PIN PE4
144+
145+
#define Z_SERIAL_TX_PIN PB3
146+
#define Z_SERIAL_RX_PIN PB3
147+
148+
#define E0_SERIAL_TX_PIN PB7
149+
#define E0_SERIAL_RX_PIN PB7
150+
151+
#define E1_SERIAL_TX_PIN PD15
152+
#define E1_SERIAL_RX_PIN PD15
153+
154+
#define E2_SERIAL_TX_PIN PD11
155+
#define E2_SERIAL_RX_PIN PD11
156+
157+
#define E3_SERIAL_TX_PIN PD8
158+
#define E3_SERIAL_RX_PIN PD8
159+
160+
// Reduce baud rate to improve software serial reliability
161+
#ifndef TMC_BAUD_RATE
162+
#define TMC_BAUD_RATE 19200
163+
#endif
164+
165+
#endif // HAS_TMC_UART
166+
167+
//
168+
// Temperature Sensors
169+
//
170+
#define TEMP_0_PIN PC1 // TH1
171+
#define TEMP_1_PIN PC2 // TH2
172+
#define TEMP_2_PIN PC3 // TH2
173+
#define TEMP_3_PIN PC4 // TH2
174+
#define TEMP_BED_PIN PC0 // TB1
175+
176+
//
177+
// Heaters / Fans
178+
//
179+
#define HEATER_0_PIN PB1 // HEATER1
180+
#define HEATER_1_PIN PB2 // HEATER2
181+
#define HEATER_2_PIN PB10 // HEATER2
182+
#define HEATER_3_PIN PB12 // HEATER2
183+
#define HEATER_BED_PIN PB0 // HOT BED
184+
185+
#define FAN0_PIN PA0 // FAN
186+
#define FAN1_PIN PA1 // FAN
187+
#define FAN2_PIN PA2 // FAN
188+
#define FAN3_PIN PA3 // FAN
189+
190+
//
191+
// LCD / Controller
192+
//
193+
194+
/**
195+
* Note: ORCA 3D Modular Controller uses various TFT controllers.
196+
* - For TFT displays use UART0
197+
* - For 12864 displays use the expansion headers
198+
*/
199+
200+
/** ------ ------
201+
* -- | 1 2 | PE10 (BTN_ENC) (MISO) PA6 | 1 2 | PA5 (SCK)
202+
* (LCD_EN) PE11 | 3 4 | PD10 (LCD_RS) (BTN_EN1) PE8 | 3 4 | PA4 (SD_SS)
203+
* (LCD_D4) PE12 | 5 6 | PE13 (LCD_D5) (BTN_EN2) PE9 | 5 6 | PA7 (MOSI)
204+
* (LCD_D6) PE15 | 7 8 | PE7 (LCD_D7) (SD_DETECT) PD12 | 7 8 | RESET
205+
* GND | 9 10 | 5V GND | 9 10 | --
206+
* ------ ------
207+
* EXP1 EXP2
208+
*/
209+
#define EXP1_01_PIN -1 // No BEEPER
210+
#define EXP1_02_PIN PE10 // ENC
211+
#define EXP1_03_PIN PE11 // LCD_EN
212+
#define EXP1_04_PIN PD10 // LCD_RS
213+
#define EXP1_05_PIN PE12 // LCD_D4
214+
#define EXP1_06_PIN PE13 // LCD_D5
215+
#define EXP1_07_PIN PE15 // LCD_D6
216+
#define EXP1_08_PIN PE7 // LCD_D7
217+
218+
#define EXP2_01_PIN PA6 // MISO
219+
#define EXP2_02_PIN PA5 // SCK
220+
#define EXP2_03_PIN PE8 // EN1
221+
#define EXP2_04_PIN PA4 // SD_SS
222+
#define EXP2_05_PIN PE9 // EN2
223+
#define EXP2_06_PIN PA7 // MOSI
224+
#define EXP2_07_PIN PD12 // SD_DET
225+
#define EXP2_08_PIN -1 // RESET
226+
227+
//
228+
// SD Card
229+
//
230+
#ifndef SDCARD_CONNECTION
231+
#define SDCARD_CONNECTION ONBOARD
232+
#endif
233+
234+
#if SD_CONNECTION_IS(LCD)
235+
#define SPI_DEVICE 1
236+
#define SD_DETECT_PIN EXP2_07_PIN
237+
#define SD_SCK_PIN EXP2_02_PIN
238+
#define SD_MISO_PIN EXP2_01_PIN
239+
#define SD_MOSI_PIN EXP2_06_PIN
240+
#define SD_SS_PIN EXP2_04_PIN
241+
#elif SD_CONNECTION_IS(ONBOARD)
242+
#define SD_DETECT_PIN PA3
243+
#define SD_SCK_PIN PA5
244+
#define SD_MISO_PIN PA6
245+
#define SD_MOSI_PIN PA7
246+
#define SD_SS_PIN PA4
247+
#endif
248+
#define ONBOARD_SPI_DEVICE 1 // SPI1
249+
#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
250+
251+
//
252+
// LCD / Controller
253+
//
254+
#if HAS_WIRED_LCD
255+
#define BEEPER_PIN EXP1_01_PIN // NC
256+
#define BTN_ENC EXP1_02_PIN
257+
258+
#if ENABLED(CR10_STOCKDISPLAY)
259+
#define LCD_PINS_RS EXP1_07_PIN
260+
261+
#define BTN_EN1 EXP1_03_PIN
262+
#define BTN_EN2 EXP1_05_PIN
263+
264+
#define LCD_PINS_EN EXP1_08_PIN
265+
#define LCD_PINS_D4 EXP1_06_PIN
266+
267+
#elif IS_TFTGLCD_PANEL
268+
269+
#undef BEEPER_PIN
270+
#undef BTN_ENC
271+
272+
#if ENABLED(TFTGLCD_PANEL_SPI)
273+
#define TFTGLCD_CS EXP2_03_PIN
274+
#endif
275+
276+
#define SD_DETECT_PIN EXP2_07_PIN
277+
278+
#else
279+
280+
#define LCD_PINS_RS EXP1_04_PIN
281+
282+
#define BTN_EN1 EXP2_03_PIN
283+
#define BTN_EN2 EXP2_05_PIN
284+
285+
#define LCD_PINS_EN EXP1_03_PIN
286+
287+
#if ENABLED(FYSETC_MINI_12864)
288+
289+
#define LCD_BACKLIGHT_PIN -1
290+
#define LCD_RESET_PIN EXP1_05_PIN
291+
#define DOGLCD_A0 EXP1_04_PIN
292+
#define DOGLCD_CS EXP1_03_PIN
293+
#define DOGLCD_SCK EXP2_02_PIN
294+
#define DOGLCD_MOSI EXP2_06_PIN
295+
296+
#define FORCE_SOFT_SPI // SPI MODE3
297+
298+
#define LED_PIN EXP1_06_PIN // red pwm
299+
//#define LED_PIN EXP1_07_PIN // green
300+
//#define LED_PIN EXP1_08_PIN // blue
301+
302+
//#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
303+
// #ifndef RGB_LED_R_PIN
304+
// #define RGB_LED_R_PIN EXP1_06_PIN
305+
// #endif
306+
// #ifndef RGB_LED_G_PIN
307+
// #define RGB_LED_G_PIN EXP1_07_PIN
308+
// #endif
309+
// #ifndef RGB_LED_B_PIN
310+
// #define RGB_LED_B_PIN EXP1_08_PIN
311+
// #endif
312+
//#elif ENABLED(FYSETC_MINI_12864_2_1)
313+
// #define NEOPIXEL_PIN EXP1_06_PIN
314+
//#endif
315+
316+
#else // !FYSETC_MINI_12864
317+
318+
#define LCD_PINS_D4 EXP1_05_PIN
319+
#if IS_ULTIPANEL
320+
#define LCD_PINS_D5 EXP1_06_PIN
321+
#define LCD_PINS_D6 EXP1_07_PIN
322+
#define LCD_PINS_D7 EXP1_08_PIN
323+
324+
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
325+
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
326+
#endif
327+
328+
#endif
329+
330+
#endif // !FYSETC_MINI_12864
331+
332+
#endif
333+
334+
#endif // HAS_WIRED_LCD
335+
336+
// Alter timing for graphical display
337+
#if IS_U8GLIB_ST7920
338+
#define BOARD_ST7920_DELAY_1 125
339+
#define BOARD_ST7920_DELAY_2 125
340+
#define BOARD_ST7920_DELAY_3 125
341+
#endif

ini/stm32f1.ini

+12
Original file line numberDiff line numberDiff line change
@@ -493,3 +493,15 @@ board_build.variant = MARLIN_F103Zx
493493
board_build.offset = 0x7000
494494
board_upload.offset_address = 0x08007000
495495
build_flags = ${stm32_variant.build_flags} -DSTM32F1xx
496+
497+
#
498+
# ORCA 3D SPRINGER Modular Controller (STM32F103VCT6)
499+
#
500+
[env:STM32F103VC_orca3d]
501+
extends = stm32_variant
502+
board = genericSTM32F103VC
503+
board_build.variant = MARLIN_F103Vx
504+
build_flags = ${stm32_variant.build_flags} -DDEBUG_LEVEL=0
505+
monitor_speed = 115200
506+
board_build.offset = 0x8000
507+
board_upload.offset_address = 0x08008000

0 commit comments

Comments
 (0)