My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_RAMPS_13.h 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. *
  11. * Other pins_MYBOARD.h files may override these defaults
  12. */
  13. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  14. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  15. #endif
  16. #define LARGE_FLASH true
  17. #define X_STEP_PIN 54
  18. #define X_DIR_PIN 55
  19. #define X_ENABLE_PIN 38
  20. #define X_MIN_PIN 3
  21. #define X_MAX_PIN 2
  22. #define Y_STEP_PIN 60
  23. #define Y_DIR_PIN 61
  24. #define Y_ENABLE_PIN 56
  25. #define Y_MIN_PIN 14
  26. #define Y_MAX_PIN 15
  27. #define Z_STEP_PIN 46
  28. #define Z_DIR_PIN 48
  29. #define Z_ENABLE_PIN 62
  30. #define Z_MIN_PIN 18
  31. #define Z_MAX_PIN 19
  32. #define Y2_STEP_PIN 36
  33. #define Y2_DIR_PIN 34
  34. #define Y2_ENABLE_PIN 30
  35. #define Z2_STEP_PIN 36
  36. #define Z2_DIR_PIN 34
  37. #define Z2_ENABLE_PIN 30
  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 MB(RAMPS_13_EEB) && defined(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 defined(FILAMENT_RUNOUT_SENSOR)
  53. // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
  54. #define FILRUNOUT_PIN 4
  55. #endif
  56. #if MB(RAMPS_13_EFB) || MB(RAMPS_13_EFF)
  57. #define FAN_PIN 9 // (Sprinter config)
  58. #if MB(RAMPS_13_EFF)
  59. #define CONTROLLERFAN_PIN -1 // Pin used for the fan to cool controller
  60. #endif
  61. #elif MB(RAMPS_13_EEF)
  62. #define FAN_PIN 8
  63. #else
  64. #define FAN_PIN 4 // IO pin. Buffer needed
  65. #endif
  66. #define PS_ON_PIN 12
  67. #if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
  68. #define KILL_PIN 41
  69. #else
  70. #define KILL_PIN -1
  71. #endif
  72. #if MB(RAMPS_13_EFF)
  73. #define HEATER_0_PIN 8
  74. #else
  75. #define HEATER_0_PIN 10 // EXTRUDER 1
  76. #endif
  77. #if MB(RAMPS_13_EFB)
  78. #define HEATER_1_PIN -1
  79. #else
  80. #define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
  81. #endif
  82. #define HEATER_2_PIN -1
  83. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  84. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  85. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  86. #if MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF)
  87. #define HEATER_BED_PIN -1 // NO BED
  88. #else
  89. #define HEATER_BED_PIN 8 // BED
  90. #endif
  91. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  92. #ifdef NUM_SERVOS
  93. #define SERVO0_PIN 11
  94. #if NUM_SERVOS > 1
  95. #define SERVO1_PIN 6
  96. #if NUM_SERVOS > 2
  97. #define SERVO2_PIN 5
  98. #if NUM_SERVOS > 3
  99. #define SERVO3_PIN 4
  100. #endif
  101. #endif
  102. #endif
  103. #endif
  104. #ifdef ULTRA_LCD
  105. #ifdef NEWPANEL
  106. #ifdef PANEL_ONE
  107. #define LCD_PINS_RS 40
  108. #define LCD_PINS_ENABLE 42
  109. #define LCD_PINS_D4 65
  110. #define LCD_PINS_D5 66
  111. #define LCD_PINS_D6 44
  112. #define LCD_PINS_D7 64
  113. #else
  114. #define LCD_PINS_RS 16
  115. #define LCD_PINS_ENABLE 17
  116. #define LCD_PINS_D4 23
  117. #define LCD_PINS_D5 25
  118. #define LCD_PINS_D6 27
  119. #define LCD_PINS_D7 29
  120. #endif
  121. #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
  122. #define BEEPER 37
  123. #define BTN_EN1 31
  124. #define BTN_EN2 33
  125. #define BTN_ENC 35
  126. #define SDCARDDETECT 49
  127. #elif defined(LCD_I2C_PANELOLU2)
  128. #define BTN_EN1 47 // reverse if the encoder turns the wrong way.
  129. #define BTN_EN2 43
  130. #define BTN_ENC 32
  131. #define LCD_SDSS 53
  132. #define SDCARDDETECT -1
  133. #define KILL_PIN 41
  134. #elif defined(LCD_I2C_VIKI)
  135. #define BTN_EN1 22 // reverse if the encoder turns the wrong way.
  136. #define BTN_EN2 7
  137. #define BTN_ENC -1
  138. #define LCD_SDSS 53
  139. #define SDCARDDETECT 49
  140. #else
  141. // arduino pin which triggers an piezzo beeper
  142. #define BEEPER 33 // Beeper on AUX-4
  143. // buttons are directly attached using AUX-2
  144. #ifdef REPRAPWORLD_KEYPAD
  145. #define BTN_EN1 64 // encoder
  146. #define BTN_EN2 59 // encoder
  147. #define BTN_ENC 63 // enter button
  148. #define SHIFT_OUT 40 // shift register
  149. #define SHIFT_CLK 44 // shift register
  150. #define SHIFT_LD 42 // shift register
  151. #elif defined(PANEL_ONE)
  152. #define BTN_EN1 59 // AUX2 PIN 3
  153. #define BTN_EN2 63 // AUX2 PIN 4
  154. #define BTN_ENC 49 // AUX3 PIN 7
  155. #else
  156. #define BTN_EN1 37
  157. #define BTN_EN2 35
  158. #define BTN_ENC 31 // the click
  159. #endif
  160. #ifdef G3D_PANEL
  161. #define SDCARDDETECT 49
  162. #else
  163. #define SDCARDDETECT -1 // Ramps does not use this port
  164. #endif
  165. #endif
  166. #else // Old-style panel with shift register
  167. // Arduino pin witch triggers an piezzo beeper
  168. #define BEEPER 33 // No Beeper added
  169. // Buttons are attached to a shift register
  170. // Not wired yet
  171. // #define SHIFT_CLK 38
  172. // #define SHIFT_LD 42
  173. // #define SHIFT_OUT 40
  174. // #define SHIFT_EN 17
  175. #define LCD_PINS_RS 16
  176. #define LCD_PINS_ENABLE 17
  177. #define LCD_PINS_D4 23
  178. #define LCD_PINS_D5 25
  179. #define LCD_PINS_D6 27
  180. #define LCD_PINS_D7 29
  181. #endif
  182. #endif // ULTRA_LCD
  183. // SPI for Max6675 Thermocouple
  184. #ifndef SDSUPPORT
  185. #define MAX6675_SS 66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
  186. #else
  187. #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
  188. #endif
  189. #ifndef SDSUPPORT
  190. // these pins are defined in the SD library if building with SD support
  191. #define SCK_PIN 52
  192. #define MISO_PIN 50
  193. #define MOSI_PIN 51
  194. #endif