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_OPULO_LUMEN_REV4.h 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2022 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. * STM32F407VET6 on Opulo Lumen PnP Rev3
  25. * Website - https://opulo.io/
  26. */
  27. #define ALLOW_STM32DUINO
  28. #include "env_validate.h"
  29. #define BOARD_INFO_NAME "LumenPnP Motherboard REV04"
  30. #define DEFAULT_MACHINE_NAME "LumenPnP"
  31. /**
  32. * By default, the extra stepper motor configuration is:
  33. * I = Left Head
  34. * J = Right Head
  35. * K = Auxiliary (Conveyor belt)
  36. */
  37. #define SRAM_EEPROM_EMULATION
  38. #define MARLIN_EEPROM_SIZE 0x2000 // 8K
  39. // I2C MCP3426 (16-Bit, 240SPS, dual-channel ADC)
  40. #define HAS_MCP3426_ADC
  41. //
  42. // Servos
  43. //
  44. #define SERVO0_PIN PB10
  45. #define SERVO1_PIN PB11
  46. //
  47. // Limit Switches
  48. //
  49. #define X_STOP_PIN PC6
  50. #define Y_STOP_PIN PD15
  51. #define Z_STOP_PIN PD14
  52. // None of these require limit switches by default, so we leave these commented
  53. // here for your reference.
  54. //#define I_MIN_PIN PA8
  55. //#define I_MAX_PIN PA8
  56. //#define J_MIN_PIN PD13
  57. //#define J_MAX_PIN PD13
  58. //#define K_MIN_PIN PC9
  59. //#define K_MAX_PIN PC9
  60. //
  61. // Steppers
  62. //
  63. #define X_STEP_PIN PB15
  64. #define X_DIR_PIN PB14
  65. #define X_ENABLE_PIN PD9
  66. #define Y_STEP_PIN PE15
  67. #define Y_DIR_PIN PE14
  68. #define Y_ENABLE_PIN PB13
  69. #define Z_STEP_PIN PE7
  70. #define Z_DIR_PIN PB1
  71. #define Z_ENABLE_PIN PE9
  72. #define I_STEP_PIN PC4
  73. #define I_DIR_PIN PA4
  74. #define I_ENABLE_PIN PB0
  75. #define J_STEP_PIN PE11
  76. #define J_DIR_PIN PE10
  77. #define J_ENABLE_PIN PE13
  78. #define K_STEP_PIN PD6
  79. #define K_DIR_PIN PD7
  80. #define K_ENABLE_PIN PA3
  81. #if HAS_TMC_SPI
  82. /**
  83. * Make sure to configure the jumpers on the back side of the Mobo according to
  84. * this diagram: https://github.com/MarlinFirmware/Marlin/pull/23851
  85. */
  86. #error "SPI drivers require a custom jumper configuration, see comment above! Comment out this line to continue."
  87. #if AXIS_HAS_SPI(X)
  88. #define X_CS_PIN PD8
  89. #endif
  90. #if AXIS_HAS_SPI(Y)
  91. #define Y_CS_PIN PB12
  92. #endif
  93. #if AXIS_HAS_SPI(Z)
  94. #define Z_CS_PIN PE8
  95. #endif
  96. #if AXIS_HAS_SPI(I)
  97. #define I_CS_PIN PC5
  98. #endif
  99. #if AXIS_HAS_SPI(J)
  100. #define J_CS_PIN PE12
  101. #endif
  102. #if AXIS_HAS_SPI(K)
  103. #define K_CS_PIN PA2
  104. #endif
  105. #elif HAS_TMC_UART
  106. #define X_SERIAL_TX_PIN PD8
  107. #define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
  108. #define Y_SERIAL_TX_PIN PB12
  109. #define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
  110. #define Z_SERIAL_TX_PIN PE8
  111. #define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
  112. #define I_SERIAL_TX_PIN PC5
  113. #define I_SERIAL_RX_PIN I_SERIAL_TX_PIN
  114. #define J_SERIAL_TX_PIN PE12
  115. #define J_SERIAL_RX_PIN J_SERIAL_TX_PIN
  116. #define K_SERIAL_TX_PIN PA2
  117. #define K_SERIAL_RX_PIN K_SERIAL_TX_PIN
  118. // Reduce baud rate to improve software serial reliability
  119. #define TMC_BAUD_RATE 19200
  120. #endif
  121. //
  122. // Heaters / Fans
  123. //
  124. #define FAN_PIN PE2
  125. #define FAN1_PIN PE3
  126. #define FAN2_PIN PE4
  127. #define FAN3_PIN PE5
  128. #define FAN_SOFT_PWM_REQUIRED
  129. //
  130. // Neopixel
  131. //
  132. #define NEOPIXEL_PIN PC7
  133. #define NEOPIXEL2_PIN PC8
  134. //
  135. // SPI
  136. //
  137. #define MISO_PIN PB4
  138. #define MOSI_PIN PB5
  139. #define SCK_PIN PB3
  140. #define TMC_SW_MISO MISO_PIN
  141. #define TMC_SW_MOSI MOSI_PIN
  142. #define TMC_SW_SCK SCK_PIN
  143. //
  144. // I2C
  145. //
  146. #define I2C_SDA_PIN PB7
  147. #define I2C_SCL_PIN PB6
  148. /**
  149. * The index mobo rev03 has 3 aux ports. We define them here so they may be used
  150. * in other places and to make sure someone doesn't have to go look up the pinout
  151. * in the board files. Each 12 pin aux port has this pinout:
  152. *
  153. * VDC 1 2 GND
  154. * 3.3V 3 4 SCL (I2C_SCL_PIN)
  155. * PWM1 5 6 SDA (I2C_SDA_PIN)
  156. * PWM2 7 8 CIPO (MISO_PIN)
  157. * A1 9 10 COPI (MOSI_PIN)
  158. * A2 11 12 SCK (SCK_PIN)
  159. */
  160. #define LUMEN_AUX1_PWM1 PA15
  161. #define LUMEN_AUX1_PWM2 PA5
  162. #define LUMEN_AUX1_A1 PC0
  163. #define LUMEN_AUX1_A2 PC1
  164. #define LUMEN_AUX2_PWM1 PA6
  165. #define LUMEN_AUX2_PWM2 PA7
  166. #define LUMEN_AUX2_A1 PC2
  167. #define LUMEN_AUX2_A2 PC3
  168. #define LUMEN_AUX3_PWM1 PB8
  169. #define LUMEN_AUX3_PWM2 PB9
  170. #define LUMEN_AUX3_A1 PA0
  171. #define LUMEN_AUX3_A2 PA1