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.6KB

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