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_RUMBA.h 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 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. * RUMBA pin assignments
  25. */
  26. #ifndef __AVR_ATmega2560__
  27. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  28. #endif
  29. #if HOTENDS > 3 || E_STEPPERS > 3
  30. #error "RUMBA supports up to 3 hotends / E-steppers. Comment out this line to continue."
  31. #endif
  32. #ifndef BOARD_NAME
  33. #define BOARD_NAME "Rumba"
  34. #endif
  35. #ifndef DEFAULT_MACHINE_NAME
  36. #define DEFAULT_MACHINE_NAME BOARD_NAME
  37. #endif
  38. //
  39. // Servos
  40. //
  41. #define SERVO0_PIN 5
  42. //
  43. // Limit Switches
  44. //
  45. #define X_MIN_PIN 37
  46. #define X_MAX_PIN 36
  47. #define Y_MIN_PIN 35
  48. #define Y_MAX_PIN 34
  49. #define Z_MIN_PIN 33
  50. #define Z_MAX_PIN 32
  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 17
  61. #define X_DIR_PIN 16
  62. #define X_ENABLE_PIN 48
  63. #define Y_STEP_PIN 54
  64. #define Y_DIR_PIN 47
  65. #define Y_ENABLE_PIN 55
  66. #define Z_STEP_PIN 57
  67. #define Z_DIR_PIN 56
  68. #define Z_ENABLE_PIN 62
  69. #ifndef E0_STEP_PIN
  70. #define E0_STEP_PIN 23
  71. #define E0_DIR_PIN 22
  72. #define E0_ENABLE_PIN 24
  73. #endif
  74. #ifndef E1_STEP_PIN
  75. #define E1_STEP_PIN 26
  76. #define E1_DIR_PIN 25
  77. #define E1_ENABLE_PIN 27
  78. #endif
  79. #if E1_STEP_PIN != 29
  80. #define E2_STEP_PIN 29
  81. #define E2_DIR_PIN 28
  82. #define E2_ENABLE_PIN 39
  83. #endif
  84. //
  85. // Temperature Sensors
  86. //
  87. #ifndef TEMP_0_PIN
  88. #if TEMP_SENSOR_0 == -1
  89. #define TEMP_0_PIN 6 // Analog Input (connector *K1* on RUMBA thermocouple ADD ON is used)
  90. #else
  91. #define TEMP_0_PIN 15 // Analog Input (default connector for thermistor *T0* on rumba board is used)
  92. #endif
  93. #endif
  94. #ifndef TEMP_1_PIN
  95. #if TEMP_SENSOR_1 == -1
  96. #define TEMP_1_PIN 5 // Analog Input (connector *K2* on RUMBA thermocouple ADD ON is used)
  97. #else
  98. #define TEMP_1_PIN 14 // Analog Input (default connector for thermistor *T1* on rumba board is used)
  99. #endif
  100. #endif
  101. #if TEMP_SENSOR_2 == -1
  102. #define TEMP_2_PIN 7 // Analog Input (connector *K3* on RUMBA thermocouple ADD ON is used <-- this can't be used when TEMP_SENSOR_BED is defined as thermocouple)
  103. #else
  104. #define TEMP_2_PIN 13 // Analog Input (default connector for thermistor *T2* on rumba board is used)
  105. #endif
  106. // Optional for extruder 4 or chamber:
  107. //#define TEMP_X_PIN 12 // Analog Input (default connector for thermistor *T3* on rumba board is used)
  108. //#define TEMP_CHAMBER_PIN 12 // Analog Input (default connector for thermistor *T3* on rumba board is used)
  109. #if TEMP_SENSOR_BED == -1
  110. #define TEMP_BED_PIN 7 // Analog Input (connector *K3* on RUMBA thermocouple ADD ON is used <-- this can't be used when TEMP_SENSOR_2 is defined as thermocouple)
  111. #else
  112. #define TEMP_BED_PIN 11 // Analog Input (default connector for thermistor *THB* on rumba board is used)
  113. #endif
  114. //
  115. // Heaters / Fans
  116. //
  117. #define HEATER_0_PIN 2
  118. #define HEATER_1_PIN 3
  119. #define HEATER_2_PIN 6
  120. #define HEATER_3_PIN 8
  121. #define HEATER_BED_PIN 9
  122. #ifndef FAN_PIN
  123. #define FAN_PIN 7
  124. #endif
  125. #define FAN1_PIN 8
  126. //
  127. // Misc. Functions
  128. //
  129. #define LED_PIN 13
  130. #define PS_ON_PIN 45
  131. #define KILL_PIN 46
  132. #define CASE_LIGHT_PIN 45
  133. //
  134. // M3/M4/M5 - Spindle/Laser Control
  135. //
  136. #ifndef SPINDLE_LASER_PWM_PIN
  137. #define SPINDLE_LASER_PWM_PIN 4 // MUST BE HARDWARE PWM. Pin 4 interrupts OC0* and OC1* always in use?
  138. #endif
  139. #ifndef SPINDLE_LASER_ENA_PIN
  140. #define SPINDLE_LASER_ENA_PIN 14 // Pin should have a pullup!
  141. #endif
  142. #ifndef SPINDLE_DIR_PIN
  143. #define SPINDLE_DIR_PIN 15
  144. #endif
  145. //
  146. // LCD / Controller
  147. //
  148. #if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
  149. #define LCD_PINS_DC 38 // Set as output on init
  150. #define LCD_PINS_RS 41 // Pull low for 1s to init
  151. // DOGM SPI LCD Support
  152. #define DOGLCD_CS 19
  153. #define DOGLCD_MOSI 42
  154. #define DOGLCD_SCK 18
  155. #define DOGLCD_A0 LCD_PINS_DC
  156. #elif ENABLED(FYSETC_MINI_12864)
  157. #define DOGLCD_CS 42
  158. #define DOGLCD_A0 19
  159. #define DOGLCD_MOSI 51
  160. #define DOGLCD_SCK 52
  161. //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
  162. // results in LCD soft SPI mode 3, SD soft SPI mode 0
  163. #define LCD_RESET_PIN 18 // Must be high or open for LCD to operate normally.
  164. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  165. #ifndef RGB_LED_R_PIN
  166. #define RGB_LED_R_PIN 41
  167. #endif
  168. #ifndef RGB_LED_G_PIN
  169. #define RGB_LED_G_PIN 38
  170. #endif
  171. #ifndef RGB_LED_B_PIN
  172. #define RGB_LED_B_PIN 40
  173. #endif
  174. #elif ENABLED(FYSETC_MINI_12864_2_1)
  175. #define NEOPIXEL_PIN 25
  176. #endif
  177. #else
  178. #define LCD_PINS_RS 19
  179. #define LCD_PINS_ENABLE 42
  180. #define LCD_PINS_D4 18
  181. #define LCD_PINS_D5 38
  182. #define LCD_PINS_D6 41
  183. #endif
  184. #define LCD_PINS_D7 40
  185. //
  186. // Beeper, SD Card, Encoder
  187. //
  188. #define BEEPER_PIN 44
  189. #if ENABLED(SDSUPPORT)
  190. #define SDPOWER -1
  191. #define SDSS 53
  192. #define SD_DETECT_PIN 49
  193. #endif
  194. #if ENABLED(NEWPANEL)
  195. #define BTN_EN1 11
  196. #define BTN_EN2 12
  197. #define BTN_ENC 43
  198. #endif