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_T41U5XBB.h 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 !IS_32BIT_TEENSY || !IS_TEENSY41
  29. #error "Oops! Select 'Teensy 4.1' in 'Tools > Board.'"
  30. #else
  31. #define BOARD_INFO_NAME "Teensy4.1"
  32. #endif
  33. #define AT90USB 1286 // Disable MarlinSerial etc.
  34. #define USBCON //1286 // Disable MarlinSerial etc.
  35. /*
  36. plan for Teensy4.0 and Teensy4.1:
  37. USB
  38. GND |-----#####-----| VIN (3.65 TO 5.5V)
  39. RX1 CS1 RX1 PWM 0 | ##### | GND
  40. TX1 MISO1 TX1 PWM 1 | | 3.3V
  41. STPX PWM 2 | | 23 A9 PWM
  42. DIRX PWM 3 | | 22 A8 PWM LIMZ
  43. STPY PWM 4 | | 21 A7 RX5 LIMY
  44. DIRY PWM 5 | | 20 A6 TX5 LIMX
  45. STPZ PWM 6 | | 19 A5 PWM SCL0 COOL
  46. DIRZ RX2 PWM 7 | | 18 A4 PWM SDA0 MIST
  47. STPA TX2 PWM 8 | | 17 A3 RX4 SDA1 CYST
  48. DIRA PWM 9 | | 16 A2 TX4 SCL1 EHOLD
  49. STEN PWM 10 | | 15 A1 PWM RX3 PRB
  50. SPDI MOSI0 PWM 11 | | 14 A0 PWM TX3 PANIC
  51. SPEN MISO0 PWM 12 | | 13 LED PWM SCK0 SPWM
  52. 3.3V | | GND
  53. SCL PWM 24 | | 41 A17 KPSTR
  54. SDA PWM 25 | | 40 A16 STENY
  55. STPB MOSI1 26 | | 39 A15 MISO1 STENZ
  56. DIRB SCK1 27 | * * * * * | 38 A14 STENA
  57. LIMB RX7 PWM 28 | | 37 PWM STENB
  58. DOOR TX7 PWM 29 | | 36 PWM ST0
  59. ST1 30 | | 35 TX8 ST3
  60. AUX0 31 | SDCARD | 34 RX8 ST2
  61. AUX1 32 |_______________| 33 PWM AUX2
  62. */
  63. //
  64. // Limit Switches
  65. //
  66. #define X_STOP_PIN 20
  67. #define Y_STOP_PIN 21
  68. #define Z_STOP_PIN 22
  69. //
  70. // Steppers
  71. //
  72. #define X_STEP_PIN 2
  73. #define X_DIR_PIN 3
  74. #define X_ENABLE_PIN 10
  75. //#define X_CS_PIN 30
  76. #define Y_STEP_PIN 4
  77. #define Y_DIR_PIN 5
  78. #define Y_ENABLE_PIN 40
  79. //#define Y_CS_PIN 31
  80. #define Z_STEP_PIN 6
  81. #define Z_DIR_PIN 7
  82. #define Z_ENABLE_PIN 39
  83. //#define Z_CS_PIN 32
  84. #define E0_STEP_PIN 8
  85. #define E0_DIR_PIN 9
  86. #define E0_ENABLE_PIN 38
  87. #define E1_STEP_PIN 26
  88. #define E1_DIR_PIN 27
  89. #define E1_ENABLE_PIN 37
  90. #define HEATER_0_PIN 31
  91. #define HEATER_1_PIN 32
  92. #define HEATER_BED_PIN 33
  93. #define TEMP_0_PIN 5 // Extruder / Analog pin numbering: 2 => A2
  94. #define TEMP_1_PIN 4
  95. #define TEMP_BED_PIN 15 // Bed / Analog pin numbering
  96. #define LED_PIN 13
  97. #define SOL0_PIN 17
  98. #define SERVO0_PIN 24
  99. #define SERVO1_PIN 25
  100. #ifndef SDCARD_CONNECTION
  101. #define SDCARD_CONNECTION ONBOARD
  102. #endif