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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. #if ENABLED(I2S_STEPPER_STREAM)
  50. #define I2S_WS 26
  51. #define I2S_BCK 25
  52. #define I2S_DATA 27
  53. #endif
  54. //
  55. // Steppers
  56. //
  57. #define X_STEP_PIN 129
  58. #define X_DIR_PIN 130
  59. #define X_ENABLE_PIN 128
  60. //#define X_CS_PIN 21
  61. #define Y_STEP_PIN 132
  62. #define Y_DIR_PIN 133
  63. #define Y_ENABLE_PIN 131
  64. //#define Y_CS_PIN 22
  65. #define Z_STEP_PIN 135
  66. #define Z_DIR_PIN 136
  67. #define Z_ENABLE_PIN 134
  68. //#define Z_CS_PIN 5 // SS_PIN
  69. #define E0_STEP_PIN 138
  70. #define E0_DIR_PIN 139
  71. #define E0_ENABLE_PIN 137
  72. //#define E0_CS_PIN 21
  73. #define E1_STEP_PIN 141
  74. #define E1_DIR_PIN 142
  75. #define E1_ENABLE_PIN 140
  76. //#define E1_CS_PIN 22
  77. #define Z2_STEP_PIN 141
  78. #define Z2_DIR_PIN 142
  79. #define Z2_ENABLE_PIN 140
  80. //#define Z2_CS_PIN 5
  81. //
  82. // Temperature Sensors
  83. //
  84. #define TEMP_0_PIN 36 // Analog Input
  85. #define TEMP_1_PIN 34 // Analog Input
  86. #define TEMP_BED_PIN 39 // Analog Input
  87. //
  88. // Heaters / Fans
  89. //
  90. #define HEATER_0_PIN 145 // 2
  91. #define FAN_PIN 146 // 15
  92. #define HEATER_BED_PIN 144 // 4
  93. #define CONTROLLER_FAN_PIN 147
  94. //#define E0_AUTO_FAN_PIN 148 // need to update Configuration_adv.h @section extruder
  95. //#define E1_AUTO_FAN_PIN 149 // need to update Configuration_adv.h @section extruder
  96. #define FAN1_PIN 149
  97. //
  98. // MicroSD card
  99. //
  100. #define SD_MOSI_PIN 23
  101. #define SD_MISO_PIN 19
  102. #define SD_SCK_PIN 18
  103. #define SDSS 5
  104. #define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
  105. //////////////////////////
  106. // LCDs and Controllers //
  107. //////////////////////////
  108. #if HAS_WIRED_LCD
  109. #define LCD_PINS_RS 13
  110. #define LCD_PINS_ENABLE 17
  111. #define LCD_PINS_D4 16
  112. #if ENABLED(CR10_STOCKDISPLAY)
  113. #define BEEPER_PIN 151
  114. #elif IS_RRD_FG_SC
  115. #define BEEPER_PIN 151
  116. //#define LCD_PINS_D5 150
  117. //#define LCD_PINS_D6 152
  118. //#define LCD_PINS_D7 153
  119. #else
  120. #error "Only CR10_STOCKDISPLAY and REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER are currently supported. Comment out this line to continue."
  121. #endif
  122. #define BTN_EN1 0
  123. #define BTN_EN2 12
  124. #define BTN_ENC 14
  125. #endif // HAS_MARLINUI_U8GLIB
  126. // Hardware serial pins
  127. // Add the following to Configuration.h or Configuration_adv.h to assign
  128. // specific pins to hardware Serial1 and Serial2.
  129. // Note: Serial2 can be defined using HARDWARE_SERIAL2_RX and HARDWARE_SERIAL2_TX but
  130. // MRR ESPA does not have enough spare pins for such reassignment.
  131. //#define HARDWARE_SERIAL1_RX 21
  132. //#define HARDWARE_SERIAL1_TX 22
  133. //#define HARDWARE_SERIAL2_RX 2
  134. //#define HARDWARE_SERIAL2_TX 4