My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_GTM32_MINI.h 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. /**
  24. * Geeetech GTM32 Mini board pin assignments
  25. */
  26. #if NOT_TARGET(__STM32F1__)
  27. #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
  28. #endif
  29. #define BOARD_INFO_NAME "GTM32 Pro VB"
  30. #define DEFAULT_MACHINE_NAME "STM32F103VET6"
  31. #define BOARD_NO_NATIVE_USB
  32. //#define DISABLE_DEBUG
  33. //
  34. // It is required to disable JTAG function because its pins are
  35. // used as GPIO to drive the Y axis stepper.
  36. // DO NOT ENABLE!
  37. //
  38. #define DISABLE_JTAG
  39. //
  40. // If you don't need the SWDIO functionality (any more), you may
  41. // disable SWD here to regain PA13/PA14 pins for other use.
  42. //
  43. //#define DISABLE_JTAGSWD
  44. // Ignore temp readings during development.
  45. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  46. // Enable EEPROM Emulation for this board as it doesn't have EEPROM
  47. #if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
  48. #define FLASH_EEPROM_EMULATION
  49. #define MARLIN_EEPROM_SIZE 0x1000 // 4KB
  50. #endif
  51. //
  52. // Limit Switches
  53. //
  54. #define X_MIN_PIN PE5 // ENDSTOPS 15,17
  55. #define X_MAX_PIN PE4 // ENDSTOPS 16,18
  56. #define Y_MIN_PIN PE3 // ENDSTOPS 9,11
  57. #define Y_MAX_PIN PE2 // ENDSTOPS 10,12
  58. #define Z_MIN_PIN PE1 // ENDSTOPS 3,5
  59. #define Z_MAX_PIN PE0 // ENDSTOPS 4,6
  60. //
  61. // Steppers
  62. //
  63. #define X_STEP_PIN PC6
  64. #define X_DIR_PIN PD13
  65. #define X_ENABLE_PIN PA8
  66. #define Y_STEP_PIN PA12
  67. #define Y_DIR_PIN PA11
  68. #define Y_ENABLE_PIN PA15
  69. #define Z_STEP_PIN PD6
  70. #define Z_DIR_PIN PD3
  71. #define Z_ENABLE_PIN PB3
  72. // Extruder stepper pins
  73. // NOTE: Numbering here is made according to EXT connector numbers,
  74. // the FANx_PWM line numbering in the schematics is reverse.
  75. // That is, E0_*_PIN are the E2_* lines connected to E2_A1 step
  76. // stick that drives the EXT0 output on the board.
  77. //
  78. #define E0_STEP_PIN PC14
  79. #define E0_DIR_PIN PC13
  80. #define E0_ENABLE_PIN PC15
  81. #define E1_STEP_PIN PA0
  82. #define E1_DIR_PIN PB6
  83. #define E1_ENABLE_PIN PA1
  84. #define E2_STEP_PIN PB2
  85. #define E2_DIR_PIN PB11
  86. #define E2_ENABLE_PIN PC4
  87. //
  88. // Heaters / Fans
  89. //
  90. #define HEATER_0_PIN PB0 // EXT0 port
  91. #define HEATER_1_PIN PB5 // EXT1 port
  92. #define HEATER_2_PIN PB4 // EXT2 port
  93. #define HEATER_BED_PIN PB1 // CON2X3 hotbed port
  94. //
  95. // These are FAN PWM pins on EXT0..EXT2 connectors.
  96. //
  97. //#define FAN_PIN PB9 // EXT0 port
  98. #define FAN1_PIN PB8 // EXT1 port
  99. #define FAN2_PIN PB7 // EXT2 port
  100. #ifndef E0_AUTO_FAN_PIN
  101. #define E0_AUTO_FAN_PIN PB9 // EXT0 port, used as main extruder fan
  102. #endif
  103. //
  104. // Temperature Sensors
  105. //
  106. #define TEMP_0_PIN PC2 // EXT0 port
  107. #define TEMP_1_PIN PC1 // EXT1 port
  108. #define TEMP_2_PIN PC0 // EXT2 port
  109. #define TEMP_BED_PIN PC3 // CON2X3 hotbed port
  110. //
  111. // Misc. Functions
  112. //
  113. #define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
  114. //
  115. // LCD / Controller
  116. //
  117. #if HAS_WIRED_LCD
  118. #if IS_RRD_SC
  119. //
  120. // LCD display on J2 FFC40
  121. // Geeetech's LCD2004A Control Panel is very much like
  122. // RepRapDiscount Smart Controller, but adds an FFC40 connector
  123. //
  124. #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
  125. #define LCD_PINS_ENABLE PE14 // SID (MOSI)
  126. #define LCD_PINS_D4 PD8 // SCK (CLK) clock
  127. #define LCD_PINS_D5 PD9
  128. #define LCD_PINS_D6 PD10
  129. #define LCD_PINS_D7 PE15
  130. #else
  131. //
  132. // Serial LCDs can be implemented in ExtUI
  133. //
  134. //#define LCD_UART_TX PD8
  135. //#define LCD_UART_RX PD9
  136. #endif
  137. #if HAS_MARLINUI_U8GLIB
  138. #ifndef BOARD_ST7920_DELAY_1
  139. #define BOARD_ST7920_DELAY_1 DELAY_NS(96)
  140. #endif
  141. #ifndef BOARD_ST7920_DELAY_2
  142. #define BOARD_ST7920_DELAY_2 DELAY_NS(48)
  143. #endif
  144. #ifndef BOARD_ST7920_DELAY_3
  145. #define BOARD_ST7920_DELAY_3 DELAY_NS(715)
  146. #endif
  147. #endif
  148. #endif // HAS_WIRED_LCD
  149. #if IS_RRD_SC
  150. //
  151. // Geeetech's LCD2004A Control Panel is very much like
  152. // RepRapDiscount Smart Controller, but adds an FFC40 connector
  153. // connected with a flat wire to J2 connector on the board.
  154. //
  155. #define BTN_EN1 PE8
  156. #define BTN_EN2 PE9
  157. #define BTN_ENC PE13
  158. #define GTM32_PRO_VB_USE_LCD_BEEPER
  159. #define GTM32_PRO_VB_USE_EXT_SDCARD
  160. #endif
  161. //
  162. // Beeper
  163. //
  164. #ifdef GTM32_PRO_VB_USE_LCD_BEEPER
  165. // This is pin 32 on J2 FFC40 and pin, goes to the beeper
  166. // on Geeetech's version of RepRapDiscount Smart Controller
  167. // (e.g. on Rostock 301)
  168. #define BEEPER_PIN PE12
  169. #else
  170. // This is the beeper on the board itself
  171. #define BEEPER_PIN PB10
  172. #endif
  173. /**
  174. * The on-board TF_CARD_SOCKET microSD card socket has no SD Detect pin wired.
  175. *
  176. * The FFC10 (SD_CARD) connector has the same pins as those routed to the FFC40 (J2)
  177. * connector, which usually go to the SD Card slot on the Geeetech version of the
  178. * RepRapDiscount Smart Controller. Both connectors have the card detect signal.
  179. *
  180. * The on-board SD card and the external card (on either SD_CARD or J2) are two
  181. * separate devices and can work simultaneously. Unfortunately, Marlin only supports
  182. * a single SPI Flash device (as of 2019-07-05) so only one is enabled here.
  183. */
  184. #if ENABLED(GTM32_PRO_VB_USE_EXT_SDCARD)
  185. //
  186. // SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
  187. //
  188. #define SD_SS_PIN PC11
  189. #define SD_SCK_PIN PC12
  190. #define SD_MOSI_PIN PD2
  191. #define SD_MISO_PIN PC8
  192. #define SD_DETECT_PIN PC7
  193. #else
  194. //
  195. // Use the on-board card socket labeled TF_CARD_SOCKET
  196. //
  197. #define SD_SS_PIN PA4
  198. #define SD_SCK_PIN PA5
  199. #define SD_MOSI_PIN PA7
  200. #define SD_MISO_PIN PA6
  201. #define SD_DETECT_PIN -1 // Card detect is not connected
  202. #endif
  203. #define SDSS SD_SS_PIN
  204. //
  205. // ESP WiFi can be soldered to J9 connector which is wired to USART2.
  206. // Must define WIFISUPPORT in Configuration.h for the printer.
  207. //
  208. #define ESP_WIFI_MODULE_COM 2
  209. #define ESP_WIFI_MODULE_BAUDRATE 115200
  210. #define ESP_WIFI_MODULE_RESET_PIN -1