My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pins_CCROBOT_MEEB_3DP.h 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. #include "env_validate.h"
  24. #if HAS_MULTI_HOTEND || E_STEPPERS > 1
  25. #error "CCROBOT-ONLINE MEEB_3DP only supports 1 hotend / E stepper."
  26. #endif
  27. // https://github.com/ccrobot-online/MEEB_3DP
  28. // Pin assignments for 32-bit MEEB_3DP
  29. #define BOARD_INFO_NAME "CCROBOT-ONLINE MEEB_3DP"
  30. #define DEFAULT_MACHINE_NAME "STM32F103RCT6"
  31. #define BOARD_WEBSITE_URL "ccrobot-online.com"
  32. //
  33. // Release PB4 from JTAG NRST role
  34. //
  35. #define DISABLE_JTAG
  36. //
  37. // EEPROM
  38. //
  39. #if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
  40. #define FLASH_EEPROM_EMULATION
  41. #define EEPROM_PAGE_SIZE 0x800U // 2K
  42. #define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
  43. #define MARLIN_EEPROM_SIZE 0x1000 // 4K
  44. #endif
  45. //
  46. // Servos
  47. //
  48. #define SERVO0_PIN PA1
  49. //
  50. // Limit Switches
  51. //
  52. #define X_STOP_PIN PC0
  53. #define Y_STOP_PIN PC1
  54. #define Z_STOP_PIN PC2
  55. //
  56. // Z Probe must be this pin
  57. //
  58. #define Z_MIN_PROBE_PIN PC15 // "PROBE"
  59. //
  60. // TMC2208 stepper drivers
  61. //
  62. #define X_ENABLE_PIN PB4
  63. #define X_STEP_PIN PC12
  64. #define X_DIR_PIN PC11
  65. #define Y_ENABLE_PIN PC10
  66. #define Y_STEP_PIN PB14
  67. #define Y_DIR_PIN PB13
  68. #define Z_ENABLE_PIN PB12
  69. #define Z_STEP_PIN PB2
  70. #define Z_DIR_PIN PB1
  71. #define E0_ENABLE_PIN PB0
  72. #define E0_STEP_PIN PA6
  73. #define E0_DIR_PIN PA5
  74. #if HAS_TMC_UART
  75. // Stepper drivers Serial UART
  76. #define X_SERIAL_TX_PIN PB3
  77. #define X_SERIAL_RX_PIN PD2
  78. #define Y_SERIAL_TX_PIN PA15
  79. #define Y_SERIAL_RX_PIN PC6
  80. #define Z_SERIAL_TX_PIN PB11
  81. #define Z_SERIAL_RX_PIN PB10
  82. #define E0_SERIAL_TX_PIN PC5
  83. #define E0_SERIAL_RX_PIN PC4
  84. #endif
  85. // Reduce baud rate to improve software serial reliability
  86. #define TMC_BAUD_RATE 19200
  87. //
  88. // Temperature Sensors
  89. //
  90. #define TEMP_0_PIN PA0 // TH0
  91. #define TEMP_BED_PIN PC3 // THB
  92. //
  93. // Heaters / Fans
  94. //
  95. #define HEATER_0_PIN PC8 // HEATER0
  96. #define HEATER_BED_PIN PC9 // HOT BED
  97. #define FAN_PIN PA7 // FAN (fan2 on board) model cool fan
  98. #define FAN1_PIN PA8 // FAN (fan0 on board) e0 cool fan
  99. #define FAN2_PIN PB9 // FAN (fan1 on board) controller cool fan
  100. // One NeoPixel onboard and a connector for other NeoPixels
  101. #define NEOPIXEL_PIN PC7 // The NEOPIXEL LED driving pin
  102. /**
  103. * ------
  104. * PB5 | 1 2 | PB6
  105. * PA2 | 3 4 | RESET
  106. * PA3 5 6 | PB8
  107. * PB7 | 7 8 | PA4
  108. * GND | 9 10 | VCC5
  109. * ------
  110. * EXP1
  111. */
  112. #define EXP1_01_PIN PB5
  113. #define EXP1_02_PIN PB6
  114. #define EXP1_03_PIN PA2
  115. #define EXP1_04_PIN -1 // RESET
  116. #define EXP1_05_PIN PA3
  117. #define EXP1_06_PIN PB8
  118. #define EXP1_07_PIN PB7
  119. #define EXP1_08_PIN PA4
  120. //
  121. // LCD / Controller
  122. //
  123. #if ENABLED(CR10_STOCKDISPLAY)
  124. #define BEEPER_PIN EXP1_01_PIN
  125. #define BTN_EN1 EXP1_03_PIN
  126. #define BTN_EN2 EXP1_05_PIN
  127. #define BTN_ENC EXP1_02_PIN
  128. #define LCD_PINS_RS EXP1_07_PIN // CS -- SOFT SPI for ENDER3 LCD
  129. #define LCD_PINS_D4 EXP1_06_PIN // SCLK
  130. #define LCD_PINS_ENABLE EXP1_08_PIN // DATA MOSI
  131. #endif
  132. // Alter timing for graphical display
  133. #if IS_U8GLIB_ST7920
  134. #define BOARD_ST7920_DELAY_1 125
  135. #define BOARD_ST7920_DELAY_2 125
  136. #define BOARD_ST7920_DELAY_3 125
  137. #endif
  138. //
  139. // Camera
  140. //
  141. #define CHDK_PIN PB15
  142. #if 0
  143. //
  144. // SD-NAND
  145. //
  146. #if SD_CONNECTION_IS(ONBOARD)
  147. #define SD_DETECT_PIN -1
  148. #define SD_SCK_PIN PA5
  149. #define SD_MISO_PIN PA6
  150. #define SD_MOSI_PIN PA7
  151. #define SD_SS_PIN PA4
  152. #endif
  153. #define ONBOARD_SPI_DEVICE 1 // SPI1
  154. #define ONBOARD_SD_CS_PIN PA4 // Chip select for SD-NAND
  155. #endif