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_TENLOG_D3_HERO.h 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. * Tenlog pin assignments
  25. */
  26. #define REQUIRE_MEGA2560
  27. #include "env_validate.h"
  28. #if HOTENDS > 2 || E_STEPPERS > 2
  29. #error "Tenlog supports up to 2 hotends / E-steppers. Comment out this line to continue."
  30. #endif
  31. #define BOARD_INFO_NAME "Tenlog D3 Hero"
  32. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  33. //
  34. // Servos
  35. //
  36. #define SERVO0_PIN 11
  37. #define SERVO1_PIN 6
  38. #define SERVO2_PIN -1 // Original pin 5 used for hotend fans
  39. #define SERVO3_PIN 4
  40. //
  41. // Limit Switches
  42. //
  43. #define X_MIN_PIN 3
  44. #define X_MAX_PIN 2
  45. #define Y_MIN_PIN 14
  46. //#define Y_MAX_PIN 15 // Connected to "DJ" plug on extruder heads
  47. #define Z_MIN_PIN 18
  48. #define Z_MAX_PIN 19
  49. //
  50. // Z Probe (when not Z_MIN_PIN)
  51. //
  52. #ifndef Z_MIN_PROBE_PIN
  53. #define Z_MIN_PROBE_PIN 15 // Ramps is normally 32
  54. #endif
  55. //
  56. // Steppers
  57. //
  58. #define X_STEP_PIN 54
  59. #define X_DIR_PIN 55
  60. #define X_ENABLE_PIN 38
  61. //#ifndef X_CS_PIN
  62. //#define X_CS_PIN 53
  63. //#endif
  64. #define X2_STEP_PIN 36
  65. #define X2_DIR_PIN 34
  66. #define X2_ENABLE_PIN 30
  67. //#ifndef X2_CS_PIN
  68. //#define X2_CS_PIN 53
  69. //#endif
  70. #define Y_STEP_PIN 60
  71. #define Y_DIR_PIN 61
  72. #define Y_ENABLE_PIN 56
  73. //#ifndef Y_CS_PIN
  74. //#define Y_CS_PIN 49
  75. //#endif
  76. #define Z_STEP_PIN 46
  77. #define Z_DIR_PIN 48
  78. #define Z_ENABLE_PIN 62
  79. //#ifndef Z_CS_PIN
  80. //#define Z_CS_PIN 40
  81. //#endif
  82. #define Z2_STEP_PIN 65
  83. #define Z2_DIR_PIN 66
  84. #define Z2_ENABLE_PIN 64
  85. //#ifndef Z2_CS_PIN
  86. //#define Z2_CS_PIN 40
  87. //#endif
  88. #define E0_STEP_PIN 26
  89. #define E0_DIR_PIN 28
  90. #define E0_ENABLE_PIN 24
  91. //#ifndef E0_CS_PIN
  92. //define E0_CS_PIN 42
  93. //#endif
  94. #define E1_STEP_PIN 57
  95. #define E1_DIR_PIN 58
  96. #define E1_ENABLE_PIN 59
  97. //#ifndef E1_CS_PIN
  98. //define E1_CS_PIN 44
  99. //#endif
  100. //#define E2_STEP_PIN 42
  101. //#define E2_DIR_PIN 43
  102. //#define E2_ENABLE_PIN 44
  103. //
  104. // Temperature Sensors
  105. //
  106. #define TEMP_0_PIN 13 // Analog Input
  107. #define TEMP_1_PIN 15 // Analog Input
  108. #define TEMP_BED_PIN 14 // Analog Input
  109. // SPI for Max6675 or Max31855 Thermocouple
  110. #if DISABLED(SDSUPPORT)
  111. #define MAX6675_SS_PIN -1 // Don't use 53 if using Display/SD card
  112. #else
  113. #define MAX6675_SS_PIN -1 // Don't use 49 (SD_DETECT_PIN)
  114. #endif
  115. //
  116. // Heaters / Fans
  117. //
  118. #define HEATER_0_PIN 10
  119. #define HEATER_1_PIN 11
  120. #define HEATER_BED_PIN 8
  121. #define FAN_PIN 9
  122. #define FAN1_PIN 5 // Normall this would be a servo pin
  123. // XXX Runout support unknown?
  124. //#define NUM_RUNOUT_SENSORS 0
  125. //#define FIL_RUNOUT_PIN 22
  126. //#define FIL_RUNOUT2_PIN 21
  127. //
  128. // Misc. Functions
  129. //
  130. //#define CASE_LIGHT_PIN 5
  131. #define SDSS 53
  132. //#ifndef LED_PIN
  133. //#define LED_PIN 13
  134. //#endif
  135. //#define SPINDLE_LASER_PWM_PIN -1 // Hardware PWM
  136. //#define SPINDLE_LASER_ENA_PIN 4 // Pullup!
  137. // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
  138. //#define FILWIDTH_PIN 5 // Analog Input
  139. //
  140. // LCD / Controller
  141. //
  142. //#if IS_RRD_SC
  143. #define LCD_PINS_RS -1
  144. #define LCD_PINS_ENABLE -1
  145. #define LCD_PINS_D4 -1
  146. #define LCD_PINS_D5 -1
  147. #define LCD_PINS_D6 -1
  148. #define LCD_PINS_D7 -1
  149. //#define BTN_EN1 31
  150. //#define BTN_EN2 33
  151. //#define BTN_ENC 35
  152. #define SD_DETECT_PIN 49
  153. //#ifndef KILL_PIN
  154. //#define KILL_PIN 41
  155. //#endif
  156. //#ifndef BEEPER_PIN
  157. #define BEEPER_PIN -1
  158. //#endif
  159. //#endif // IS_RRD_SC