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 4.5KB

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