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_12.h 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. * CartesioV12 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 V12"
  30. //
  31. // Limit Switches
  32. //
  33. #define X_STOP_PIN 19
  34. #define Y_STOP_PIN 22
  35. #define Z_STOP_PIN 23
  36. //
  37. // Steppers
  38. //
  39. #define X_STEP_PIN 25
  40. #define X_DIR_PIN 27
  41. #define X_ENABLE_PIN 26
  42. #define Y_STEP_PIN 28
  43. #define Y_DIR_PIN 30
  44. #define Y_ENABLE_PIN 29
  45. #define Z_STEP_PIN 31
  46. #define Z_DIR_PIN 33
  47. #define Z_ENABLE_PIN 32
  48. #define E0_STEP_PIN 57
  49. #define E0_DIR_PIN 55
  50. #define E0_ENABLE_PIN 58
  51. #define E1_STEP_PIN 61
  52. #define E1_DIR_PIN 62
  53. #define E1_ENABLE_PIN 60
  54. #define E2_STEP_PIN 46
  55. #define E2_DIR_PIN 66
  56. #define E2_ENABLE_PIN 44
  57. #define E3_STEP_PIN 45
  58. #define E3_DIR_PIN 69
  59. #define E3_ENABLE_PIN 47
  60. //
  61. // Temperature Sensors
  62. //
  63. #define TEMP_0_PIN 0 // Analog Input
  64. #define TEMP_1_PIN 9 // Analog Input. 9 for tool2 -> 13 for chambertemp
  65. #define TEMP_2_PIN 13 // Analog Input. 10 for tool3 -> 13 for chambertemp
  66. #define TEMP_3_PIN 11 // Analog Input. 11 for tool4 -> 13 for chambertemp
  67. #define TEMP_BED_PIN 14 // Analog Input
  68. #ifndef TEMP_CHAMBER_PIN
  69. //#define TEMP_CHAMBER_PIN 13 // Analog Input
  70. #endif
  71. //
  72. // Heaters / Fans
  73. //
  74. #define HEATER_0_PIN 11
  75. #define HEATER_1_PIN 9
  76. #define HEATER_2_PIN 6
  77. #define HEATER_3_PIN 3
  78. #define HEATER_BED_PIN 24
  79. #ifndef FAN_PIN
  80. #define FAN_PIN 5 // 5 is PWMtool3 -> 7 is 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 15
  103. // Tools
  104. //#define TOOL_0_PIN 56
  105. //#define TOOL_0_PWM_PIN 10 // red warning led at dual extruder
  106. //#define TOOL_1_PIN 59
  107. //#define TOOL_1_PWM_PIN 8 // lights at dual extruder
  108. //#define TOOL_2_PIN 4
  109. //#define TOOL_2_PWM_PIN 5
  110. //#define TOOL_3_PIN 14
  111. //#define TOOL_3_PWM_PIN 2
  112. // Common I/O
  113. #ifndef FIL_RUNOUT_PIN
  114. #define FIL_RUNOUT_PIN 18
  115. #endif
  116. //#define PWM_1_PIN 12
  117. //#define PWM_2_PIN 13
  118. //#define SPARE_IO 17
  119. //
  120. // LCD / Controller
  121. //
  122. #define BEEPER_PIN 16
  123. // Pins for DOGM SPI LCD Support
  124. #define DOGLCD_A0 39
  125. #define DOGLCD_CS 35
  126. #define DOGLCD_MOSI 48
  127. #define DOGLCD_SCK 49
  128. #define LCD_SCREEN_ROT_180
  129. // The encoder and click button
  130. #define BTN_EN1 36
  131. #define BTN_EN2 34
  132. #define BTN_ENC 38
  133. // Hardware buttons for manual movement of XYZ
  134. #define SHIFT_OUT_PIN 42
  135. #define SHIFT_LD_PIN 41
  136. #define SHIFT_CLK_PIN 40
  137. //#define UI1 43
  138. //#define UI2 37
  139. #define STAT_LED_BLUE_PIN -1
  140. #define STAT_LED_RED_PIN 10 // TOOL_0_PWM_PIN