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

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