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_RAMPS_13.h 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. /**
  2. * Arduino Mega with RAMPS v1.3 pin assignments
  3. *
  4. * Applies to the following boards:
  5. *
  6. * RAMPS_13_EFB (Extruder, Fan, Bed)
  7. * RAMPS_13_EEB (Extruder, Extruder, Bed)
  8. * RAMPS_13_EFF (Extruder, Fan, Fan)
  9. * RAMPS_13_EEF (Extruder, Extruder, Fan)
  10. * 3DRAG
  11. * K8200
  12. * AZTEEG_X3
  13. * AZTEEG_X3_PRO
  14. */
  15. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  16. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  17. #endif
  18. #define LARGE_FLASH true
  19. #define X_STEP_PIN 54
  20. #define X_DIR_PIN 55
  21. #define X_ENABLE_PIN 38
  22. #define X_MIN_PIN 3
  23. #define X_MAX_PIN 2
  24. #define Y_STEP_PIN 60
  25. #define Y_DIR_PIN 61
  26. #define Y_ENABLE_PIN 56
  27. #define Y_MIN_PIN 14
  28. #define Y_MAX_PIN 15
  29. #define Z_STEP_PIN 46
  30. #define Z_DIR_PIN 48
  31. #define Z_ENABLE_PIN 62
  32. #define Z_MIN_PIN 18
  33. #define Z_MAX_PIN 19
  34. #define Y2_STEP_PIN 36
  35. #define Y2_DIR_PIN 34
  36. #define Y2_ENABLE_PIN 30
  37. #define Z2_STEP_PIN 36
  38. #define Z2_DIR_PIN 34
  39. #define Z2_ENABLE_PIN 30
  40. #define E0_STEP_PIN 26
  41. #define E0_DIR_PIN 28
  42. #define E0_ENABLE_PIN 24
  43. #define E1_STEP_PIN 36
  44. #define E1_DIR_PIN 34
  45. #define E1_ENABLE_PIN 30
  46. #define SDPOWER -1
  47. #define SDSS 53
  48. #define LED_PIN 13
  49. #if MB(RAMPS_13_EEB) && defined(FILAMENT_SENSOR) // FMM added for Filament Extruder
  50. // define analog pin for the filament width sensor input
  51. // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
  52. #define FILWIDTH_PIN 5
  53. #endif
  54. #if MB(RAMPS_13_EFB) || MB(RAMPS_13_EFF) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO)
  55. #define FAN_PIN 9 // (Sprinter config)
  56. #if MB(RAMPS_13_EFF)
  57. #define CONTROLLERFAN_PIN -1 // Pin used for the fan to cool controller
  58. #endif
  59. #elif MB(RAMPS_13_EEF)
  60. #define FAN_PIN 8
  61. #else
  62. #define FAN_PIN 4 // IO pin. Buffer needed
  63. #endif
  64. #define PS_ON_PIN 12
  65. #if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
  66. #define KILL_PIN 41
  67. #else
  68. #define KILL_PIN -1
  69. #endif
  70. #if MB(RAMPS_13_EFF)
  71. #define HEATER_0_PIN 8
  72. #else
  73. #define HEATER_0_PIN 10 // EXTRUDER 1
  74. #endif
  75. #if MB(RAMPS_13_EFB) || MB(AZTEEG_X3)
  76. #define HEATER_1_PIN -1
  77. #else
  78. #define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
  79. #endif
  80. #define HEATER_2_PIN -1
  81. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  82. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  83. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  84. #if MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF)
  85. #define HEATER_BED_PIN -1 // NO BED
  86. #else
  87. #define HEATER_BED_PIN 8 // BED
  88. #endif
  89. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  90. #ifdef NUM_SERVOS
  91. #define SERVO0_PIN 11
  92. #if NUM_SERVOS > 1
  93. #define SERVO1_PIN 6
  94. #endif
  95. #if NUM_SERVOS > 2
  96. #define SERVO2_PIN 5
  97. #endif
  98. #if NUM_SERVOS > 3
  99. #define SERVO3_PIN 4
  100. #endif
  101. #endif
  102. #if MB(AZTEEG_X3_PRO)
  103. #define BEEPER 33
  104. #endif
  105. #ifdef TEMP_STAT_LEDS
  106. #if MB(AZTEEG_X3)
  107. #define STAT_LED_RED 6
  108. #define STAT_LED_BLUE 11
  109. #endif
  110. #endif
  111. #ifdef ULTRA_LCD
  112. #ifdef NEWPANEL
  113. #define LCD_PINS_RS 16
  114. #define LCD_PINS_ENABLE 17
  115. #define LCD_PINS_D4 23
  116. #define LCD_PINS_D5 25
  117. #define LCD_PINS_D6 27
  118. #define LCD_PINS_D7 29
  119. #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
  120. #define BEEPER 37
  121. #define BTN_EN1 31
  122. #define BTN_EN2 33
  123. #define BTN_ENC 35
  124. #define SDCARDDETECT 49
  125. #elif defined(LCD_I2C_PANELOLU2)
  126. #define BTN_EN1 47 // reverse if the encoder turns the wrong way.
  127. #define BTN_EN2 43
  128. #define BTN_ENC 32
  129. #define LCD_SDSS 53
  130. #define SDCARDDETECT -1
  131. #define KILL_PIN 41
  132. #elif defined(LCD_I2C_VIKI)
  133. #define BTN_EN1 22 // reverse if the encoder turns the wrong way.
  134. #define BTN_EN2 7
  135. #define BTN_ENC -1
  136. #define LCD_SDSS 53
  137. #define SDCARDDETECT 49
  138. #else
  139. // arduino pin which triggers an piezzo beeper
  140. #define BEEPER 33 // Beeper on AUX-4
  141. // buttons are directly attached using AUX-2
  142. #ifdef REPRAPWORLD_KEYPAD
  143. #define BTN_EN1 64 // encoder
  144. #define BTN_EN2 59 // encoder
  145. #define BTN_ENC 63 // enter button
  146. #define SHIFT_OUT 40 // shift register
  147. #define SHIFT_CLK 44 // shift register
  148. #define SHIFT_LD 42 // shift register
  149. #else
  150. #define BTN_EN1 37
  151. #define BTN_EN2 35
  152. #define BTN_ENC 31 // the click
  153. #endif
  154. #ifdef G3D_PANEL
  155. #define SDCARDDETECT 49
  156. #else
  157. #define SDCARDDETECT -1 // Ramps does not use this port
  158. #endif
  159. #endif
  160. #else // Old-style panel with shift register
  161. // Arduino pin witch triggers an piezzo beeper
  162. #define BEEPER 33 // No Beeper added
  163. // Buttons are attached to a shift register
  164. // Not wired yet
  165. // #define SHIFT_CLK 38
  166. // #define SHIFT_LD 42
  167. // #define SHIFT_OUT 40
  168. // #define SHIFT_EN 17
  169. #define LCD_PINS_RS 16
  170. #define LCD_PINS_ENABLE 17
  171. #define LCD_PINS_D4 23
  172. #define LCD_PINS_D5 25
  173. #define LCD_PINS_D6 27
  174. #define LCD_PINS_D7 29
  175. #endif
  176. #endif // ULTRA_LCD
  177. // SPI for Max6675 Thermocouple
  178. #ifndef SDSUPPORT
  179. #define MAX6675_SS 66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
  180. #else
  181. #define MAX6675_SS 66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
  182. #endif
  183. #ifndef SDSUPPORT
  184. // these pins are defined in the SD library if building with SD support
  185. #define SCK_PIN 52
  186. #define MISO_PIN 50
  187. #define MOSI_PIN 51
  188. #endif