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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. * Formbot pin assignments
  25. */
  26. #define REQUIRE_MEGA2560
  27. #include "env_validate.h"
  28. #if HOTENDS > 2 || E_STEPPERS > 2
  29. #error "Formbot supports up to 2 hotends / E steppers."
  30. #endif
  31. #define BOARD_INFO_NAME "Formbot"
  32. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  33. //
  34. // Servos
  35. //
  36. #define SERVO0_PIN 11
  37. #define SERVO1_PIN -1 // was 6
  38. #define SERVO2_PIN -1 // was 5
  39. #define SERVO3_PIN -1
  40. //
  41. // Limit Switches
  42. //
  43. #define X_MIN_PIN 3
  44. #ifndef X_MAX_PIN
  45. #define X_MAX_PIN 2
  46. #endif
  47. #define Y_MIN_PIN 14
  48. #define Y_MAX_PIN 15
  49. #define Z_MIN_PIN 18
  50. #define Z_MAX_PIN 19
  51. //
  52. // Z Probe (when not Z_MIN_PIN)
  53. //
  54. #ifndef Z_MIN_PROBE_PIN
  55. #define Z_MIN_PROBE_PIN 32
  56. #endif
  57. //
  58. // Steppers
  59. //
  60. #define X_STEP_PIN 54
  61. #define X_DIR_PIN 55
  62. #define X_ENABLE_PIN 38
  63. #ifndef X_CS_PIN
  64. #define X_CS_PIN 53
  65. #endif
  66. #define Y_STEP_PIN 60
  67. #define Y_DIR_PIN 61
  68. #define Y_ENABLE_PIN 56
  69. #ifndef Y_CS_PIN
  70. #define Y_CS_PIN 49
  71. #endif
  72. #define Z_STEP_PIN 46
  73. #define Z_DIR_PIN 48
  74. #define Z_ENABLE_PIN 62
  75. #ifndef Z_CS_PIN
  76. #define Z_CS_PIN 40
  77. #endif
  78. #define E0_STEP_PIN 26
  79. #define E0_DIR_PIN 28
  80. #define E0_ENABLE_PIN 24
  81. #ifndef E0_CS_PIN
  82. #define E0_CS_PIN 42
  83. #endif
  84. #define E1_STEP_PIN 36
  85. #define E1_DIR_PIN 34
  86. #define E1_ENABLE_PIN 30
  87. #ifndef E1_CS_PIN
  88. #define E1_CS_PIN 44
  89. #endif
  90. #define E2_STEP_PIN 42
  91. #define E2_DIR_PIN 43
  92. #define E2_ENABLE_PIN 44
  93. //
  94. // Temperature Sensors
  95. //
  96. #define TEMP_0_PIN 13 // Analog Input
  97. #define TEMP_1_PIN 15 // Analog Input
  98. #define TEMP_BED_PIN 3 // Analog Input
  99. // SPI for MAX Thermocouple
  100. #if DISABLED(SDSUPPORT)
  101. #define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
  102. #else
  103. #define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
  104. #endif
  105. //
  106. // Heaters / Fans
  107. //
  108. #define HEATER_0_PIN 10
  109. #define HEATER_1_PIN 7
  110. #define HEATER_BED_PIN 58
  111. #define FAN_PIN 9
  112. #if HAS_FILAMENT_SENSOR
  113. #define FIL_RUNOUT_PIN 4
  114. //#define FIL_RUNOUT2_PIN -1
  115. #else
  116. // Though defined as a fan pin, it is utilized as a dedicated laser pin by Formbot.
  117. #define FAN1_PIN 4
  118. #endif
  119. //
  120. // Misc. Functions
  121. //
  122. #define SDSS 53
  123. #ifndef LED_PIN
  124. #define LED_PIN 13 // The Formbot v 1 board has almost no unassigned pins on it. The Board's LED
  125. #endif // is a good place to get a signal to control the Max7219 LED Matrix.
  126. // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
  127. #define FILWIDTH_PIN 5 // Analog Input
  128. #ifndef PS_ON_PIN
  129. #define PS_ON_PIN 12
  130. #endif
  131. #ifndef CASE_LIGHT_PIN
  132. #define CASE_LIGHT_PIN 8
  133. #endif
  134. //
  135. // LCD / Controller
  136. //
  137. // Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER
  138. //
  139. #if IS_RRD_SC
  140. #ifndef BEEPER_PIN
  141. #define BEEPER_PIN 37
  142. #endif
  143. #define BTN_EN1 31
  144. #define BTN_EN2 33
  145. #define BTN_ENC 35
  146. #define SD_DETECT_PIN 49
  147. // Allow MAX7219 to steal the KILL pin
  148. #if !defined(KILL_PIN) && MAX7219_CLK_PIN != 41 && MAX7219_DIN_PIN != 41 && MAX7219_LOAD_PIN != 41
  149. #define KILL_PIN 41
  150. #endif
  151. #define LCD_PINS_RS 16
  152. #define LCD_PINS_ENABLE 17
  153. #define LCD_PINS_D4 23
  154. #define LCD_PINS_D5 25
  155. #define LCD_PINS_D6 27
  156. #define LCD_PINS_D7 29
  157. #endif
  158. // Alter timing for graphical display
  159. #if IS_U8GLIB_ST7920
  160. #define BOARD_ST7920_DELAY_1 200
  161. #define BOARD_ST7920_DELAY_2 200
  162. #define BOARD_ST7920_DELAY_3 200
  163. #endif