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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2019 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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #ifndef STM32F4
  23. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  24. #endif
  25. #ifndef MACHINE_NAME
  26. #define MACHINE_NAME "STEVAL-3DP001V1"
  27. #endif
  28. #undef TEMP_TIMER
  29. #define TEMP_TIMER 9 // the Marlin default of timer 7 doesn't exist on the STM32MF401 series
  30. //
  31. // Limit Switches
  32. //
  33. #define X_MIN_PIN 38 // PD8 X_STOP
  34. #define X_MAX_PIN -1
  35. #define Y_MIN_PIN 39 // PD9 Y_STOP
  36. #define Y_MAX_PIN -1
  37. #define Z_MIN_PIN 40 // PD10 Z_STOP
  38. #define Z_MAX_PIN -1
  39. //
  40. // Z Probe (when not Z_MIN_PIN)
  41. //
  42. // #ifndef Z_MIN_PROBE_PIN
  43. // #define Z_MIN_PROBE_PIN 11 // PA4
  44. // #endif
  45. #define SCK_PIN 16 // PB13 SPI_S
  46. #define MISO_PIN 17 // PB14 SPI_M
  47. #define MOSI_PIN 18 // PB15 SPI_M
  48. //
  49. // Steppers
  50. //
  51. #define X_STEP_PIN 60 // PE14 X_PWM
  52. #define X_DIR_PIN 61 // PE15 X_DIR
  53. #define X_ENABLE_PIN 59 // PE13 X_RES
  54. #define X_CS_PIN 11 // PA4 SPI_CS
  55. #define Y_STEP_PIN 62 // PB10 Y_PWM
  56. #define Y_DIR_PIN 63 // PE9 Y_DIR
  57. #define Y_ENABLE_PIN 64 // PE10 Y_RES
  58. #define Y_CS_PIN 11 // PA4 SPI_CS
  59. #define Z_STEP_PIN 66 // PC6 Z_PWM
  60. #define Z_DIR_PIN 67 // PC0 Z_DIR
  61. #define Z_ENABLE_PIN 65 // PC15 Z_RES
  62. #define Z_CS_PIN 11 // PA4 SPI_CS
  63. #define E0_STEP_PIN 70 // PD12 E1_PW
  64. #define E0_DIR_PIN 68 // PC13 E1_DIR
  65. #define E0_ENABLE_PIN 69 // PC14 E1_RE
  66. #define E0_CS_PIN 11 // PA4 SPI_CS
  67. #define E1_STEP_PIN 72 // PE5 E2_PWM
  68. #define E1_DIR_PIN 73 // PE6 E2_DIR
  69. #define E1_ENABLE_PIN 71 // PE4 E2_RESE
  70. #define E1_CS_PIN 11 // PA4 SPI_CS
  71. #define E2_STEP_PIN 76 // PB8 E3_PWM
  72. #define E2_DIR_PIN 74 // PE2 E3_DIR
  73. #define E2_ENABLE_PIN 75 // PE3 E3_RESE
  74. #define E2_CS_PIN 11 // PA4 SPI_CS
  75. //
  76. // Temperature Sensors
  77. //
  78. #define TEMP_0_PIN 52 // PA0 E1_THER
  79. #define TEMP_1_PIN 53 // PA1 E2_THER
  80. #define TEMP_BED_PIN 50 // PC2 BED_THE
  81. //
  82. // Heaters / Fans
  83. //
  84. #define HEATER_0_PIN 52 // PA0 E1_THER
  85. #define HEATER_1_PIN 53 // PA1 E2_THER
  86. #define HEATER_BED_PIN 50 // PC2 BED_THE
  87. #define FAN_PIN 56 // PC4 E1_FAN PWM pin, Part cooling fan
  88. #define FAN1_PIN 57 // PC5 E2_FAN PWM pin, Extruder fan
  89. #define FAN2_PIN 58 // PE8 E3_FAN PWM pin, Controller fan
  90. //
  91. // Misc functions
  92. //
  93. #define SDSS 11 // PA4 SPI_CS
  94. #define LED_PIN -1 // Heart beat
  95. #define PS_ON_PIN -1
  96. #define KILL_PIN -1
  97. #define PWR_LOSS -1 // Power loss / nAC_FAULT
  98. //
  99. // LCD / Controller
  100. //
  101. //#define SD_DETECT_PIN 24 // PA15 SD_CA
  102. //#define BEEPER_PIN 23 // PC9 SDIO_D1
  103. //#define LCD_PINS_RS 63 // PE9 Y_DIR
  104. //#define LCD_PINS_ENABLE 58 // PE8 E3_FAN
  105. //#define LCD_PINS_D4 15 // PB12 SPI_C
  106. //#define LCD_PINS_D5 16 // PB13 SPI_S
  107. //#define LCD_PINS_D6 17 // PB14 SPI_M
  108. //#define LCD_PINS_D7 18 // PB15 SPI_M
  109. //#define BTN_EN1 56 // PC4 E1_FAN
  110. //#define BTN_EN2 57 // PC5 E2_FAN
  111. //#define BTN_ENC 51 // PC3 BED_THE
  112. //
  113. // Filament runout detection
  114. //
  115. //#define FIL_RUNOUT_PIN 55 // PA3 BED_THE
  116. //
  117. // Extension pins
  118. //
  119. //#define EXT0_PIN 48 // PB0 E2_HEAT
  120. //#define EXT1_PIN 49 // PB1 E3_HEAT
  121. //#define EXT2_PIN // PB2
  122. //#define EXT3_PIN 38 // PD8 X_STOP
  123. //#define EXT4_PIN 39 // PD9 Y_STOP
  124. //#define EXT5_PIN 40 // PD10 Z_STOP
  125. //#define EXT6_PIN 41 // PD11
  126. //#define EXT7_PIN 70 // PD12 E1_PW
  127. //#define EXT8_PIN 62 // PB10 Y_PWM
  128. //#define EXT9_PIN // PB11