My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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. #define ALLOW_STM32DUINO
  24. #include "env_validate.h"
  25. #if HOTENDS > 2 || E_STEPPERS > 2
  26. #error "STM32F4 VAkE supports up to 2 hotends / E steppers."
  27. #endif
  28. #define DEFAULT_MACHINE_NAME "STM32F446VET6"
  29. #define BOARD_INFO_NAME "STM32F4 VAkE"
  30. //#define I2C_EEPROM
  31. #define MARLIN_EEPROM_SIZE 0x1000 // 4K
  32. //
  33. // Servos
  34. //
  35. //#define SERVO0_PIN PE13
  36. //#define SERVO1_PIN PE14
  37. //
  38. // Limit Switches
  39. //
  40. #define X_STOP_PIN PE10
  41. #define Y_STOP_PIN PE9
  42. #define Z_STOP_PIN PE8
  43. //
  44. // Z Probe (when not Z_MIN_PIN)
  45. //
  46. #ifndef Z_MIN_PROBE_PIN
  47. #define Z_MIN_PROBE_PIN PA4
  48. #endif
  49. //
  50. // Filament runout
  51. //
  52. #define FIL_RUNOUT_PIN PA3
  53. //
  54. // Steppers
  55. //
  56. #define STEPPER_ENABLE_PIN PB2
  57. #define X_STEP_PIN PC6 // X_STEP
  58. #define X_DIR_PIN PC7 // X_DIR
  59. #define X_ENABLE_PIN PB2 //
  60. #ifndef X_CS_PIN
  61. #define X_CS_PIN PC8 // X_CS
  62. #endif
  63. #define Y_STEP_PIN PD9 // Y_STEP
  64. #define Y_DIR_PIN PD10 // Y_DIR
  65. #define Y_ENABLE_PIN PB2 //
  66. #ifndef Y_CS_PIN
  67. #define Y_CS_PIN PD11 // Y_CS
  68. #endif
  69. #define Z_STEP_PIN PE15 // Z_STEP
  70. #define Z_DIR_PIN PB10 // Z_DIR
  71. #define Z_ENABLE_PIN PB2
  72. #ifndef Z_CS_PIN
  73. #define Z_CS_PIN PD8
  74. #endif
  75. #define E0_STEP_PIN PB1
  76. #define E0_DIR_PIN PB13
  77. #define E0_ENABLE_PIN PB2
  78. #ifndef E0_CS_PIN
  79. #define E0_CS_PIN PE11
  80. #endif
  81. #define E1_STEP_PIN PC4
  82. #define E1_DIR_PIN PC5
  83. #define E1_ENABLE_PIN PB2
  84. #ifndef E1_CS_PIN
  85. #define E1_CS_PIN PB0
  86. #endif
  87. #define SD_SCK_PIN PE12 // PA5 // SPI1 for SD card
  88. #define SD_MISO_PIN PE13 // PA6
  89. #define SD_MOSI_PIN PE14 // PA7
  90. // added for SD card : optional or not ???
  91. //#define SD_CHIP_SELECT_PIN SDSS // The default chip select pin for the SD card is SS.
  92. // The following three pins must not be redefined for hardware SPI.
  93. //#define SPI_MOSI_PIN SD_MOSI_PIN // SPI Master Out Slave In pin
  94. //#define SPI_MISO_PIN SD_MISO_PIN // SPI Master In Slave Out pin
  95. //#define SPI_SCK_PIN SD_SCK_PIN // SPI Clock pin
  96. //
  97. // Temperature Sensors (Analog inputs)
  98. //
  99. #define TEMP_0_PIN PC0 // Analog Input
  100. #define TEMP_1_PIN PC1 // Analog Input
  101. #define TEMP_2_PIN PC2 // Analog Input
  102. #define TEMP_3_PIN PC3 // Analog Input
  103. #define TEMP_BED_PIN PC3 // Analog Input
  104. //
  105. // Heaters / Fans
  106. //
  107. #define HEATER_0_PIN PD15
  108. #define HEATER_1_PIN PD14
  109. #define HEATER_BED_PIN PD12
  110. #ifndef FAN_PIN
  111. #define FAN_PIN PD13
  112. #endif
  113. #define FAN1_PIN PB5 // PA0
  114. #define FAN2_PIN PB4 // PA1
  115. #ifndef E0_AUTO_FAN_PIN
  116. #define E0_AUTO_FAN_PIN PD13
  117. #endif
  118. //
  119. // Misc. Functions
  120. //
  121. //#define CASE_LIGHT_PIN_CI PF13
  122. //#define CASE_LIGHT_PIN_DO PF14
  123. //#define NEOPIXEL_PIN PF13
  124. //
  125. // Průša i3 MK2 Multi Material Multiplexer Support
  126. //
  127. #if HAS_PRUSA_MMU1
  128. //#define E_MUX0_PIN PG3
  129. //#define E_MUX1_PIN PG4
  130. #endif
  131. #define LED_PIN PB14 // Alive
  132. #define PS_ON_PIN PE0
  133. #define KILL_PIN PD5
  134. #define POWER_LOSS_PIN PA4 // ?? Power loss / nAC_FAULT
  135. #if ENABLED(SDSUPPORT)
  136. #define SD_DETECT_PIN EXP2_07_PIN
  137. #define SD_SS_PIN PB15 // USD_CS -> CS for onboard SD
  138. #endif
  139. /**
  140. * ------ ------
  141. * PC9 | 1 2 | PB12 ? | 1 2 | ?
  142. * PD7 | 3 4 | PC12 PD6 | 3 4 | ?
  143. * PD1 | 5 6 PD2 PD0 | 5 6 ?
  144. * PD3 | 7 8 | PD4 PB7 | 7 8 | RESET
  145. * GND | 9 10 | 5V GND | 9 10 | 3.3V
  146. * ------ ------
  147. * EXP1 EXP2
  148. */
  149. #define EXP1_01_PIN PC9
  150. #define EXP1_02_PIN PB12
  151. #define EXP1_03_PIN PD7
  152. #define EXP1_04_PIN PC12
  153. #define EXP1_05_PIN PD1
  154. #define EXP1_06_PIN PD2
  155. #define EXP1_07_PIN PD3
  156. #define EXP1_08_PIN PD4
  157. //#define EXP2_01_PIN ?
  158. //#define EXP2_02_PIN ?
  159. #define EXP2_03_PIN PD6
  160. //#define EXP2_04_PIN ?
  161. #define EXP2_05_PIN PD0
  162. //#define EXP2_06_PIN ?
  163. #define EXP2_07_PIN PB7
  164. #define EXP2_08_PIN -1
  165. //
  166. // LCD / Controller
  167. //
  168. #if HAS_WIRED_LCD
  169. #if ENABLED(SDSUPPORT)
  170. #define SDSS PB6 // CS for SD card in LCD
  171. #endif
  172. #define BEEPER_PIN EXP1_01_PIN
  173. #define BTN_EN1 EXP2_03_PIN
  174. #define BTN_EN2 EXP2_05_PIN
  175. #define BTN_ENC EXP1_02_PIN
  176. #define LCD_PINS_ENABLE EXP1_03_PIN
  177. #define LCD_PINS_RS EXP1_04_PIN
  178. #define LCD_PINS_D4 EXP1_05_PIN
  179. #define LCD_PINS_D5 EXP1_06_PIN
  180. #define LCD_PINS_D6 EXP1_07_PIN
  181. #define LCD_PINS_D7 EXP1_08_PIN
  182. #endif
  183. // Alter timing for graphical display
  184. #if IS_U8GLIB_ST7920
  185. #define BOARD_ST7920_DELAY_1 96
  186. #define BOARD_ST7920_DELAY_2 48
  187. #define BOARD_ST7920_DELAY_3 715
  188. #endif