My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pins_CNCONTROLS_12.h 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. #define ALLOW_MEGA1280
  27. #include "env_validate.h"
  28. #define BOARD_INFO_NAME "CN Controls V12"
  29. //
  30. // Limit Switches
  31. //
  32. #define X_STOP_PIN 19
  33. #define Y_STOP_PIN 22
  34. #define Z_STOP_PIN 23
  35. //
  36. // Steppers
  37. //
  38. #define X_STEP_PIN 25
  39. #define X_DIR_PIN 27
  40. #define X_ENABLE_PIN 26
  41. #define Y_STEP_PIN 28
  42. #define Y_DIR_PIN 30
  43. #define Y_ENABLE_PIN 29
  44. #define Z_STEP_PIN 31
  45. #define Z_DIR_PIN 33
  46. #define Z_ENABLE_PIN 32
  47. #define E0_STEP_PIN 57
  48. #define E0_DIR_PIN 55
  49. #define E0_ENABLE_PIN 58
  50. #define E1_STEP_PIN 61
  51. #define E1_DIR_PIN 62
  52. #define E1_ENABLE_PIN 60
  53. #define E2_STEP_PIN 46
  54. #define E2_DIR_PIN 66
  55. #define E2_ENABLE_PIN 44
  56. #define E3_STEP_PIN 45
  57. #define E3_DIR_PIN 69
  58. #define E3_ENABLE_PIN 47
  59. //
  60. // Temperature Sensors
  61. //
  62. #define TEMP_0_PIN 0 // Analog Input
  63. #define TEMP_1_PIN 9 // Analog Input. 9 for tool2 -> 13 for chambertemp
  64. #define TEMP_2_PIN 13 // Analog Input. 10 for tool3 -> 13 for chambertemp
  65. #define TEMP_3_PIN 11 // Analog Input. 11 for tool4 -> 13 for chambertemp
  66. #define TEMP_BED_PIN 14 // Analog Input
  67. #ifndef TEMP_CHAMBER_PIN
  68. //#define TEMP_CHAMBER_PIN 13 // Analog Input
  69. #endif
  70. //
  71. // Heaters / Fans
  72. //
  73. #define HEATER_0_PIN 11
  74. #define HEATER_1_PIN 9
  75. #define HEATER_2_PIN 6
  76. #define HEATER_3_PIN 3
  77. #define HEATER_BED_PIN 24
  78. #ifndef FAN_PIN
  79. #define FAN_PIN 5 // 5 is PWMtool3 -> 7 is common PWM pin for all tools
  80. #endif
  81. //
  82. // Auto fans
  83. //
  84. #define AUTO_FAN_PIN 7
  85. #ifndef E0_AUTO_FAN_PIN
  86. #define E0_AUTO_FAN_PIN AUTO_FAN_PIN
  87. #endif
  88. #ifndef E1_AUTO_FAN_PIN
  89. #define E1_AUTO_FAN_PIN AUTO_FAN_PIN
  90. #endif
  91. #ifndef E2_AUTO_FAN_PIN
  92. #define E2_AUTO_FAN_PIN AUTO_FAN_PIN
  93. #endif
  94. #ifndef E3_AUTO_FAN_PIN
  95. #define E3_AUTO_FAN_PIN AUTO_FAN_PIN
  96. #endif
  97. //
  98. // Misc. Functions
  99. //
  100. #define SDSS 53
  101. #define SD_DETECT_PIN 15
  102. // Tools
  103. //#define TOOL_0_PIN 56
  104. //#define TOOL_0_PWM_PIN 10 // red warning led at dual extruder
  105. //#define TOOL_1_PIN 59
  106. //#define TOOL_1_PWM_PIN 8 // lights at dual extruder
  107. //#define TOOL_2_PIN 4
  108. //#define TOOL_2_PWM_PIN 5
  109. //#define TOOL_3_PIN 14
  110. //#define TOOL_3_PWM_PIN 2
  111. // Common I/O
  112. #ifndef FIL_RUNOUT_PIN
  113. #define FIL_RUNOUT_PIN 18
  114. #endif
  115. //#define PWM_1_PIN 12
  116. //#define PWM_2_PIN 13
  117. //#define SPARE_IO 17
  118. //
  119. // LCD / Controller
  120. //
  121. #if HAS_WIRED_LCD
  122. #define BEEPER_PIN 16
  123. #define BTN_EN1 36
  124. #define BTN_EN2 34
  125. #define BTN_ENC 38
  126. #if HAS_MARLINUI_U8GLIB
  127. #define DOGLCD_A0 39
  128. #define DOGLCD_CS 35
  129. #define DOGLCD_MOSI 48
  130. #define DOGLCD_SCK 49
  131. #endif
  132. #endif
  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
  141. #define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270