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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. /**
  23. * Arduino Mega with PICA pin assignments
  24. *
  25. * PICA is Power, Interface, and Control Adapter and is open source hardware.
  26. * See https://github.com/mjrice/PICA for schematics etc.
  27. *
  28. * Applies to PICA, PICA_REVB
  29. */
  30. #ifndef BOARD_NAME
  31. #define BOARD_NAME "PICA"
  32. #endif
  33. /*
  34. // Note that these are the "pins" that correspond to the analog inputs on the arduino mega.
  35. // These are not the same as the physical pin numbers
  36. AD0 = 54; AD1 = 55; AD2 = 56; AD3 = 57;
  37. AD4 = 58; AD5 = 59; AD6 = 60; AD7 = 61;
  38. AD8 = 62; AD9 = 63; AD10 = 64; AD11 = 65;
  39. AD12 = 66; AD13 = 67; AD14 = 68; AD15 = 69;
  40. */
  41. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  42. #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
  43. #endif
  44. //
  45. // Limit Switches
  46. //
  47. #define X_MIN_PIN 14
  48. #define X_MAX_PIN 15
  49. #define Y_MIN_PIN 16
  50. #define Y_MAX_PIN 17
  51. #define Z_MIN_PIN 23
  52. #define Z_MAX_PIN 22
  53. //
  54. // Steppers
  55. //
  56. #define X_STEP_PIN 55
  57. #define X_DIR_PIN 54
  58. #define X_ENABLE_PIN 60
  59. #define Y_STEP_PIN 57
  60. #define Y_DIR_PIN 56
  61. #define Y_ENABLE_PIN 61
  62. #define Z_STEP_PIN 59
  63. #define Z_DIR_PIN 58
  64. #define Z_ENABLE_PIN 62
  65. #define E0_STEP_PIN 67
  66. #define E0_DIR_PIN 24
  67. #define E0_ENABLE_PIN 26
  68. //
  69. // Temperature Sensors
  70. //
  71. #define TEMP_0_PIN 9 // Analog Input
  72. #define TEMP_1_PIN 10
  73. #define TEMP_BED_PIN 10
  74. #define TEMP_2_PIN 11
  75. #define TEMP_3_PIN 12
  76. //
  77. // Heaters / Fans
  78. //
  79. #ifndef HEATER_0_PIN
  80. #define HEATER_0_PIN 10 // E0
  81. #endif
  82. #ifndef HEATER_1_PIN
  83. #define HEATER_1_PIN 2 // E1
  84. #endif
  85. #define HEATER_BED_PIN 8 // HEAT-BED
  86. #ifndef FAN_PIN
  87. #define FAN_PIN 9
  88. #endif
  89. #ifndef FAN_2_PIN
  90. #define FAN_2_PIN 7
  91. #endif
  92. #define SDPOWER_PIN -1
  93. #define LED_PIN -1
  94. #define PS_ON_PIN -1
  95. #define KILL_PIN -1
  96. #define SSR_PIN 6
  97. // SPI for Max6675 or Max31855 Thermocouple
  98. #if DISABLED(SDSUPPORT)
  99. #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
  100. #else
  101. #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
  102. #endif
  103. //
  104. // SD Support
  105. //
  106. #define SD_DETECT_PIN 49
  107. #define SDSS 53
  108. //
  109. // LCD / Controller
  110. //
  111. #define BEEPER_PIN 29
  112. #if HAS_SPI_LCD
  113. #define LCD_PINS_RS 33
  114. #define LCD_PINS_ENABLE 30
  115. #define LCD_PINS_D4 35
  116. #define LCD_PINS_D5 32
  117. #define LCD_PINS_D6 37
  118. #define LCD_PINS_D7 36
  119. #define BTN_EN1 47
  120. #define BTN_EN2 48
  121. #define BTN_ENC 31
  122. #define LCD_SDSS 53
  123. #endif