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_AZSMZ_MINI.h 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. * AZSMZ MINI pin assignments
  25. */
  26. #include "env_validate.h"
  27. #define BOARD_INFO_NAME "AZSMZ Mini"
  28. //
  29. // Servos
  30. //
  31. #define SERVO0_PIN P1_23
  32. //
  33. // Limit Switches
  34. //
  35. #define X_STOP_PIN P1_24
  36. #define Y_STOP_PIN P1_26
  37. #define Z_MIN_PIN P1_28
  38. #define Z_MAX_PIN P1_29
  39. //
  40. // Steppers
  41. //
  42. #define X_STEP_PIN P2_00
  43. #define X_DIR_PIN P0_05
  44. #define X_ENABLE_PIN P0_04
  45. #define Y_STEP_PIN P2_01
  46. #define Y_DIR_PIN P0_11
  47. #define Y_ENABLE_PIN P0_10
  48. #define Z_STEP_PIN P2_02
  49. #define Z_DIR_PIN P0_20
  50. #define Z_ENABLE_PIN P0_19
  51. #define E0_STEP_PIN P2_03
  52. #define E0_DIR_PIN P0_22
  53. #define E0_ENABLE_PIN P0_21
  54. #define E1_STEP_PIN P2_08
  55. #define E1_DIR_PIN P2_13
  56. #define E1_ENABLE_PIN P4_29
  57. //
  58. // Temperature Sensors
  59. // 3.3V max when defined as an analog input
  60. //
  61. #define TEMP_0_PIN P0_23_A0 // A0 (TH1)
  62. #define TEMP_BED_PIN P0_24_A1 // A1 (TH2)
  63. #define TEMP_1_PIN P0_25_A2 // A2 (TH3)
  64. //
  65. // Heaters / Fans
  66. //
  67. // EFB
  68. #define HEATER_0_PIN P2_04
  69. #define HEATER_BED_PIN P2_05
  70. #ifndef FAN_PIN
  71. #define FAN_PIN P2_07
  72. #endif
  73. #define FAN1_PIN P0_26
  74. #define LCD_SDSS P0_16 // LCD SD chip select
  75. #if ENABLED(AZSMZ_12864)
  76. #define BEEPER_PIN P1_30
  77. #define DOGLCD_A0 P2_06
  78. #define DOGLCD_CS P1_22
  79. #define BTN_EN1 P4_28
  80. #define BTN_EN2 P1_27
  81. #define BTN_ENC P3_26
  82. #ifndef SDCARD_CONNECTION
  83. #define SDCARD_CONNECTION LCD
  84. #endif
  85. #endif
  86. #if SD_CONNECTION_IS(LCD)
  87. #define SD_SCK_PIN P0_15
  88. #define SD_MISO_PIN P0_17
  89. #define SD_MOSI_PIN P0_18
  90. #define SD_SS_PIN LCD_SDSS
  91. #define SD_DETECT_PIN P3_25
  92. #elif SD_CONNECTION_IS(ONBOARD)
  93. #define SD_SCK_PIN P0_07
  94. #define SD_MISO_PIN P0_08
  95. #define SD_MOSI_PIN P0_09
  96. #define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
  97. #define SD_SS_PIN ONBOARD_SD_CS_PIN
  98. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  99. #error "No custom SD drive cable defined for this board."
  100. #endif
  101. //
  102. // Ethernet pins
  103. //
  104. #define REF_CLK P1_15
  105. #define ENET_MDIO P1_17
  106. #define ENET_MOC P1_16
  107. #define ENET_CRS P1_08
  108. #define ENET_RX_ER P1_14
  109. #define ENET_TX_EN P1_04
  110. #define ENET_RXD0 P1_09
  111. #define ENET_RXD1 P1_10
  112. #define ENET_TXD0 P1_00
  113. #define ENET_TXD1 P1_01
  114. /**
  115. * PWMs
  116. *
  117. * There are 6 PWMs. Each PWM can be assigned to one of two pins.
  118. *
  119. * SERVO2 does NOT have a PWM assigned to it.
  120. *
  121. * PWM1.1 DIO4 SERVO3_PIN FIL_RUNOUT_PIN 5V output, PWM
  122. * PWM1.1 DIO26 E0_STEP_PIN
  123. * PWM1.2 DIO11 SERVO0_PIN
  124. * PWM1.2 DIO54 X_STEP_PIN
  125. * PWM1.3 DIO6 SERVO1_PIN J5-1
  126. * PWM1.3 DIO60 Y_STEP_PIN
  127. * PWM1.4 DIO53 SDSS(SSEL0) J3-5 AUX-3
  128. * PWM1.4 DIO46 Z_STEP_PIN
  129. * PWM1.5 DIO3 X_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
  130. * PWM1.5 DIO9 MOSFET_B_PIN
  131. * PWM1.6 DIO14 Y_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
  132. * PWM1.6 DIO10 MOSFET_A_PIN
  133. */
  134. /**
  135. * Special pins
  136. * D37 - not 5V tolerant
  137. * D49 - not 5V tolerant
  138. * D57 - open collector
  139. * D58 - open collector
  140. */