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_TRONXY_V3_1_0.h 9.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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. #pragma once
  23. /**
  24. * Arduino Mega for Tronxy X5S-2E, etc.
  25. */
  26. #ifndef __AVR_ATmega2560__
  27. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  28. #elif HOTENDS > 2 || E_STEPPERS > 2
  29. #error "TRONXY-V3-1.0 supports only 2 hotends/E-steppers. Comment out this line to continue."
  30. #endif
  31. #define BOARD_INFO_NAME "TRONXY-V3-1.0"
  32. //
  33. // Servos
  34. //
  35. #define SERVO1_PIN 12 // 2560 PIN 25/PB6
  36. //
  37. // Import RAMPS 1.4 pins
  38. //
  39. #include "pins_RAMPS.h"
  40. /**
  41. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  42. *
  43. * ===== AUX-1 connector =====
  44. *
  45. * 2 4 6 8
  46. * #----------------#
  47. * #2 | ° ° ° ° |
  48. * #1 | ° ° ° ° |
  49. * NOTCH #------ ------#
  50. * 1 3 5 7
  51. *
  52. * ###################################
  53. * # Pin | ATMEGA2560 Pin | Arduino #
  54. * ###################################
  55. * # 1 | VCC | + #
  56. * # 2 | VCC | + #
  57. * # 3 | GND | - #
  58. * # 4 | GND | - #
  59. * # 5 | N/C | #
  60. * # 6 | 3 / PE1 (TXD0) | D1 #
  61. * # 7 | N/C | #
  62. * # 8 | 2 / PE0 (RXD0) | D0 #
  63. * ###################################
  64. *
  65. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  66. *
  67. * ===== Limit Switch connectors =====
  68. *
  69. * ############## X+ #################
  70. * X+ # Pin | ATMEGA2560 Pin | Arduino #
  71. * 1 2 3 ###################################
  72. * #- --- -# # 1 | 6 / PE4 (INT4) | D2 #
  73. * | ° ° ° | # 2 | GND | - #
  74. * #-------# # 3 | VCC | + #
  75. * ###################################
  76. *
  77. * ############## X- #################
  78. * X- # Pin | ATMEGA2560 Pin | Arduino #
  79. * 1 2 3 ###################################
  80. * #- --- -# # 1 | 7 / PE5 (INT5) | D3 #
  81. * | ° ° ° | # 2 | GND | - #
  82. * #-------# # 3 | VCC | + #
  83. * ###################################
  84. *
  85. * ############## Y+ #################
  86. * Y+ # Pin | ATMEGA2560 Pin | Arduino #
  87. * 1 2 3 ###################################
  88. * #- --- -# # 1 | 63/PJ0 (PCINT9) | D15 #
  89. * | ° ° ° | # 2 | GND | - #
  90. * #-------# # 3 | VCC | + #
  91. * ###################################
  92. *
  93. * ############## Y- #################
  94. * Y- # Pin | ATMEGA2560 Pin | Arduino #
  95. * 1 2 3 ###################################
  96. * #- --- -# # 1 | 64/PJ1 (PCINT10)| D14 #
  97. * | ° ° ° | # 2 | GND | - #
  98. * #-------# # 3 | VCC | + #
  99. * ###################################
  100. *
  101. * ############## Z+ #################
  102. * Z+ # Pin | ATMEGA2560 Pin | Arduino #
  103. * 1 2 3 ###################################
  104. * #- --- -# # 1 | 45 / PD2 (INT2) | D19 #
  105. * | ° ° ° | # 2 | GND | - #
  106. * #-------# # 3 | VCC | + #
  107. * ###################################
  108. *
  109. * ############## Z- #################
  110. * Z- # Pin | ATMEGA2560 Pin | Arduino #
  111. * 1 2 3 ###################################
  112. * #- --- -# # 1 | 46 / PD3 (INT3) | D18 #
  113. * | ° ° ° | # 2 | GND | - #
  114. * #-------# # 3 | VCC | + #
  115. * ###################################
  116. *
  117. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  118. *
  119. * ===== EXP1/EXP2 connectors =====
  120. *
  121. * (NOTE ORDER) EXP2 EXP1
  122. * 2 4 6 8 10 2 4 6 8 10
  123. * #-------------------# #-------------------#
  124. * #2 | ° ° ° ° ° | #2 | ° ° ° ° ° |
  125. * #1 | ° ° ° ° ° | #1 | ° ° ° ° ° |
  126. * NOTCH #-------- -------# NOTCH #-------- -------#
  127. * 1 3 5 7 9 1 3 5 7 9
  128. *
  129. * ############# EXP1 ################
  130. * # Pin | ATMEGA2560 Pin | Arduino #
  131. * ###################################
  132. * # 1 | 53 / PC0 | D37 #
  133. * # 2 | 55 / PC2 | D35 #
  134. * # 3 | 12 / PH0 (RXD2) | D17 #
  135. * # 4 | 13 / PH1 (TXD2) | D16 #
  136. * # 5 | 77 / PA1 | D23 #
  137. * # 6 | 75 / PA3 | D25 #
  138. * # 7 | 73 / PA5 | D27 #
  139. * # 8 | 71 / PA7 | D29 #
  140. * # 9 | GND | - #
  141. * # 10 | VCC | + #
  142. * ###################################
  143. *
  144. * ############# EXP2 ################
  145. * # Pin | ATMEGA2560 Pin | Arduino #
  146. * ###################################
  147. * # 1 | 22 / PB3 (MISO) | D50 #
  148. * # 2 | 20 / PB1 (SCK) | D52 #
  149. * # 3 | 59 / PC6 | D31 #
  150. * # 4 | N/C | #
  151. * # 5 | 57 / PC4 | D33 #
  152. * # 6 | 21 / PB2 (MOSI) | D51 #
  153. * # 7 | N/C | #
  154. * # 8 | 30 / !RESET | RESET #
  155. * # 9 | GND | - #
  156. * # 10 | 51 / PG0 | D41 #
  157. * ###################################
  158. *
  159. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  160. *
  161. * ===== ICSP connector =====
  162. *
  163. * 2 4 6
  164. * #---------#
  165. * | ° ° ° |
  166. * | ° ° ° |
  167. * #---------#
  168. * 1 3 5
  169. *
  170. * ##################################
  171. * # Pin | ATMEGA2560 Pin | Arduino #
  172. * ##################################
  173. * # 1 | 22 / PB3 (MISO)| 50 #
  174. * # 2 | VCC | + #
  175. * # 3 | 20 / PB1 (SCK) | 52 #
  176. * # 4 | 21 / PB2 (MOSI)| 51 #
  177. * # 5 | 30 / !RESET | RESET #
  178. * # 6 | GND | - #
  179. * ##################################
  180. *
  181. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  182. *
  183. * ===== SERVOS connector =====
  184. *
  185. * 2 4 6
  186. * #---------#
  187. * | ° ° ° |
  188. * | ° ° ° |
  189. * #---------#
  190. * 1 3 5
  191. *
  192. * ##################################
  193. * # Pin | ATMEGA2560 Pin | Arduino #
  194. * ##################################
  195. * # 1 | 25 / PB6 (OC1B)| D12 #
  196. * # 2 | 24 / PB5 (OC1A)| D11 #
  197. * # 3 | GND | - #
  198. * # 4 | GND | - #
  199. * # 5 | VCC | + #
  200. * # 6 | VCC | + #
  201. * ##################################
  202. *
  203. * NOTE: Pins 1 and 2 are the ones closest to the "L" and "PWR" LEDs.
  204. *
  205. * NOTE: Check servo wiring before connecting, for example:
  206. * + Airtronics (non-Z) use: Red = +; Black = -; Black & White, White or Orange = signal.
  207. * + Airtronics-Z use: Red = +; Black = -; Blue = signal.
  208. * + Futaba use: Red = +; Black = -; White = signal.
  209. * + Hitec use: Red = +; Black = -; Yellow = signal.
  210. * + JR use: Red = +; Brown = -; Orange = signal.
  211. *
  212. * NOTE: Test your servo limits:
  213. * Due to effects of component tolerances and/or age, the usable range of S-values for individual servos may be less than the settable 0-255 range. For example:
  214. * 1. One servo may have a fully usable range of M280 P0 S0 through M280 P0 S255.
  215. * 2. A different servo (of the same brand and model) may have a usable range of only M280 P0 S0 through M280 P0 S165 after which you experience binding.
  216. *
  217. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  218. *
  219. * ===== Thermistor connectors =====
  220. *
  221. * (NOTE ORDER) TH2 TH1 TB
  222. * 1 2 1 2 1 2
  223. * #- -# #- -# #- -#
  224. * | ° ° | | ° ° | | ° ° |
  225. * #-----# #-----# #-----#
  226. *
  227. * ############## TB #################
  228. * # Pin | ATMEGA2560 Pin | Arduino #
  229. * ###################################
  230. * # 1 | GND | - #
  231. * # 2 | 83 / PK6 (ADC14)| A14 #
  232. * ###################################
  233. *
  234. * ############## TH1 ################
  235. * # Pin | ATMEGA2560 Pin | Arduino #
  236. * ###################################
  237. * # 1 | GND | - #
  238. * # 2 | 84 / PK5 (ADC13)| A13 #
  239. * ###################################
  240. *
  241. * ############## TH2 ################
  242. * # Pin | ATMEGA2560 Pin | Arduino #
  243. * ###################################
  244. * # 1 | GND | - #
  245. * # 2 | 82 / PK7 (ADC15)| A15 #
  246. * ###################################
  247. *
  248. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  249. *
  250. * ===== XS3 connector =====
  251. *
  252. * 2 4 6
  253. * #---------#
  254. * | ° ° ° |
  255. * | ° ° ° |
  256. * #---------#
  257. * 1 3 5
  258. *
  259. * ##################################
  260. * # Pin | ATMEGA2560 Pin | Arduino #
  261. * ##################################
  262. * # 1 | 85 / ADC12 | A12 #
  263. * # 2 | 86 / ADC11 | A11 #
  264. * # 3 | GND | - #
  265. * # 4 | GND | - #
  266. * # 5 | VCC | + #
  267. * # 6 | VCC | + #
  268. * ##################################
  269. *
  270. * NOTE: Pins 1 and 2 are the ones closest to the "L" and "PWR" LEDs.
  271. *
  272. * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  273. */