My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins_RUMBA.h 7.6KB

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