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.0KB

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