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_PANDA_common.h 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2021 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. * Panda common pin assignments
  25. */
  26. #include "env_validate.h"
  27. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  28. //
  29. // Servos
  30. //
  31. #define SERVO0_PIN 0
  32. //
  33. // Limit Switches
  34. //
  35. #define X_STOP_PIN 4
  36. #define Y_STOP_PIN 35
  37. #define Z_STOP_PIN 21
  38. //
  39. // Steppers
  40. //
  41. #define X_STEP_PIN 101
  42. #define X_DIR_PIN 100
  43. #define Y_STEP_PIN 103
  44. #define Y_DIR_PIN 102
  45. #define Z_STEP_PIN 105
  46. #define Z_DIR_PIN 104
  47. #define E0_STEP_PIN 107
  48. #define E0_DIR_PIN 106
  49. //
  50. // Temperature Sensors
  51. //
  52. #define TEMP_0_PIN 39 // Analog Input
  53. #define TEMP_BED_PIN 36 // Analog Input
  54. #if ENABLED(MAX31856_PANDAPI)
  55. #define MAX31856_CLK_PIN 29
  56. #define MAX31856_MISO_PIN 24
  57. #define MAX31856_MOSI_PIN 28
  58. #define MAX31856_CS_PIN 27
  59. #endif
  60. //
  61. // Heaters / Fans
  62. //
  63. #define HEATER_0_PIN 108
  64. #define HEATER_BED_PIN 109
  65. #define FAN_PIN 118 // FAN0
  66. #define FAN1_PIN 119 // FAN1
  67. #ifndef E0_AUTO_FAN_PIN
  68. #define E0_AUTO_FAN_PIN 120 // FAN2
  69. #endif
  70. /** ------ ------
  71. * (MISO 19?) |10 9 | (18 SCK?) (BEEPER) 129 |10 9 | 12 (^ENC)
  72. * (EN1) 33 | 8 7 | (5 SDSS?) (EN) 26 | 8 7 | 27 (RS)
  73. * (EN2) 32 6 5 | (23 MOSI?) (D4) 14 | 6 5 --
  74. * (SDDET 2?) | 4 3 | (RESET) -- | 4 3 | --
  75. * -- | 2 1 | -- (GND) | 2 1 | (5V)
  76. * ------ ------
  77. * EXP2 EXP1
  78. */
  79. #define EXP1_06_PIN 14
  80. #define EXP1_07_PIN 27
  81. #define EXP1_08_PIN 26
  82. #define EXP1_09_PIN 12
  83. #define EXP1_10_PIN 129
  84. #define EXP2_04_PIN 2 // ?
  85. #define EXP2_05_PIN 23 // ?
  86. #define EXP2_06_PIN 32
  87. #define EXP2_07_PIN 5 // ?
  88. #define EXP2_08_PIN 33
  89. #define EXP2_09_PIN 18 // ?
  90. #define EXP2_10_PIN 19 // ?
  91. //
  92. // SD Card
  93. //
  94. #if ENABLED(SDSUPPORT)
  95. #define SD_MOSI_PIN EXP2_05_PIN
  96. #define SD_MISO_PIN EXP2_10_PIN
  97. #define SD_SCK_PIN EXP2_09_PIN
  98. #define SDSS EXP2_07_PIN
  99. #define SD_DETECT_PIN EXP2_04_PIN
  100. #endif
  101. #if HAS_WIRED_LCD
  102. #define BEEPER_PIN EXP1_10_PIN
  103. #define BTN_ENC EXP1_09_PIN
  104. #define BTN_EN1 EXP2_08_PIN
  105. #define BTN_EN2 EXP2_06_PIN
  106. #define LCD_PINS_RS EXP1_07_PIN
  107. #define LCD_PINS_ENABLE EXP1_08_PIN
  108. #define LCD_PINS_D4 EXP1_06_PIN
  109. #endif