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_MKS_ROBIN.h 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. /**
  23. * MKS Robin (STM32F130ZET6) board pin assignments
  24. */
  25. #ifndef __STM32F1__
  26. #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
  27. #endif
  28. #if HOTENDS > 2 || E_STEPPERS > 2
  29. #error "MKS Robin supports up to 2 hotends / E-steppers. Comment out this line to continue."
  30. #endif
  31. #define BOARD_NAME "MKS Robin"
  32. //
  33. // Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
  34. //
  35. #define DISABLE_DEBUG
  36. //
  37. // Servos
  38. //
  39. #define SERVO0_PIN PC3 // XS1 - 5
  40. #define SERVO1_PIN PA1 // XS1 - 6
  41. #define SERVO2_PIN PF9 // XS2 - 5
  42. #define SERVO3_PIN PF8 // XS2 - 6
  43. //
  44. // Limit Switches
  45. //
  46. #define X_MIN_PIN PB12
  47. #define X_MAX_PIN PB0
  48. #define Y_MIN_PIN PC5
  49. #define Y_MAX_PIN PC4
  50. #define Z_MIN_PIN PA4
  51. #define Z_MAX_PIN PF7
  52. //
  53. // Steppers
  54. //
  55. #define X_ENABLE_PIN PB9
  56. #define X_STEP_PIN PB8
  57. #define X_DIR_PIN PB5
  58. #define Y_ENABLE_PIN PB4
  59. #define Y_STEP_PIN PG15
  60. #define Y_DIR_PIN PG10
  61. #define Z_ENABLE_PIN PD7
  62. #define Z_STEP_PIN PD3
  63. #define Z_DIR_PIN PG14
  64. #define E0_ENABLE_PIN PG13
  65. #define E0_STEP_PIN PG8
  66. #define E0_DIR_PIN PA15
  67. #define E1_ENABLE_PIN PA12
  68. #define E1_STEP_PIN PA11
  69. #define E1_DIR_PIN PA8
  70. //
  71. // Temperature Sensors
  72. //
  73. #define TEMP_0_PIN PC1 // TH1
  74. #define TEMP_1_PIN PC2 // TH2
  75. #define TEMP_BED_PIN PC0 // TB1
  76. //
  77. // Heaters / Fans
  78. //
  79. #define HEATER_0_PIN PC7 // HEATER1
  80. #define HEATER_1_PIN PA6 // HEATER2
  81. #define HEATER_BED_PIN PC6 // HOT BED
  82. #define FAN_PIN PA7 // FAN
  83. /**
  84. * Note: MKS Robin board is using SPI2 interface. Make sure your stm32duino library is configured accordingly
  85. */
  86. //#define MAX6675_SS_PIN PE5 // TC1 - CS1
  87. //#define MAX6675_SS_PIN PE6 // TC2 - CS2
  88. #define POWER_LOSS_PIN PA2 // PW_DET
  89. #define PS_ON_PIN PA3 // PW_OFF
  90. #define FIL_RUNOUT_PIN PF11 // MT_DET
  91. #define BEEPER_PIN PC13
  92. #define LED_PIN PB2
  93. /**
  94. * Note: MKS Robin TFT screens may have different TFT controllers
  95. * If the screen stays white, disable 'LCD_RESET_PIN' to rely on the bootloader to do screen initialization.
  96. *
  97. * Enabling 'LCD_RESET_PIN' causes flickering when entering the LCD menu due to LCD controller reset.
  98. * Reset feature was designed to "revive the LCD if static electricity killed it."
  99. */
  100. //#define LCD_RESET_PIN PF6
  101. #define LCD_BACKLIGHT_PIN PG11
  102. #define FSMC_CS_PIN PG12 // NE4
  103. #define FSMC_RS_PIN PF0 // A0
  104. #define SD_DETECT_PIN PF12
  105. #define SDSS -1