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_FYSETC_E4.h 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. * FYSETC E4 pin assignments
  25. * FYSETC E4 is a 3D printer control board based on the ESP32 microcontroller.
  26. * Supports 4 stepper drivers, heated bed, single hotend.
  27. */
  28. #include "env_validate.h"
  29. #if EXTRUDERS > 1 || E_STEPPERS > 1
  30. #error "FYSETC E4 only supports one E Stepper. Comment out this line to continue."
  31. #elif HOTENDS > 1
  32. #error "FYSETC E4 only supports one hotend / E-stepper. Comment out this line to continue."
  33. #endif
  34. #define BOARD_INFO_NAME "FYSETC_E4"
  35. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  36. //
  37. // Disable I2S stepper stream
  38. //
  39. #undef I2S_STEPPER_STREAM
  40. #define I2S_WS -1
  41. #define I2S_BCK -1
  42. #define I2S_DATA -1
  43. //
  44. // Limit Switches
  45. //
  46. #define X_STOP_PIN 34
  47. #define Y_STOP_PIN 35
  48. #define Z_STOP_PIN 15
  49. //
  50. // Steppers
  51. //
  52. #define X_STEP_PIN 27
  53. #define X_DIR_PIN 26
  54. #define X_ENABLE_PIN 25
  55. #define Y_STEP_PIN 33
  56. #define Y_DIR_PIN 32
  57. #define Y_ENABLE_PIN X_ENABLE_PIN
  58. #define Z_STEP_PIN 14
  59. #define Z_DIR_PIN 12
  60. #define Z_ENABLE_PIN X_ENABLE_PIN
  61. #define E0_STEP_PIN 16
  62. #define E0_DIR_PIN 17
  63. #define E0_ENABLE_PIN X_ENABLE_PIN
  64. #if HAS_TMC_UART
  65. //
  66. // TMC2209 stepper drivers
  67. //
  68. //
  69. // Hardware serial 1
  70. //
  71. #define X_HARDWARE_SERIAL Serial1
  72. #define Y_HARDWARE_SERIAL Serial1
  73. #define Z_HARDWARE_SERIAL Serial1
  74. #define E0_HARDWARE_SERIAL Serial1
  75. #define TMC_BAUD_RATE 115200
  76. #endif
  77. //
  78. // Temperature Sensors
  79. //
  80. #define TEMP_0_PIN 36 // Analog Input
  81. #define TEMP_BED_PIN 39 // Analog Input
  82. //
  83. // Heaters / Fans
  84. //
  85. #define HEATER_0_PIN 2
  86. #define FAN_PIN 13
  87. #define HEATER_BED_PIN 4
  88. //
  89. // MicroSD card
  90. //
  91. #define SD_MOSI_PIN 23
  92. #define SD_MISO_PIN 19
  93. #define SD_SCK_PIN 18
  94. #define SDSS 5
  95. #define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
  96. /**
  97. * Hardware serial pins
  98. *
  99. * Override these pins in Configuration.h or Configuration_adv.h if needed.
  100. *
  101. * Note: Serial2 can be defined using HARDWARE_SERIAL2_RX and HARDWARE_SERIAL2_TX
  102. * but MRR ESPA does not have enough spare pins for such reassignment.
  103. */
  104. #ifndef HARDWARE_SERIAL1_RX
  105. #define HARDWARE_SERIAL1_RX 21
  106. #endif
  107. #ifndef HARDWARE_SERIAL1_TX
  108. #define HARDWARE_SERIAL1_TX 22
  109. #endif