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_TH3D_EZBOARD.h 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * TH3D EZBoard pin assignments
  25. */
  26. #ifndef MCU_LPC1769
  27. #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
  28. #endif
  29. #define BOARD_INFO_NAME "TH3D EZBoard"
  30. #define BOARD_WEBSITE_URL "th3dstudio.com"
  31. //
  32. // EEPROM
  33. //
  34. #define FLASH_EEPROM_EMULATION
  35. //#define SDCARD_EEPROM_EMULATION
  36. //
  37. // Servos
  38. //
  39. #define SERVO0_PIN P2_04
  40. //
  41. // Limit Switches
  42. //
  43. #define X_STOP_PIN P1_24
  44. #define Y_STOP_PIN P1_25
  45. #define Z_STOP_PIN P1_26
  46. //
  47. // Filament Runout Sensor
  48. //
  49. #ifndef FIL_RUNOUT_PIN
  50. #define FIL_RUNOUT_PIN P1_27
  51. #endif
  52. //
  53. // Steppers
  54. //
  55. #define X_STEP_PIN P2_00
  56. #define X_DIR_PIN P1_16
  57. #define X_ENABLE_PIN P1_17
  58. #define Y_STEP_PIN P2_01
  59. #define Y_DIR_PIN P1_10
  60. #define Y_ENABLE_PIN P1_09
  61. #define Z_STEP_PIN P2_02
  62. #define Z_DIR_PIN P1_15
  63. #define Z_ENABLE_PIN P1_14
  64. #define E0_STEP_PIN P2_03
  65. #define E0_DIR_PIN P1_04
  66. #define E0_ENABLE_PIN P1_08
  67. #define E1_STEP_PIN P2_08
  68. #define E1_DIR_PIN P2_13
  69. #define E1_ENABLE_PIN P4_29
  70. #if HAS_TMC_UART
  71. //
  72. // TMC220x stepper drivers
  73. // Software serial
  74. //
  75. #define X_SERIAL_TX_PIN P0_04
  76. #define X_SERIAL_RX_PIN P0_05
  77. #define Y_SERIAL_TX_PIN P0_10
  78. #define Y_SERIAL_RX_PIN P0_11
  79. #define Z_SERIAL_TX_PIN P0_19
  80. #define Z_SERIAL_RX_PIN P0_20
  81. #define E0_SERIAL_TX_PIN P0_22
  82. #define E0_SERIAL_RX_PIN P0_21
  83. // Reduce baud rate to improve software serial reliability
  84. #define TMC_BAUD_RATE 19200
  85. #endif
  86. //
  87. // Temp Sensors
  88. // 3.3V max when defined as an Analog Input!
  89. //
  90. #if TEMP_SENSOR_0 == 20 // PT100 Adapter
  91. #define TEMP_0_PIN P0_02_A7 // Analog Input
  92. #else
  93. #define TEMP_0_PIN P0_23_A0 // Analog Input P0_23
  94. #endif
  95. #define TEMP_BED_PIN P0_24_A1 // Analog Input P0_24
  96. #define TEMP_1_PIN P0_25_A2 // Analog Input P0_25
  97. #if ENABLED(FILAMENT_WIDTH_SENSOR)
  98. #define FILWIDTH_PIN P0_26_A3 // Analog Input P0_26
  99. #else
  100. #define TEMP_2_PIN P0_26_A3 // Analog Input P0_26
  101. #endif
  102. //
  103. // Heaters / Fans
  104. //
  105. #define HEATER_BED_PIN P2_05
  106. #define HEATER_0_PIN P2_07
  107. #ifndef FAN_PIN
  108. #define FAN_PIN P2_06
  109. #endif
  110. #define FAN1_PIN P1_22
  111. //
  112. // Auto fans
  113. //
  114. #define AUTO_FAN_PIN P1_22 // FET 3
  115. #define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
  116. #define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
  117. #define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
  118. //
  119. // SD Card
  120. //
  121. #define SDCARD_CONNECTION ONBOARD
  122. #define SCK_PIN P0_07
  123. #define MISO_PIN P0_08
  124. #define MOSI_PIN P0_09
  125. #define ONBOARD_SD_CS_PIN P0_06
  126. #define SS_PIN ONBOARD_SD_CS_PIN
  127. //
  128. // LCD / Controller
  129. //
  130. /**
  131. * _____
  132. * 5V | · · | GND
  133. * (LCD_EN) P0_18 | · · | P0_16 (LCD_RS)
  134. * (LCD_D4) P0_15 | · · | P3_25 (BTN_EN2)
  135. * (RESET) P2_11 | · · | P3_26 (BTN_EN1)
  136. * (BTN_ENC) P1_30 | · · | P1_31 (BEEPER)
  137. * -----
  138. * EXP1
  139. *
  140. * LCD_PINS_D5, D6, and D7 are not present in the EXP1 connector, and will need to be
  141. * defined to use the REPRAP_DISCOUNT_SMART_CONTROLLER.
  142. *
  143. * A remote SD card is currently not supported because the pins routed to the EXP2
  144. * connector are shared with the onboard SD card.
  145. *
  146. */
  147. #if ENABLED(CR10_STOCKDISPLAY)
  148. #define BEEPER_PIN P1_31
  149. #define BTN_EN1 P3_26
  150. #define BTN_EN2 P3_25
  151. #define BTN_ENC P1_30
  152. #define LCD_PINS_RS P0_16
  153. #define LCD_PINS_ENABLE P0_18
  154. #define LCD_PINS_D4 P0_15
  155. #define KILL_PIN P2_11
  156. #elif HAS_SPI_LCD
  157. #error "Only the CR10_STOCKDISPLAY is supported with TH3D EZBoard."
  158. #endif