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

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