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_RAPTOR.h 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. * Formbot Raptor pin assignments
  25. */
  26. #ifndef __AVR_ATmega2560__
  27. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  28. #elif HOTENDS > 3 || E_STEPPERS > 3
  29. #error "Formbot supports up to 3 hotends / E-steppers. Comment out this line to continue."
  30. #endif
  31. #ifndef BOARD_INFO_NAME
  32. #define BOARD_INFO_NAME "Formbot Raptor"
  33. #endif
  34. #ifndef DEFAULT_MACHINE_NAME
  35. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  36. #endif
  37. //
  38. // Servos
  39. //
  40. #define SERVO0_PIN 11
  41. #define SERVO1_PIN 6
  42. #define SERVO2_PIN 5
  43. //
  44. // Limit Switches
  45. //
  46. #define X_MIN_PIN 3
  47. #ifndef X_MAX_PIN
  48. #define X_MAX_PIN 2
  49. #endif
  50. #define Y_MIN_PIN 14
  51. #define Y_MAX_PIN 15
  52. #define Z_MIN_PIN 18
  53. #define Z_MAX_PIN 19
  54. //
  55. // Z Probe (when not Z_MIN_PIN)
  56. //
  57. #ifndef Z_MIN_PROBE_PIN
  58. #define Z_MIN_PROBE_PIN 32
  59. #endif
  60. //
  61. // Steppers
  62. //
  63. #define X_STEP_PIN 54
  64. #define X_DIR_PIN 55
  65. #define X_ENABLE_PIN 38
  66. #ifndef X_CS_PIN
  67. #define X_CS_PIN 53
  68. #endif
  69. #define Y_STEP_PIN 60
  70. #define Y_DIR_PIN 61
  71. #define Y_ENABLE_PIN 56
  72. #ifndef Y_CS_PIN
  73. #define Y_CS_PIN 49
  74. #endif
  75. #define Z_STEP_PIN 46
  76. #define Z_DIR_PIN 48
  77. #define Z_ENABLE_PIN 62
  78. #ifndef Z_CS_PIN
  79. #define Z_CS_PIN 40
  80. #endif
  81. #define E0_STEP_PIN 26
  82. #define E0_DIR_PIN 28
  83. #define E0_ENABLE_PIN 24
  84. #ifndef E0_CS_PIN
  85. #define E0_CS_PIN 42
  86. #endif
  87. #define E1_STEP_PIN 36
  88. #define E1_DIR_PIN 34
  89. #define E1_ENABLE_PIN 30
  90. #ifndef E1_CS_PIN
  91. #define E1_CS_PIN 44
  92. #endif
  93. #define E2_STEP_PIN 42
  94. #define E2_DIR_PIN 43
  95. #define E2_ENABLE_PIN 44
  96. //
  97. // Temperature Sensors
  98. //
  99. #define TEMP_0_PIN 13 // Analog Input
  100. #define TEMP_1_PIN 15 // Analog Input
  101. #define TEMP_BED_PIN 14 // Analog Input
  102. // SPI for Max6675 or Max31855 Thermocouple
  103. #if DISABLED(SDSUPPORT)
  104. #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
  105. #else
  106. #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
  107. #endif
  108. //
  109. // Augmentation for auto-assigning RAMPS plugs
  110. //
  111. #if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
  112. #if HOTENDS > 1
  113. #if TEMP_SENSOR_BED
  114. #define IS_RAMPS_EEB
  115. #else
  116. #define IS_RAMPS_EEF
  117. #endif
  118. #elif TEMP_SENSOR_BED
  119. #define IS_RAMPS_EFB
  120. #else
  121. #define IS_RAMPS_EFF
  122. #endif
  123. #endif
  124. //
  125. // Heaters / Fans
  126. //
  127. #define HEATER_0_PIN 10
  128. #define HEATER_1_PIN 7
  129. #define HEATER_BED_PIN 8
  130. #ifndef FAN_PIN
  131. #define FAN_PIN 9
  132. #endif
  133. #ifndef FIL_RUNOUT_PIN
  134. #define FIL_RUNOUT_PIN 57
  135. #endif
  136. #if !HAS_FILAMENT_SENSOR
  137. #define FAN1_PIN 4
  138. #endif
  139. //
  140. // Misc. Functions
  141. //
  142. #ifndef SDSS
  143. #define SDSS 53
  144. #endif
  145. #define LED_PIN 13
  146. #define LED4_PIN 5
  147. // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
  148. #define FILWIDTH_PIN 5 // Analog Input
  149. #ifndef PS_ON_PIN
  150. #define PS_ON_PIN 12
  151. #endif
  152. #define CASE_LIGHT_PIN 5
  153. //
  154. // LCD / Controller
  155. //
  156. // Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER
  157. //
  158. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  159. #define BEEPER_PIN 37
  160. #define BTN_EN1 31
  161. #define BTN_EN2 33
  162. #define BTN_ENC 35
  163. #define SD_DETECT_PIN 49
  164. #define KILL_PIN 41
  165. #define LCD_PINS_RS 16
  166. #define LCD_PINS_ENABLE 17
  167. #define LCD_PINS_D4 23
  168. #define LCD_PINS_D5 25
  169. #define LCD_PINS_D6 27
  170. #define LCD_PINS_D7 29
  171. #endif