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_CNCONTROLS_11.h 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. * CartesioV11 pin assignments
  25. */
  26. #if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
  27. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  28. #endif
  29. #define BOARD_INFO_NAME "CN Controls V11"
  30. //
  31. // Limit Switches
  32. //
  33. #define X_STOP_PIN 43
  34. #define Y_STOP_PIN 45
  35. #define Z_STOP_PIN 42
  36. //
  37. // Steppers
  38. //
  39. #define X_STEP_PIN 34
  40. #define X_DIR_PIN 36
  41. #define X_ENABLE_PIN 35
  42. #define Y_STEP_PIN 37
  43. #define Y_DIR_PIN 39
  44. #define Y_ENABLE_PIN 38
  45. #define Z_STEP_PIN 40
  46. #define Z_DIR_PIN 48
  47. #define Z_ENABLE_PIN 41
  48. #define E0_STEP_PIN 29
  49. #define E0_DIR_PIN 28
  50. #define E0_ENABLE_PIN 3
  51. #define E1_STEP_PIN 61
  52. #define E1_DIR_PIN 62
  53. #define E1_ENABLE_PIN 60
  54. #define E2_STEP_PIN 15
  55. #define E2_DIR_PIN 14
  56. #define E2_ENABLE_PIN 16
  57. #define E3_STEP_PIN 44
  58. #define E3_DIR_PIN 49
  59. #define E3_ENABLE_PIN 47
  60. //
  61. // Temperature Sensors
  62. //
  63. #define TEMP_0_PIN 0 // Analog Input
  64. #define TEMP_1_PIN 3 // Analog Input. 3 for tool2 -> 2 for chambertemp
  65. #define TEMP_2_PIN 2 // Analog Input. 9 for tool3 -> 2 for chambertemp
  66. #define TEMP_3_PIN 11 // Analog Input. 11 for tool4 -> 2 for chambertemp
  67. #define TEMP_BED_PIN 1 // Analog Input
  68. #ifndef TEMP_CHAMBER_PIN
  69. //#define TEMP_CHAMBER_PIN 2 // Analog Input
  70. #endif
  71. //
  72. // Heaters / Fans
  73. //
  74. #define HEATER_0_PIN 5
  75. #define HEATER_1_PIN 58
  76. #define HEATER_2_PIN 64
  77. #define HEATER_3_PIN 46
  78. #define HEATER_BED_PIN 2
  79. #ifndef FAN_PIN
  80. //#define FAN_PIN 7 // common PWM pin for all tools
  81. #endif
  82. //
  83. // Auto fans
  84. //
  85. #define AUTO_FAN_PIN 7
  86. #ifndef E0_AUTO_FAN_PIN
  87. #define E0_AUTO_FAN_PIN AUTO_FAN_PIN
  88. #endif
  89. #ifndef E1_AUTO_FAN_PIN
  90. #define E1_AUTO_FAN_PIN AUTO_FAN_PIN
  91. #endif
  92. #ifndef E2_AUTO_FAN_PIN
  93. #define E2_AUTO_FAN_PIN AUTO_FAN_PIN
  94. #endif
  95. #ifndef E3_AUTO_FAN_PIN
  96. #define E3_AUTO_FAN_PIN AUTO_FAN_PIN
  97. #endif
  98. //
  99. // Misc. Functions
  100. //
  101. #define SDSS 53
  102. #define SD_DETECT_PIN 13
  103. // Tools
  104. //#define TOOL_0_PIN 4
  105. //#define TOOL_1_PIN 59
  106. //#define TOOL_2_PIN 8
  107. //#define TOOL_3_PIN 30
  108. //#define TOOL_PWM_PIN 7 // common PWM pin for all tools
  109. // Common I/O
  110. //#define FIL_RUNOUT_PIN -1
  111. //#define PWM_1_PIN 11
  112. //#define PWM_2_PIN 10
  113. //#define SPARE_IO 12
  114. //
  115. // LCD / Controller
  116. //
  117. #define BEEPER_PIN 6
  118. // Pins for DOGM SPI LCD Support
  119. #define DOGLCD_A0 26
  120. #define DOGLCD_CS 24
  121. #define DOGLCD_MOSI -1 // Prevent auto-define by Conditionals_post.h
  122. #define DOGLCD_SCK -1
  123. #define BTN_EN1 23
  124. #define BTN_EN2 25
  125. #define BTN_ENC 27
  126. // Hardware buttons for manual movement of XYZ
  127. #define SHIFT_OUT_PIN 19
  128. #define SHIFT_LD_PIN 18
  129. #define SHIFT_CLK_PIN 17
  130. //#define UI1 31
  131. //#define UI2 22
  132. #define STAT_LED_BLUE_PIN -1
  133. #define STAT_LED_RED_PIN 31