My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pins_RAMPS_13.h 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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) && defined(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. #ifdef 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. #ifdef 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) || defined(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 defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(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) || defined(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. #ifdef NUM_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. #ifdef Z_PROBE_SLED
  114. #define SLED_PIN -1
  115. #endif
  116. #ifdef ULTRA_LCD
  117. #ifdef NEWPANEL
  118. #ifdef 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. #ifdef 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 defined(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 defined(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 defined(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. #else
  164. // arduino pin which triggers an piezzo beeper
  165. #define BEEPER 33 // Beeper on AUX-4
  166. // buttons are directly attached using AUX-2
  167. #ifdef REPRAPWORLD_KEYPAD
  168. #define BTN_EN1 64 // encoder
  169. #define BTN_EN2 59 // encoder
  170. #define BTN_ENC 63 // enter button
  171. #define SHIFT_OUT 40 // shift register
  172. #define SHIFT_CLK 44 // shift register
  173. #define SHIFT_LD 42 // shift register
  174. #elif defined(PANEL_ONE)
  175. #define BTN_EN1 59 // AUX2 PIN 3
  176. #define BTN_EN2 63 // AUX2 PIN 4
  177. #define BTN_ENC 49 // AUX3 PIN 7
  178. #else
  179. #define BTN_EN1 37
  180. #define BTN_EN2 35
  181. #define BTN_ENC 31 // the click
  182. #endif
  183. #ifdef G3D_PANEL
  184. #define SDCARDDETECT 49
  185. #else
  186. #define SDCARDDETECT -1 // Ramps does not use this port
  187. #endif
  188. #endif
  189. #else // Old-style panel with shift register
  190. // Arduino pin witch triggers an piezzo beeper
  191. #define BEEPER 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
  205. #endif // ULTRA_LCD
  206. // SPI for Max6675 Thermocouple
  207. #ifndef 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. #ifndef 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