My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_TRIGORILLA_14.h 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. * Arduino Mega with RAMPS v1.4 for Anycubic
  25. */
  26. #define BOARD_INFO_NAME "Anycubic RAMPS 1.4"
  27. // Board labeled pins:
  28. #define TG_HEATER_BED_PIN 8
  29. #define TG_HEATER_0_PIN 10
  30. #define TG_HEATER_1_PIN 45 // Anycubic Kossel: Unused
  31. #define TG_FAN0_PIN 9 // Anycubic Kossel: Usually the part cooling fan
  32. #define TG_FAN1_PIN 7 // Anycubic Kossel: Unused
  33. #define TG_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
  34. //
  35. // Servos
  36. //
  37. #if MB(TRIGORILLA_14_11)
  38. #define SERVO0_PIN 5
  39. #define SERVO1_PIN 4
  40. #define SERVO2_PIN 11
  41. #define SERVO3_PIN 6
  42. #endif
  43. // Remap MOSFET pins to common usages:
  44. #define RAMPS_D10_PIN TG_HEATER_0_PIN // HEATER_0_PIN is always RAMPS_D10_PIN in pins_RAMPS.h
  45. #if HAS_MULTI_HOTEND // EEF and EEB
  46. #define RAMPS_D9_PIN TG_HEATER_1_PIN
  47. #if !TEMP_SENSOR_BED
  48. // EEF
  49. #define RAMPS_D8_PIN TG_FAN0_PIN
  50. #else
  51. // EEB
  52. #define RAMPS_D8_PIN TG_HEATER_BED_PIN
  53. #define FAN_PIN TG_FAN0_PIN // Override pin 4 in pins_RAMPS.h
  54. #endif
  55. #elif TEMP_SENSOR_BED
  56. // EFB (Anycubic Kossel default)
  57. #define RAMPS_D9_PIN TG_FAN0_PIN
  58. #if ENABLED(ANYCUBIC_LCD_CHIRON)
  59. #define RAMPS_D8_PIN TG_HEATER_1_PIN // Heated bed is connected to HEATER1 output
  60. #else
  61. #define RAMPS_D8_PIN TG_HEATER_BED_PIN
  62. #endif
  63. #else
  64. // EFF
  65. #define RAMPS_D9_PIN TG_FAN1_PIN
  66. #define RAMPS_D8_PIN TG_FAN0_PIN
  67. #endif
  68. #if HAS_MULTI_HOTEND || TEMP_SENSOR_BED // EEF, EEB, EFB
  69. #define FAN1_PIN TG_FAN1_PIN
  70. #endif
  71. #define FAN2_PIN TG_FAN2_PIN
  72. #ifndef E0_AUTO_FAN_PIN
  73. #define E0_AUTO_FAN_PIN TG_FAN2_PIN // Used in Anycubic Kossel example config
  74. #endif
  75. #if ENABLED(ANYCUBIC_LCD_I3MEGA)
  76. #define CONTROLLER_FAN_PIN TG_FAN1_PIN
  77. #endif
  78. //
  79. // AnyCubic standard pin mappings
  80. //
  81. // On most printers, endstops are NOT all wired to the appropriate pins on the Trigorilla board.
  82. // For instance, on a Chiron, Y axis goes to an aux connector.
  83. // There are also other things that have been wired in creative ways.
  84. // To enable PIN definitions for a specific printer model, #define the appropriate symbol after
  85. // MOTHERBOARD in Configuration.h
  86. //
  87. // Limit Switches
  88. //
  89. //#define ANYCUBIC_4_MAX_PRO_ENDSTOPS
  90. #if ENABLED(ANYCUBIC_4_MAX_PRO_ENDSTOPS)
  91. #define X_MAX_PIN 43
  92. #define Y_STOP_PIN 19
  93. #elif EITHER(ANYCUBIC_LCD_CHIRON, ANYCUBIC_LCD_I3MEGA)
  94. #define Y_STOP_PIN 42
  95. #define Z2_MIN_PIN 43
  96. #ifndef Z_MIN_PROBE_PIN
  97. #define Z_MIN_PROBE_PIN 2
  98. #endif
  99. #ifndef FIL_RUNOUT_PIN
  100. #if ENABLED(ANYCUBIC_LCD_CHIRON)
  101. #define FIL_RUNOUT_PIN 33
  102. #else
  103. #define FIL_RUNOUT_PIN 19
  104. #endif
  105. #endif
  106. #define BEEPER_PIN 31
  107. #define SD_DETECT_PIN 49
  108. #endif
  109. #include "pins_RAMPS.h"
  110. //
  111. // AnyCubic made the following changes to 1.1.0-RC8
  112. // If these are appropriate for your LCD let us know.
  113. //
  114. #if 0 && HAS_WIRED_LCD
  115. // LCD Display output pins
  116. #if BOTH(IS_NEWPANEL, PANEL_ONE)
  117. #undef LCD_PINS_D6
  118. #define LCD_PINS_D6 57
  119. #endif
  120. // LCD Display input pins
  121. #if IS_NEWPANEL
  122. #if ANY(VIKI2, miniVIKI)
  123. #undef DOGLCD_A0
  124. #define DOGLCD_A0 23
  125. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  126. #undef BEEPER_PIN
  127. #define BEEPER_PIN 33
  128. #undef LCD_BACKLIGHT_PIN
  129. #define LCD_BACKLIGHT_PIN 67
  130. #endif
  131. #elif ENABLED(MINIPANEL)
  132. #undef BEEPER_PIN
  133. #define BEEPER_PIN 33
  134. #undef DOGLCD_A0
  135. #define DOGLCD_A0 42
  136. #endif
  137. #endif // HAS_WIRED_LCD