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_ULTRATRONICS_PRO.h 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. * ReprapWorld ULTRATRONICS v1.0
  25. */
  26. #ifndef ARDUINO_ARCH_SAM
  27. #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
  28. #endif
  29. #define BOARD_INFO_NAME "Ultratronics v1.0"
  30. //
  31. // Servos
  32. //
  33. #if NUM_SERVOS > 0
  34. #define SERVO0_PIN 11
  35. #if NUM_SERVOS > 1
  36. #define SERVO1_PIN 12
  37. #endif
  38. #endif
  39. //
  40. // Limit Switches
  41. //
  42. #define X_MIN_PIN 31
  43. #define X_MAX_PIN 30
  44. #define Y_MIN_PIN 12
  45. #define Y_MAX_PIN 11
  46. #define Z_MIN_PIN 29
  47. #define Z_MAX_PIN 28
  48. //
  49. // Steppers
  50. //
  51. #define X_STEP_PIN 35
  52. #define X_DIR_PIN 34
  53. #define X_ENABLE_PIN 37
  54. #ifndef X_CS_PIN
  55. #define X_CS_PIN 18
  56. #endif
  57. #define Y_STEP_PIN 22
  58. #define Y_DIR_PIN 23
  59. #define Y_ENABLE_PIN 33
  60. #ifndef Y_CS_PIN
  61. #define Y_CS_PIN 19
  62. #endif
  63. #define Z_STEP_PIN 25
  64. #define Z_DIR_PIN 26
  65. #define Z_ENABLE_PIN 24
  66. #ifndef Z_CS_PIN
  67. #define Z_CS_PIN 16
  68. #endif
  69. #define E0_STEP_PIN 47
  70. #define E0_DIR_PIN 46
  71. #define E0_ENABLE_PIN 48
  72. #ifndef E0_CS_PIN
  73. #define E0_CS_PIN 17
  74. #endif
  75. #define E1_STEP_PIN 44
  76. #define E1_DIR_PIN 36
  77. #define E1_ENABLE_PIN 45
  78. #ifndef E1_CS_PIN
  79. #define E1_CS_PIN -1
  80. #endif
  81. #define E2_STEP_PIN 42
  82. #define E2_DIR_PIN 41
  83. #define E2_ENABLE_PIN 43
  84. #ifndef E2_CS_PIN
  85. #define E2_CS_PIN -1
  86. #endif
  87. #define E3_STEP_PIN 39
  88. #define E3_DIR_PIN 38
  89. #define E3_ENABLE_PIN 40
  90. #ifndef E3_CS_PIN
  91. #define E3_CS_PIN -1
  92. #endif
  93. //
  94. // Temperature Sensors
  95. //
  96. #define TEMP_0_PIN 0 // Analog Input
  97. #define TEMP_1_PIN 2 // Analog Input
  98. #define TEMP_2_PIN 3 // Analog Input
  99. #define TEMP_3_PIN 4 // Analog Input
  100. #define TEMP_BED_PIN 1 // Analog Input
  101. //
  102. // Heaters / Fans
  103. //
  104. #define HEATER_0_PIN 3
  105. #define HEATER_1_PIN 8
  106. #define HEATER_2_PIN 7
  107. #define HEATER_3_PIN 9
  108. #define HEATER_BED_PIN 2
  109. #ifndef FAN_PIN
  110. #define FAN_PIN 6
  111. #endif
  112. #define FAN2_PIN 5
  113. //
  114. // Misc. Functions
  115. //
  116. #define SDSS 59
  117. #define SD_DETECT_PIN 60
  118. #define LED_PIN 13
  119. #define PS_ON_PIN 32
  120. //
  121. // SPI Buses
  122. //
  123. #define DAC0_SYNC 53 // PB14
  124. #define SPI_CHAN_DAC 1
  125. #define SPI_CHAN_EEPROM1 -1
  126. #define SPI_EEPROM1_CS -1
  127. #define SPI_EEPROM2_CS -1
  128. #define SPI_FLASH_CS -1
  129. // SPI for Max6675 or Max31855 Thermocouple
  130. #define MAX6675_SS_PIN 65
  131. #define MAX31855_SS0 65
  132. #define MAX31855_SS1 52
  133. #define MAX31855_SS2 50
  134. #define MAX31855_SS3 51
  135. #define ENC424_SS 61
  136. //
  137. // LCD / Controller
  138. //
  139. #define BEEPER_PIN 27
  140. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  141. #define LCD_PINS_RS A8 // CS chip select / SS chip slave select
  142. #define LCD_PINS_ENABLE MOSI // SID (MOSI)
  143. #define LCD_PINS_D4 SCK // SCK (CLK) clock
  144. #define BTN_EN1 20
  145. #define BTN_EN2 21
  146. #define BTN_ENC 64
  147. #endif // REPRAPWORLD_GRAPHICAL_LCD