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.

pins_ERYONE_ERY32_MINI.h 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2021 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. * Eryone Ery32 mini (STM32F103VET6) board pin assignments
  25. */
  26. #include "env_validate.h"
  27. #if HOTENDS > 2 || E_STEPPERS > 2
  28. #error "Eryone Ery32 mini supports up to 2 hotends / E-steppers. Comment out this line to continue."
  29. #endif
  30. #ifndef BOARD_INFO_NAME
  31. #define BOARD_INFO_NAME "ERYONE Ery32 mini"
  32. #endif
  33. //#define DISABLE_DEBUG
  34. #define DISABLE_JTAG
  35. //#define ENABLE_SPI3
  36. #if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
  37. #define FLASH_EEPROM_EMULATION
  38. #define EEPROM_PAGE_SIZE (0x800U) // 2KB
  39. #define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
  40. #define MARLIN_EEPROM_SIZE (EEPROM_PAGE_SIZE)
  41. #endif
  42. //
  43. // Servos
  44. //
  45. #define SERVO0_PIN PA12
  46. //
  47. // Limit Switches
  48. //
  49. #define X_STOP_PIN PD8
  50. #define Y_STOP_PIN PD15
  51. #define Z_MIN_PIN PA11
  52. //#define Z_MAX_PIN PB1
  53. //
  54. // Steppers
  55. //
  56. #define X_STEP_PIN PB15
  57. #define X_DIR_PIN PB14
  58. #define X_ENABLE_PIN PD10
  59. #define Y_STEP_PIN PD14
  60. #define Y_DIR_PIN PD13
  61. #define Y_ENABLE_PIN PC6
  62. #define Z_STEP_PIN PC8
  63. #define Z_DIR_PIN PC7
  64. #define Z_ENABLE_PIN PA8
  65. #define E0_STEP_PIN PE13
  66. #define E0_DIR_PIN PE14
  67. #define E0_ENABLE_PIN PB13
  68. //#define E1_STEP_PIN PD13
  69. //#define E1_DIR_PIN PD12
  70. //#define E1_ENABLE_PIN PC6
  71. //
  72. // Heaters 0,1 / Fans / Bed
  73. //
  74. #define HEATER_0_PIN PD11
  75. #if ENABLED(FET_ORDER_EFB) // Hotend, Fan, Bed
  76. #define HEATER_BED_PIN PD12
  77. #elif ENABLED(FET_ORDER_EEF) // Hotend, Hotend, Fan
  78. #define HEATER_1_PIN PD4
  79. #elif ENABLED(FET_ORDER_EEB) // Hotend, Hotend, Bed
  80. #define HEATER_1_PIN PD4
  81. #define HEATER_BED_PIN PD12
  82. #elif ENABLED(FET_ORDER_EFF) // Hotend, Fan, Fan
  83. #define FAN1_PIN PD12
  84. #elif DISABLED(FET_ORDER_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
  85. #define HEATER_BED_PIN PD12
  86. #if EITHER(HAS_MULTI_HOTEND, HEATERS_PARALLEL)
  87. #define HEATER_1_PIN PB9
  88. #else
  89. #define FAN1_PIN PB9
  90. #endif
  91. #endif
  92. #ifndef FAN_PIN
  93. #if EITHER(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
  94. #define FAN_PIN PB5
  95. #elif EITHER(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
  96. #define FAN_PIN PD12
  97. #elif ENABLED(FET_ORDER_EEB) // Hotend, Hotend, Bed
  98. #define FAN_PIN -1 // IO pin. Buffer needed
  99. #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
  100. #define FAN_PIN PB5
  101. #endif
  102. #endif
  103. #define FAN_SOFT_PWM_REQUIRED
  104. //
  105. // Misc. Functions
  106. //
  107. //#define PS_ON_PIN PB9
  108. #if HAS_TMC_UART
  109. /**
  110. * TMC2208/TMC2209 stepper drivers
  111. *
  112. * Hardware serial communication ports.
  113. * If undefined software serial is used according to the pins below
  114. */
  115. #define X_HARDWARE_SERIAL MSerial4
  116. #define Y_HARDWARE_SERIAL MSerial4
  117. #define Z_HARDWARE_SERIAL MSerial4
  118. #define E0_HARDWARE_SERIAL MSerial4
  119. #ifndef X_SLAVE_ADDRESS
  120. #define X_SLAVE_ADDRESS 2
  121. #endif
  122. #ifndef Y_SLAVE_ADDRESS
  123. #define Y_SLAVE_ADDRESS 3
  124. #endif
  125. #ifndef Z_SLAVE_ADDRESS
  126. #define Z_SLAVE_ADDRESS 1
  127. #endif
  128. #ifndef E0_SLAVE_ADDRESS
  129. #define E0_SLAVE_ADDRESS 0
  130. #endif
  131. #endif
  132. //
  133. // Temperature Sensors
  134. //
  135. #define TEMP_BED_PIN PC2 //TB
  136. #define TEMP_0_PIN PC1 //TH1
  137. //#define TEMP_1_PIN PC3 //TH2
  138. #define TEMP_BOARD_PIN PC3
  139. #ifndef TEMP_SENSOR_BOARD
  140. #define TEMP_SENSOR_BOARD 13
  141. #endif
  142. #define FIL_RUNOUT_PIN PA10 // MT_DET
  143. //
  144. // LCD Pins
  145. //
  146. #if HAS_WIRED_LCD
  147. #define BEEPER_PIN PE12
  148. #define BTN_ENC PE11
  149. #define LCD_PINS_ENABLE PE10
  150. #define LCD_PINS_RS PE9
  151. #define BTN_EN1 PE4
  152. #define BTN_EN2 PE3
  153. #define LCD_PINS_D4 PE8
  154. #define LCD_PINS_D5 PE7
  155. #define LCD_PINS_D6 PB2
  156. #define LCD_PINS_D7 PB1
  157. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  158. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  159. #endif
  160. #define BOARD_ST7920_DELAY_1 50
  161. #define BOARD_ST7920_DELAY_2 50
  162. #define BOARD_ST7920_DELAY_3 50
  163. #endif // HAS_WIRED_LCD
  164. //
  165. // SD Card
  166. //
  167. #define ENABLE_SPI1
  168. #define SD_DETECT_PIN PA4
  169. #define SCK_PIN PA5
  170. #define MISO_PIN PA6
  171. #define MOSI_PIN PA7
  172. #define SS_PIN PC4