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.

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