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.

pins_MRR_ESPE.h 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * MRR ESPE pin assignments
  25. *
  26. * 3D printer control board based on the ESP32 microcontroller.
  27. * Supports 5 stepper drivers (using I2S stepper stream), heated bed,
  28. * single hotend, and LCD controller.
  29. */
  30. #include "env_validate.h"
  31. #if EXTRUDERS > 2 || E_STEPPERS > 2
  32. #error "MRR ESPE supports up to 2 E steppers."
  33. #elif HAS_MULTI_HOTEND
  34. #error "MRR ESPE only supports 1 hotend / E stepper."
  35. #endif
  36. #define BOARD_INFO_NAME "MRR ESPE"
  37. #define BOARD_WEBSITE_URL "github.com/maplerainresearch/MRR_ESPE"
  38. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  39. //
  40. // Limit Switches
  41. //
  42. #define X_STOP_PIN 35
  43. #define Y_STOP_PIN 32
  44. #define Z_STOP_PIN 33
  45. //
  46. // Enable I2S stepper stream
  47. //
  48. #define I2S_STEPPER_STREAM
  49. #define I2S_WS 26
  50. #define I2S_BCK 25
  51. #define I2S_DATA 27
  52. #if ENABLED(LIN_ADVANCE)
  53. #error "I2S stream is currently incompatible with LIN_ADVANCE."
  54. #endif
  55. //
  56. // Steppers
  57. //
  58. #define X_STEP_PIN 129
  59. #define X_DIR_PIN 130
  60. #define X_ENABLE_PIN 128
  61. //#define X_CS_PIN 21
  62. #define Y_STEP_PIN 132
  63. #define Y_DIR_PIN 133
  64. #define Y_ENABLE_PIN 131
  65. //#define Y_CS_PIN 22
  66. #define Z_STEP_PIN 135
  67. #define Z_DIR_PIN 136
  68. #define Z_ENABLE_PIN 134
  69. //#define Z_CS_PIN 5 // SS_PIN
  70. #define E0_STEP_PIN 138
  71. #define E0_DIR_PIN 139
  72. #define E0_ENABLE_PIN 137
  73. //#define E0_CS_PIN 21
  74. #define E1_STEP_PIN 141
  75. #define E1_DIR_PIN 142
  76. #define E1_ENABLE_PIN 140
  77. //#define E1_CS_PIN 22
  78. #define Z2_STEP_PIN 141
  79. #define Z2_DIR_PIN 142
  80. #define Z2_ENABLE_PIN 140
  81. //#define Z2_CS_PIN 5
  82. //
  83. // Temperature Sensors
  84. //
  85. #define TEMP_0_PIN 36 // Analog Input
  86. #define TEMP_1_PIN 34 // Analog Input
  87. #define TEMP_BED_PIN 39 // Analog Input
  88. //
  89. // Heaters / Fans
  90. //
  91. #define HEATER_0_PIN 145 // 2
  92. #define FAN_PIN 146 // 15
  93. #define HEATER_BED_PIN 144 // 4
  94. #define CONTROLLER_FAN_PIN 147
  95. //#define E0_AUTO_FAN_PIN 148 // need to update Configuration_adv.h @section extruder
  96. //#define E1_AUTO_FAN_PIN 149 // need to update Configuration_adv.h @section extruder
  97. #define FAN1_PIN 149
  98. //
  99. // MicroSD card
  100. //
  101. #define SD_MOSI_PIN 23
  102. #define SD_MISO_PIN 19
  103. #define SD_SCK_PIN 18
  104. #define SDSS 5
  105. #define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
  106. //////////////////////////
  107. // LCDs and Controllers //
  108. //////////////////////////
  109. #if HAS_WIRED_LCD
  110. #define LCD_PINS_RS 13
  111. #define LCD_PINS_ENABLE 17
  112. #define LCD_PINS_D4 16
  113. #if ENABLED(CR10_STOCKDISPLAY)
  114. #define BEEPER_PIN 151
  115. #elif IS_RRD_FG_SC
  116. #define BEEPER_PIN 151
  117. //#define LCD_PINS_D5 150
  118. //#define LCD_PINS_D6 152
  119. //#define LCD_PINS_D7 153
  120. #else
  121. #error "Only CR10_STOCKDISPLAY and REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER are currently supported. Comment out this line to continue."
  122. #endif
  123. #define BTN_EN1 0
  124. #define BTN_EN2 12
  125. #define BTN_ENC 14
  126. #endif // HAS_MARLINUI_U8GLIB
  127. // Hardware serial pins
  128. // Add the following to Configuration.h or Configuration_adv.h to assign
  129. // specific pins to hardware Serial1 and Serial2.
  130. // Note: Serial2 can be defined using HARDWARE_SERIAL2_RX and HARDWARE_SERIAL2_TX but
  131. // MRR ESPA does not have enough spare pins for such reassignment.
  132. //#define HARDWARE_SERIAL1_RX 21
  133. //#define HARDWARE_SERIAL1_TX 22
  134. //#define HARDWARE_SERIAL2_RX 2
  135. //#define HARDWARE_SERIAL2_TX 4