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_BIQU_B300_V1.0.h 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. * BIQU BQ111-A4
  25. *
  26. * Applies to the following boards:
  27. *
  28. * BOARD_BIQU_BQ111_A4 (Hotend, Fan, Bed)
  29. */
  30. #if NOT_TARGET(MCU_LPC1768)
  31. #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
  32. #endif
  33. #ifndef BOARD_INFO_NAME
  34. #define BOARD_INFO_NAME "BIQU Thunder B300 V1.0"
  35. #endif
  36. //
  37. // Limit Switches
  38. //
  39. #define X_MIN_PIN P1_24 // 10k pullup to 3.3V, 1K series
  40. #define X_MAX_PIN P1_25 // 10k pullup to 3.3V, 1K series
  41. #define Y_MIN_PIN P1_26 // 10k pullup to 3.3V, 1K series
  42. #define Y_MAX_PIN P1_27 // 10k pullup to 3.3V, 1K series
  43. #define Z_MIN_PIN P1_28 // 10k pullup to 3.3V, 1K series
  44. #define Z_MAX_PIN P1_29 // 10k pullup to 3.3V, 1K series
  45. //
  46. // Steppers
  47. //
  48. #define X_STEP_PIN P2_00
  49. #define X_DIR_PIN P0_05
  50. #define X_ENABLE_PIN P0_04
  51. #ifndef X_CS_PIN
  52. #define X_CS_PIN P1_15 // ETH
  53. #endif
  54. #define Y_STEP_PIN P2_01
  55. #define Y_DIR_PIN P0_11
  56. #define Y_ENABLE_PIN P0_10
  57. #ifndef Y_CS_PIN
  58. #define Y_CS_PIN P1_14 // ETH
  59. #endif
  60. #define Z_STEP_PIN P2_02
  61. #define Z_DIR_PIN P0_20
  62. #define Z_ENABLE_PIN P0_19
  63. #ifndef Z_CS_PIN
  64. #define Z_CS_PIN P1_16 // ETH
  65. #endif
  66. #define E0_STEP_PIN P2_03
  67. #define E0_DIR_PIN P0_22
  68. #define E0_ENABLE_PIN P0_21
  69. #ifndef E0_CS_PIN
  70. #define E0_CS_PIN P1_17 // ETH
  71. #endif
  72. //
  73. // Software SPI pins for TMC2130 stepper drivers
  74. //
  75. #if ENABLED(TMC_USE_SW_SPI)
  76. #ifndef TMC_SW_MOSI
  77. #define TMC_SW_MOSI P0_18 // ETH
  78. #endif
  79. #ifndef TMC_SW_MISO
  80. #define TMC_SW_MISO P0_17 // ETH
  81. #endif
  82. #ifndef TMC_SW_SCK
  83. #define TMC_SW_SCK P0_15 // ETH
  84. #endif
  85. #endif
  86. //
  87. // Temperature Sensors
  88. // 3.3V max when defined as an analog input
  89. //
  90. #define TEMP_0_PIN P0_24_A1 // A0 (T0)
  91. #define TEMP_BED_PIN P0_23_A0 // A1 (T1)
  92. //
  93. // Heaters / Fans
  94. //
  95. #define HEATER_0_PIN P2_07
  96. #define HEATER_BED_PIN P2_05
  97. #ifndef FAN_PIN
  98. #define FAN_PIN P2_04
  99. #endif
  100. //
  101. // Unused
  102. //
  103. //#define PIN_P2_10 P2_10 // IBOOT-1
  104. //#define PIN_P0_27 P0_27 // Onboard SD Detect
  105. /**
  106. * LCD / Controller
  107. *
  108. * REPRAP_DISCOUNT_SMART_CONTROLLER is not supported due to the lack of LCD_PINS_D5,
  109. * LCD_PINS_D6 or LCD_PINS_D7 in the EXP1 connector.
  110. *
  111. * A remote SD card is not supported as the pins routed to EXP2 are the same as used
  112. * for the onboard SD card, and a chip select signal is not provided for the remote
  113. * SD card.
  114. */
  115. #if HAS_WIRED_LCD
  116. #define BEEPER_PIN P1_31 // EXP1-1
  117. #define BTN_EN1 P3_26 // EXP2-3
  118. #define BTN_EN2 P3_25 // EXP2-5
  119. #define BTN_ENC P1_30 // EXP1-2
  120. #define SD_DETECT_PIN P0_27 // EXP2-7
  121. #define LCD_PINS_RS P0_16 // EXP1-4
  122. #define LCD_PINS_ENABLE P0_18 // (MOSI) EXP1-3
  123. #define LCD_PINS_D4 P0_15 // (SCK) EXP1-5
  124. #if BOTH(HAS_MARLINUI_HD44780, REPRAP_DISCOUNT_SMART_CONTROLLER)
  125. #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU B300 v1.0"
  126. #endif
  127. #if ENABLED(SDSUPPORT)
  128. #error "SDSUPPORT is not supported by the BIQU B300 v1.0 when an LCD controller is used"
  129. #endif
  130. #endif // HAS_WIRED_LCD
  131. /**
  132. * SD Card Reader
  133. *
  134. * Software SPI is used to interface with a stand-alone SD card reader connected to EXP1.
  135. * Hardware SPI can't be used because P0_17 (MISO) is not brought out on this board.
  136. */
  137. #if ENABLED(SDSUPPORT)
  138. #define SCK_PIN P0_15 // EXP1-5
  139. #define MISO_PIN P0_16 // EXP1-4
  140. #define MOSI_PIN P0_18 // EXP1-3
  141. #define SS_PIN P1_30 // EXP1-2
  142. #define SDSS SS_PIN
  143. #endif
  144. /**
  145. * PWMS
  146. *
  147. * There are 6 PWMS. Each PWM can be assigned to one of two pins.
  148. *
  149. * PWM1.1 P0_18 LCD_PINS_ENABLE
  150. * PWM1.1 P2_0 X_STEP_PIN
  151. * PWM1.2 P1_20 <none>
  152. * PWM1.2 P2_1 Y_STEP_PIN
  153. * PWM1.3 P1_21 <none>
  154. * PWM1.3 P2_2 Z_STEP_PIN
  155. * PWM1.4 P1_23 <none>
  156. * PWM1.4 P2_3 E0_STEP_PIN
  157. * PWM1.5 P1_24 X_MIN_PIN
  158. * PWM1.5 P2_4 FAN_PIN
  159. * PWM1.6 P1_26 Y_MIN_PIN
  160. * PWM1.6 P2_5 HEATER_BED_PIN
  161. */