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

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