My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. * Teensy 4.1 (IMXRT1062) Breadboard pin assignments
  25. * Requires the Teensyduino software with Teensy 4.1 selected in Arduino IDE!
  26. * https://www.pjrc.com/teensy/teensyduino.html
  27. ****************************************************************************************/
  28. #if NOT_TARGET(IS_TEENSY41)
  29. #error "Oops! Select 'Teensy 4.1' in 'Tools > Board.'"
  30. #endif
  31. #define BOARD_INFO_NAME "Teensy4.1"
  32. /**
  33. * Plan for Teensy 4.0 and Teensy 4.1:
  34. * USB
  35. * GND |-----#####-----| VIN (3.65 TO 5.5V)
  36. * X_STEP_PIN CS1 RX1 PWM 0 | ##### | GND
  37. * X_DIR_PIN MISO1 TX1 PWM 1 | | 3.3V
  38. * Y_STEP_PIN PWM 2 | | 23 A9 PWM SERVO1_PIN
  39. * Y_DIR_PIN PWM 3 | | 22 A8 PWM SERVO0_PIN
  40. * Z_STEP_PIN PWM 4 | | 21 A7 RX5
  41. * Z_DIR_PIN PWM 5 | | 20 A6 TX5 FILWIDTH_PIN
  42. * X_ENABLE_PIN PWM 6 | | 19 A5 PWM SCL0
  43. * Y_ENABLE_PIN RX2 PWM 7 | | 18 A4 PWM SDA0 HEATER_1_PIN
  44. * Z_ENABLE_PIN TX2 PWM 8 | | 17 A3 RX4 SDA1
  45. * E0_STEP_PIN PWM 9 | | 16 A2 TX4 SCL1 TEMP_0_PIN
  46. * E0_DIR_PIN PWM 10 | | 15 A1 PWM RX3 TEMP_BED_PIN
  47. * MOSI_PIN MOSI0 PWM 11 | | 14 A0 PWM TX3 TEMP_1_PIN
  48. * MISO_PIN MISO0 PWM 12 | | 13 LED PWM SCK0 SCK_PIN
  49. * 3.3V | | GND
  50. * Z_STOP_PIN PWM 24 | | 41 A17
  51. * E0_ENABLE_PIN PWM 25 | | 40 A16
  52. * FAN_PIN MOSI1 26 | | 39 A15 MISO1 X_STOP_PIN
  53. * Z-PROBE PWR SCK1 27 | * * * * * | 38 A14 Y_STOP_PIN
  54. * SOL1_PIN RX7 PWM 28 | | 37 PWM HEATER_0_PIN
  55. * FAN_PIN TX7 PWM 29 | | 36 PWM HEATER_BED_PIN
  56. * X_CS_PIN 30 | | 35 TX8 E1_ENABLE_PIN
  57. * y_CS_PIN 31 | SDCARD | 34 RX8 E1_DIR_PIN
  58. * Z_CS_PIN 32 |_______________| 33 PWM E1_STEP_PIN
  59. */
  60. //
  61. // Servos
  62. //
  63. #define SERVO0_PIN 22
  64. #define SERVO1_PIN 23
  65. //
  66. // Limit Switches
  67. //
  68. #define X_STOP_PIN 39
  69. #define Y_STOP_PIN 38
  70. #define Z_STOP_PIN 24
  71. //
  72. // Steppers
  73. //
  74. #define X_STEP_PIN 0
  75. #define X_DIR_PIN 1
  76. #define X_ENABLE_PIN 6
  77. //#define X_CS_PIN 30
  78. #define Y_STEP_PIN 2
  79. #define Y_DIR_PIN 3
  80. #define Y_ENABLE_PIN 7
  81. //#define Y_CS_PIN 31
  82. #define Z_STEP_PIN 4
  83. #define Z_DIR_PIN 5
  84. #define Z_ENABLE_PIN 8
  85. //#define Z_CS_PIN 32
  86. #define E0_STEP_PIN 9
  87. #define E0_DIR_PIN 10
  88. #define E0_ENABLE_PIN 25
  89. #define E1_STEP_PIN 33
  90. #define E1_DIR_PIN 34
  91. #define E1_ENABLE_PIN 35
  92. //
  93. // Heaters / Fans
  94. //
  95. #define HEATER_0_PIN 37
  96. #define HEATER_1_PIN 18
  97. #define HEATER_BED_PIN 36
  98. #ifndef FAN_PIN
  99. #define FAN_PIN 29
  100. #endif
  101. //
  102. // Temperature Sensors
  103. //
  104. #define TEMP_0_PIN 2 // Extruder / Analog pin numbering: 2 => A2
  105. #define TEMP_1_PIN 0
  106. #define TEMP_BED_PIN 1 // Bed / Analog pin numbering
  107. //
  108. // Misc. Functions
  109. //
  110. #define LED_PIN 13
  111. #define SOL0_PIN 28
  112. //#define PS_ON_PIN 1
  113. //#define FILWIDTH_PIN 6 // A6
  114. #ifndef SDCARD_CONNECTION
  115. #define SDCARD_CONNECTION ONBOARD
  116. #endif