My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins_RAMPS_13.h 7.1KB

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