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_TEENSY41.h 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. X_STEP_PIN CS1 RX1 PWM 0 | ##### | GND
  40. X_DIR_PIN MISO1 TX1 PWM 1 | | 3.3V
  41. Y_STEP_PIN PWM 2 | | 23 A9 PWM SERVO1_PIN
  42. Y_DIR_PIN PWM 3 | | 22 A8 PWM SERVO0_PIN
  43. Z_STEP_PIN PWM 4 | | 21 A7 RX5
  44. Z_DIR_PIN PWM 5 | | 20 A6 TX5 FILWIDTH_PIN
  45. X_ENABLE_PIN PWM 6 | | 19 A5 PWM SCL0
  46. Y_ENABLE_PIN RX2 PWM 7 | | 18 A4 PWM SDA0 HEATER_1_PIN
  47. Z_ENABLE_PIN TX2 PWM 8 | | 17 A3 RX4 SDA1
  48. E0_STEP_PIN PWM 9 | | 16 A2 TX4 SCL1 TEMP_0_PIN
  49. E0_DIR_PIN PWM 10 | | 15 A1 PWM RX3 TEMP_BED_PIN
  50. MOSI_PIN MOSI0 PWM 11 | | 14 A0 PWM TX3 TEMP_1_PIN
  51. MISO_PIN MISO0 PWM 12 | | 13 LED PWM SCK0 SCK_PIN
  52. 3.3V | | GND
  53. Z_STOP_PIN PWM 24 | | 41 A17
  54. E0_ENABLE_PIN PWM 25 | | 40 A16
  55. FAN_PIN MOSI1 26 | | 39 A15 MISO1 X_STOP_PIN
  56. Z-PROBE PWR SCK1 27 | * * * * * | 38 A14 Y_STOP_PIN
  57. SOL1_PIN RX7 PWM 28 | | 37 PWM HEATER_0_PIN
  58. FAN_PIN TX7 PWM 29 | | 36 PWM HEATER_BED_PIN
  59. X_CS_PIN 30 | | 35 TX8 E1_ENABLE_PIN
  60. y_CS_PIN 31 | SDCARD | 34 RX8 E1_DIR_PIN
  61. Z_CS_PIN 32 |_______________| 33 PWM E1_STEP_PIN
  62. */
  63. //
  64. // Limit Switches
  65. //
  66. #define X_STOP_PIN 39
  67. #define Y_STOP_PIN 38
  68. #define Z_STOP_PIN 24
  69. //
  70. // Steppers
  71. //
  72. #define X_STEP_PIN 0
  73. #define X_DIR_PIN 1
  74. #define X_ENABLE_PIN 6
  75. //#define X_CS_PIN 30
  76. #define Y_STEP_PIN 2
  77. #define Y_DIR_PIN 3
  78. #define Y_ENABLE_PIN 7
  79. //#define Y_CS_PIN 31
  80. #define Z_STEP_PIN 4
  81. #define Z_DIR_PIN 5
  82. #define Z_ENABLE_PIN 8
  83. //#define Z_CS_PIN 32
  84. #define E0_STEP_PIN 9
  85. #define E0_DIR_PIN 10
  86. #define E0_ENABLE_PIN 25
  87. #define E1_STEP_PIN 33
  88. #define E1_DIR_PIN 34
  89. #define E1_ENABLE_PIN 35
  90. #define HEATER_0_PIN 37
  91. #define HEATER_1_PIN 18
  92. #define HEATER_BED_PIN 36
  93. #ifndef FAN_PIN
  94. #define FAN_PIN 29
  95. #endif
  96. #define TEMP_0_PIN 2 // Extruder / Analog pin numbering: 2 => A2
  97. #define TEMP_1_PIN 0
  98. #define TEMP_BED_PIN 1 // Bed / Analog pin numbering
  99. #define LED_PIN 13
  100. //#define PS_ON_PIN 1
  101. //#define ALARM_PIN -1
  102. //#define FILWIDTH_PIN 6 // A6
  103. #define SOL0_PIN 28
  104. #define SERVO0_PIN 22
  105. #define SERVO1_PIN 23
  106. //#define SCK_PIN 13
  107. //#define MISO_PIN 12
  108. //#define MOSI_PIN 11
  109. #ifndef SDCARD_CONNECTION
  110. #define SDCARD_CONNECTION ONBOARD
  111. #endif