My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_DUPLICATOR_I3_PLUS.h 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. * Wanhao Duplicator i3 Plus pin assignments
  25. */
  26. #define REQUIRE_MEGA2560
  27. #include "env_validate.h"
  28. #define BOARD_INFO_NAME "Duplicator i3 Plus"
  29. //
  30. // Limit Switches
  31. //
  32. #define X_STOP_PIN 54 // PF0 / A0
  33. #define Y_STOP_PIN 24 // PA2 / AD2
  34. #define Z_MIN_PIN 23 // PA1 / AD1
  35. #define Z_MAX_PIN 25 // PA3 / AD3
  36. #define SERVO0_PIN 40 // PG1 / !RD
  37. //
  38. // Steppers
  39. //
  40. #define X_STEP_PIN 61 // PF7 / A7
  41. #define X_DIR_PIN 62 // PK0 / A8
  42. #define X_ENABLE_PIN 60 // PF6 / A6
  43. #define Y_STEP_PIN 64 // PK2 / A10
  44. #define Y_DIR_PIN 65 // PK3 / A11
  45. #define Y_ENABLE_PIN 63 // PK1 / A9
  46. #define Z_STEP_PIN 67 // PK5 / A13
  47. #define Z_DIR_PIN 69 // PK7 / A15
  48. #define Z_ENABLE_PIN 66 // PK4 / A12
  49. #define Z_MIN_PROBE_PIN 25 // PA3 / AD3
  50. #define E0_STEP_PIN 58 // PF4 / A4
  51. #define E0_DIR_PIN 59 // PF5 / A5
  52. #define E0_ENABLE_PIN 57 // PF3 / A3
  53. //
  54. // Temperature Sensors
  55. //
  56. #define TEMP_0_PIN 1 // PF1 / A1 Analog
  57. #define TEMP_BED_PIN 14 // PK6 / A14 Analog
  58. //
  59. // Heaters / Fans
  60. //
  61. #define HEATER_0_PIN 4 // PG5 / PWM4
  62. #define HEATER_BED_PIN 3 // PE5 / PWM3
  63. #define FAN_PIN 5 // PE3 / PWM5
  64. //
  65. // Misc. Functions
  66. //
  67. #define SDSS 53 // PB0 / SS
  68. #define LED_PIN 13 // PB7 / PWM13
  69. #define SD_MISO_PIN 50 // PB3
  70. #define SD_MOSI_PIN 51 // PB2
  71. #define SD_SCK_PIN 52 // PB1
  72. //
  73. // LCDs and Controllers
  74. //
  75. #if HAS_WIRED_LCD
  76. #if ENABLED(ZONESTAR_LCD)
  77. #define LCD_PINS_RS 2
  78. #define LCD_PINS_ENABLE 36
  79. #define LCD_PINS_D4 37
  80. #define LCD_PINS_D5 34
  81. #define LCD_PINS_D6 35
  82. #define LCD_PINS_D7 32
  83. #define ADC_KEYPAD_PIN 12 // Analog
  84. #endif
  85. #endif
  86. /**
  87. * == EXT connector ==
  88. *
  89. * 2 4 6 8 10
  90. * #---------------#
  91. * #2 | ° ° ° ° ° |
  92. * #1 | ° ° ° ° ° |
  93. * #---------------#
  94. * 1 3 5 7 9
  95. *
  96. * ##################################
  97. * # Pin | ATMEGA2560 Pin | Arduino #
  98. * ##################################
  99. * # 1 | 52 / PG1 (!RD) | 40 #
  100. * # 2 | 95 / PF2 (A2) | 56 #
  101. * # 3 | 54 / PC1 (A9) | 36 #
  102. * # 4 | 53 / PC0 (A8) | 37 #
  103. * # 5 | 56 / PC3 (A11) | 34 #
  104. * # 6 | 55 / PC2 (A10) | 35 #
  105. * # 7 | 58 / PC5 (A13) | 32 #
  106. * # 8 | 57 / PC4 (A12) | 33 #
  107. * # 9 | GND | - #
  108. * # 10 | VCC | + #
  109. * ##################################
  110. *
  111. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  112. *
  113. * == Z-probe connector ==
  114. *
  115. * 1 2 3
  116. * #---------#
  117. * | ° ° ° |
  118. * #---------#
  119. *
  120. * ##################################
  121. * # Pin | ATMEGA2560 Pin | Arduino #
  122. * ##################################
  123. * # 1 | 24V or 5V | + #
  124. * # 2 | 75 / PA3 (AD3) | 25 #
  125. * # 3 | GND | - #
  126. * ##################################
  127. *
  128. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  129. *
  130. * == Y-endstop == == Z-endstop == == Bed temperature ==
  131. *
  132. * 1 2 1 2 1 2
  133. * #------# #------# #------#
  134. * | ° ° | | ° ° | | ° ° |
  135. * #------# #------# #------#
  136. *
  137. * ############### Y ################ ############### Z ################ ############## BED ###############
  138. * # Pin | ATMEGA2560 Pin | Arduino # # Pin | ATMEGA2560 Pin | Arduino # # Pin | ATMEGA2560 Pin | Arduino #
  139. * ################################## ################################## ##################################
  140. * # 1 | GND | - # # 1 | GND | - # # 1 | GND | - #
  141. * # 2 | 76 / PA2 (AD2) | 24 # # 2 | 77 / PA1 (AD1) | 23 # # 2 |83 / PK6 (ADC14)| 14 #
  142. * ################################## ################################## ##################################
  143. *
  144. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  145. *
  146. * == SPI connector ==
  147. *
  148. * 5 3 1
  149. * #---------#
  150. * | ° ° ° |
  151. * | ° ° ° |
  152. * #---------#
  153. * 6 4 2
  154. *
  155. * ##################################
  156. * # Pin | ATMEGA2560 Pin | Arduino #
  157. * ##################################
  158. * # 1 | 22 / PB3 (MISO)| 50 #
  159. * # 2 | VCC | + #
  160. * # 3 | 20 / PB1 (SCK) | 52 #
  161. * # 4 | 21 / PB2 (MOSI)| 51 #
  162. * # 5 | 30 / !RESET | RESET #
  163. * # 6 | GND | - #
  164. * ##################################
  165. *
  166. * Pictogram by Ludy https://github.com/Ludy87
  167. * See: https://sebastien.andrivet.com/en/posts/wanhao-duplicator-i3-plus-3d-printer/
  168. */