My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pins_RAMPS_13.h 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. * RAMPS_13_SF (Spindle, Controller Fan)
  11. *
  12. * Other pins_MYBOARD.h files may override these defaults
  13. */
  14. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  15. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  16. #endif
  17. #define LARGE_FLASH true
  18. #define X_STEP_PIN 54
  19. #define X_DIR_PIN 55
  20. #define X_ENABLE_PIN 38
  21. #define X_MIN_PIN 3
  22. #define X_MAX_PIN 2
  23. #define Y_STEP_PIN 60
  24. #define Y_DIR_PIN 61
  25. #define Y_ENABLE_PIN 56
  26. #define Y_MIN_PIN 14
  27. #define Y_MAX_PIN 15
  28. #define Z_STEP_PIN 46
  29. #define Z_DIR_PIN 48
  30. #define Z_ENABLE_PIN 62
  31. #define Z_MIN_PIN 18
  32. #define Z_MAX_PIN 19
  33. #define Z_PROBE_PIN -1
  34. #define Y2_STEP_PIN 36
  35. #define Y2_DIR_PIN 34
  36. #define Y2_ENABLE_PIN 30
  37. #undef Z2_STEP_PIN
  38. #undef Z2_DIR_PIN
  39. #undef Z2_ENABLE_PIN
  40. #define Z2_STEP_PIN 36
  41. #define Z2_DIR_PIN 34
  42. #define Z2_ENABLE_PIN 30
  43. #define E0_STEP_PIN 26
  44. #define E0_DIR_PIN 28
  45. #define E0_ENABLE_PIN 24
  46. #define E1_STEP_PIN 36
  47. #define E1_DIR_PIN 34
  48. #define E1_ENABLE_PIN 30
  49. #define SDPOWER -1
  50. #define SDSS 53
  51. #define LED_PIN 13
  52. #if MB(RAMPS_13_EEB) && ENABLED(FILAMENT_SENSOR) // FMM added for Filament Extruder
  53. // define analog pin for the filament width sensor input
  54. // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
  55. #define FILWIDTH_PIN 5
  56. #endif
  57. #if ENABLED(Z_PROBE_ENDSTOP)
  58. // Define a pin to use as the signal pin on Arduino for the Z_PROBE endstop.
  59. #define Z_PROBE_PIN 32
  60. #endif
  61. #if ENABLED(FILAMENT_RUNOUT_SENSOR)
  62. // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
  63. #define FILRUNOUT_PIN 4
  64. #endif
  65. #if MB(RAMPS_13_EFF) || ENABLED(IS_RAMPS_EFB)
  66. #define FAN_PIN 9 // (Sprinter config)
  67. #if MB(RAMPS_13_EFF)
  68. #define CONTROLLERFAN_PIN -1 // Pin used for the fan to cool controller
  69. #endif
  70. #elif MB(RAMPS_13_EEF) || MB(RAMPS_13_SF)
  71. #define FAN_PIN 8
  72. #else
  73. #define FAN_PIN 4 // IO pin. Buffer needed
  74. #endif
  75. #define PS_ON_PIN 12
  76. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) || ENABLED(G3D_PANEL)
  77. #define KILL_PIN 41
  78. #else
  79. #define KILL_PIN -1
  80. #endif
  81. #if MB(RAMPS_13_EFF)
  82. #define HEATER_0_PIN 8
  83. #else
  84. #define HEATER_0_PIN 10 // EXTRUDER 1
  85. #endif
  86. #if MB(RAMPS_13_SF) || ENABLED(IS_RAMPS_EFB)
  87. #define HEATER_1_PIN -1
  88. #else
  89. #define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
  90. #endif
  91. #define HEATER_2_PIN -1
  92. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  93. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  94. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  95. #if MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF) || MB(RAMPS_13_SF)
  96. #define HEATER_BED_PIN -1 // NO BED
  97. #else
  98. #define HEATER_BED_PIN 8 // BED
  99. #endif
  100. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  101. #if HAS_SERVOS
  102. #define SERVO0_PIN 11
  103. #if NUM_SERVOS > 1
  104. #define SERVO1_PIN 6
  105. #if NUM_SERVOS > 2
  106. #define SERVO2_PIN 5
  107. #if NUM_SERVOS > 3
  108. #define SERVO3_PIN 4
  109. #endif
  110. #endif
  111. #endif
  112. #endif
  113. #if ENABLED(Z_PROBE_SLED)
  114. #define SLED_PIN -1
  115. #endif
  116. #if ENABLED(ULTRA_LCD)
  117. #if ENABLED(NEWPANEL)
  118. #if ENABLED(PANEL_ONE)
  119. #define LCD_PINS_RS 40
  120. #define LCD_PINS_ENABLE 42
  121. #define LCD_PINS_D4 65
  122. #define LCD_PINS_D5 66
  123. #define LCD_PINS_D6 44
  124. #define LCD_PINS_D7 64
  125. #else
  126. #define LCD_PINS_RS 16
  127. #define LCD_PINS_ENABLE 17
  128. #define LCD_PINS_D4 23
  129. #define LCD_PINS_D5 25
  130. #define LCD_PINS_D6 27
  131. #define LCD_PINS_D7 29
  132. #endif
  133. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  134. #define BEEPER 37
  135. #define BTN_EN1 31
  136. #define BTN_EN2 33
  137. #define BTN_ENC 35
  138. #define SDCARDDETECT 49
  139. #elif ENABLED(LCD_I2C_PANELOLU2)
  140. #define BTN_EN1 47 // reverse if the encoder turns the wrong way.
  141. #define BTN_EN2 43
  142. #define BTN_ENC 32
  143. #define LCD_SDSS 53
  144. #define SDCARDDETECT -1
  145. #define KILL_PIN 41
  146. #elif ENABLED(LCD_I2C_VIKI)
  147. #define BTN_EN1 22 // reverse if the encoder turns the wrong way.
  148. #define BTN_EN2 7
  149. #define BTN_ENC -1
  150. #define LCD_SDSS 53
  151. #define SDCARDDETECT 49
  152. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  153. #define BTN_EN1 35 // reverse if the encoder turns the wrong way.
  154. #define BTN_EN2 37
  155. #define BTN_ENC 31
  156. #define SDCARDDETECT 49
  157. #define LCD_SDSS 53
  158. #define KILL_PIN 41
  159. #define BEEPER 23
  160. #define DOGLCD_CS 29
  161. #define DOGLCD_A0 27
  162. #define LCD_PIN_BL 33
  163. #elif defined(MINIPANEL)
  164. #define BEEPER 42
  165. // Pins for DOGM SPI LCD Support
  166. #define DOGLCD_A0 44
  167. #define DOGLCD_CS 66
  168. #define LCD_PIN_BL 65 // backlight LED on A11/D65
  169. #define SDSS 53
  170. #define KILL_PIN 64
  171. // GLCD features
  172. //#define LCD_CONTRAST 190
  173. // Uncomment screen orientation
  174. // #define LCD_SCREEN_ROT_90
  175. // #define LCD_SCREEN_ROT_180
  176. // #define LCD_SCREEN_ROT_270
  177. //The encoder and click button
  178. #define BTN_EN1 40
  179. #define BTN_EN2 63
  180. #define BTN_ENC 59 //the click switch
  181. //not connected to a pin
  182. #define SDCARDDETECT 49
  183. #else
  184. // arduino pin which triggers an piezzo beeper
  185. #define BEEPER 33 // Beeper on AUX-4
  186. // buttons are directly attached using AUX-2
  187. #if ENABLED(REPRAPWORLD_KEYPAD)
  188. #define BTN_EN1 64 // encoder
  189. #define BTN_EN2 59 // encoder
  190. #define BTN_ENC 63 // enter button
  191. #define SHIFT_OUT 40 // shift register
  192. #define SHIFT_CLK 44 // shift register
  193. #define SHIFT_LD 42 // shift register
  194. #elif ENABLED(PANEL_ONE)
  195. #define BTN_EN1 59 // AUX2 PIN 3
  196. #define BTN_EN2 63 // AUX2 PIN 4
  197. #define BTN_ENC 49 // AUX3 PIN 7
  198. #else
  199. #define BTN_EN1 37
  200. #define BTN_EN2 35
  201. #define BTN_ENC 31 // the click
  202. #endif
  203. #if ENABLED(G3D_PANEL)
  204. #define SDCARDDETECT 49
  205. #else
  206. #define SDCARDDETECT -1 // Ramps does not use this port
  207. #endif
  208. #endif
  209. #else // !NEWPANEL (Old-style panel with shift register)
  210. // Arduino pin to trigger a piezzo beeper
  211. #define BEEPER 33 // No Beeper added
  212. // Buttons are attached to a shift register
  213. // Not wired yet
  214. // #define SHIFT_CLK 38
  215. // #define SHIFT_LD 42
  216. // #define SHIFT_OUT 40
  217. // #define SHIFT_EN 17
  218. #define LCD_PINS_RS 16
  219. #define LCD_PINS_ENABLE 17
  220. #define LCD_PINS_D4 23
  221. #define LCD_PINS_D5 25
  222. #define LCD_PINS_D6 27
  223. #define LCD_PINS_D7 29
  224. #endif // !NEWPANEL
  225. #endif // ULTRA_LCD
  226. // SPI for Max6675 Thermocouple
  227. #if DISABLED(SDSUPPORT)
  228. #define MAX6675_SS 66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
  229. #else
  230. #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
  231. #endif
  232. #if DISABLED(SDSUPPORT)
  233. // these pins are defined in the SD library if building with SD support
  234. #define SCK_PIN 52
  235. #define MISO_PIN 50
  236. #define MOSI_PIN 51
  237. #endif