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_ALLIGATOR_R2.h 5.6KB

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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Alligator Board R2
  25. * https://reprap.org/wiki/Alligator_Board
  26. */
  27. #ifndef __SAM3X8E__
  28. #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
  29. #endif
  30. #define BOARD_INFO_NAME "Alligator Board R2"
  31. //
  32. // Servos
  33. //
  34. #define SERVO0_PIN 36
  35. #define SERVO1_PIN 40
  36. #define SERVO2_PIN 41
  37. #define SERVO3_PIN -1
  38. //
  39. // Limit Switches
  40. //
  41. #define X_MIN_PIN 33 // PC1
  42. #define X_MAX_PIN 34 // PC2
  43. #define Y_MIN_PIN 35 // PC3
  44. #define Y_MAX_PIN 37 // PC5
  45. #define Z_MIN_PIN 38 // PC6
  46. #define Z_MAX_PIN 39 // PC7
  47. //
  48. // Steppers
  49. //
  50. #define X_STEP_PIN 96 // PB24
  51. #define X_DIR_PIN 2 // PB25
  52. #define X_ENABLE_PIN 24 // PA15, motor RESET pin
  53. #define Y_STEP_PIN 94 // PB22
  54. #define Y_DIR_PIN 95 // PB23
  55. #define Y_ENABLE_PIN 24 // PA15, motor RESET pin
  56. #define Z_STEP_PIN 98 // PC27
  57. #define Z_DIR_PIN 3 // PC28
  58. #define Z_ENABLE_PIN 24 // PA15, motor RESET pin
  59. #define E0_STEP_PIN 5 // PC25
  60. #define E0_DIR_PIN 4 // PC26
  61. #define E0_ENABLE_PIN 24 // PA15, motor RESET pin
  62. #define E1_STEP_PIN 28 // PD3 on piggy
  63. #define E1_DIR_PIN 27 // PD2 on piggy
  64. #define E1_ENABLE_PIN 24 // PA15, motor RESET pin
  65. #define E2_STEP_PIN 11 // PD7 on piggy
  66. #define E2_DIR_PIN 29 // PD6 on piggy
  67. #define E2_ENABLE_PIN 24 // PA15, motor RESET pin
  68. #define E3_STEP_PIN 30 // PD9 on piggy
  69. #define E3_DIR_PIN 12 // PD8 on piggy
  70. #define E3_ENABLE_PIN 24 // PA15, motor RESET pin
  71. // Microstepping pins - Mapping not from fastio.h (?)
  72. #define X_MS1_PIN 99 // PC10
  73. #define Y_MS1_PIN 10 // PC29
  74. #define Z_MS1_PIN 44 // PC19
  75. #define E0_MS1_PIN 45 // PC18
  76. //#define MOTOR_FAULT_PIN 22 // PB26 , motor X-Y-Z-E0 motor FAULT
  77. //
  78. // Temperature Sensors
  79. //
  80. #define TEMP_0_PIN 1 // Analog Input (PA24)
  81. #define TEMP_1_PIN 2 // Analog Input (PA23 on piggy)
  82. #define TEMP_2_PIN 3 // Analog Input (PA22 on piggy)
  83. #define TEMP_3_PIN 4 // Analog Input (PA6 on piggy)
  84. #define TEMP_BED_PIN 0 // Analog Input (PA16)
  85. //
  86. // Heaters / Fans
  87. //
  88. // Note that on the Due pin A0 on the board is channel 2 on the ARM chip
  89. #define HEATER_0_PIN 68 // PA1
  90. #define HEATER_1_PIN 8 // PC22 on piggy
  91. #define HEATER_2_PIN 9 // PC21 on piggy
  92. #define HEATER_3_PIN 97 // PC20 on piggy
  93. #define HEATER_BED_PIN 69 // PA0
  94. #ifndef FAN_PIN
  95. #define FAN_PIN 92 // PA5
  96. #endif
  97. #define FAN1_PIN 31 // PA7
  98. //
  99. // Misc. Functions
  100. //
  101. #define SDSS 77 // PA28
  102. #define SD_DETECT_PIN 87 // PA29
  103. #define LED_RED_PIN 40 // PC8
  104. #define LED_GREEN_PIN 41 // PC9
  105. #define EXP_VOLTAGE_LEVEL_PIN 65
  106. #define SPI_CHAN_DAC 1
  107. #define DAC0_SYNC 53 // PB14
  108. #define DAC1_SYNC 6 // PC24
  109. // 64K SPI EEPROM
  110. #define SPI_EEPROM
  111. #define SPI_CHAN_EEPROM1 2
  112. #define SPI_EEPROM1_CS 25 // PD0
  113. // 2K SPI EEPROM
  114. #define SPI_EEPROM2_CS 26 // PD1
  115. // FLASH SPI
  116. // 32Mb
  117. #define SPI_FLASH_CS 23 // PA14
  118. //
  119. // LCD / Controller
  120. //
  121. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  122. #define LCD_PINS_RS 18
  123. #define LCD_PINS_ENABLE 15
  124. #define LCD_PINS_D4 19
  125. #define BEEPER_PIN 64
  126. #define BTN_EN1 14
  127. #define BTN_EN2 16
  128. #define BTN_ENC 17
  129. #undef UI_VOLTAGE_LEVEL
  130. #define UI_VOLTAGE_LEVEL 1
  131. #endif // REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER