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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. * Elefu RA Board Pin Assignments
  25. */
  26. #include "env_validate.h"
  27. #define BOARD_INFO_NAME "Elefu Ra v3"
  28. //
  29. // Limit Switches
  30. //
  31. #define X_MIN_PIN 35
  32. #define X_MAX_PIN 34
  33. #define Y_MIN_PIN 33
  34. #define Y_MAX_PIN 32
  35. #define Z_MIN_PIN 31
  36. #define Z_MAX_PIN 30
  37. //
  38. // Z Probe (when not Z_MIN_PIN)
  39. //
  40. #ifndef Z_MIN_PROBE_PIN
  41. #define Z_MIN_PROBE_PIN 30
  42. #endif
  43. //
  44. // Steppers
  45. //
  46. #define X_STEP_PIN 49
  47. #define X_DIR_PIN 13
  48. #define X_ENABLE_PIN 48
  49. #define Y_STEP_PIN 11
  50. #define Y_DIR_PIN 9
  51. #define Y_ENABLE_PIN 12
  52. #define Z_STEP_PIN 7
  53. #define Z_DIR_PIN 6
  54. #define Z_ENABLE_PIN 8
  55. #define E0_STEP_PIN 40
  56. #define E0_DIR_PIN 41
  57. #define E0_ENABLE_PIN 37
  58. #define E1_STEP_PIN 18
  59. #define E1_DIR_PIN 19
  60. #define E1_ENABLE_PIN 38
  61. #define E2_STEP_PIN 43
  62. #define E2_DIR_PIN 47
  63. #define E2_ENABLE_PIN 42
  64. //
  65. // Temperature Sensors
  66. //
  67. #define TEMP_0_PIN 3 // Analog Input
  68. #define TEMP_1_PIN 2 // Analog Input
  69. #define TEMP_2_PIN 1 // Analog Input
  70. #define TEMP_BED_PIN 0 // Analog Input
  71. //
  72. // Heaters / Fans
  73. //
  74. #define HEATER_0_PIN 45 // 12V PWM1
  75. #define HEATER_1_PIN 46 // 12V PWM2
  76. #define HEATER_2_PIN 17 // 12V PWM3
  77. #define HEATER_BED_PIN 44 // DOUBLE 12V PWM
  78. #ifndef FAN_PIN
  79. #define FAN_PIN 16 // 5V PWM
  80. #endif
  81. //
  82. // Misc. Functions
  83. //
  84. #define PS_ON_PIN 10 // Set to -1 if using a manual switch on the PWRSW Connector
  85. #define SLEEP_WAKE_PIN 26 // This feature still needs work
  86. #define PHOTOGRAPH_PIN 29
  87. //
  88. // LCD / Controller
  89. //
  90. #define BEEPER_PIN 36
  91. #if ENABLED(RA_CONTROL_PANEL)
  92. #define SDSS 53
  93. #define SD_DETECT_PIN 28
  94. #define BTN_EN1 14
  95. #define BTN_EN2 39
  96. #define BTN_ENC 15
  97. #endif // RA_CONTROL_PANEL
  98. #if ENABLED(RA_DISCO)
  99. // variables for which pins the TLC5947 is using
  100. #define TLC_CLOCK_PIN 25
  101. #define TLC_BLANK_PIN 23
  102. #define TLC_XLAT_PIN 22
  103. #define TLC_DATA_PIN 24
  104. // We also need to define pin to port number mapping for the 2560 to match the pins listed above.
  105. // If you change the TLC pins, update this as well per the 2560 datasheet! This currently only works with the RA Board.
  106. #define TLC_CLOCK_BIT 3
  107. #define TLC_CLOCK_PORT &PORTA
  108. #define TLC_BLANK_BIT 1
  109. #define TLC_BLANK_PORT &PORTA
  110. #define TLC_DATA_BIT 2
  111. #define TLC_DATA_PORT &PORTA
  112. #define TLC_XLAT_BIT 0
  113. #define TLC_XLAT_PORT &PORTA
  114. // Change this to match your situation. Lots of TLCs takes up the arduino SRAM very quickly, so be careful
  115. // Leave it at at least 1 if you have enabled RA_LIGHTING
  116. // The number of TLC5947 boards chained together for use with the animation, additional ones will repeat the animation on them, but are not individually addressable and mimic those before them. You can leave the default at 2 even if you only have 1 TLC5947 module.
  117. #define NUM_TLCS 2
  118. // These TRANS_ARRAY values let you change the order the LEDs on the lighting modules will animate for chase functions.
  119. // Modify them according to your specific situation.
  120. // NOTE: the array should be 8 long for every TLC you have. These defaults assume (2) TLCs.
  121. #define TRANS_ARRAY { 0, 1, 2, 3, 4, 5, 6, 7, 15, 14, 13, 12, 11, 10, 9, 8 } // forward
  122. //#define TRANS_ARRAY { 7, 6, 5, 4, 3, 2, 1, 0, 8, 9, 10, 11, 12, 13, 14, 15 } // backward
  123. #endif // RA_DISCO