My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

pins_RAMBO.h 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. * IMPORTANT NOTE:
  25. * Rambo users should be sure to compile Marlin using either the RAMBo
  26. * board type if using the Arduino IDE - available via the link below - or
  27. * the 'rambo' environment if using platformio, by specifying '-e rambo' on
  28. * the command line or by changing the value of the 'env_default' variable to
  29. * 'rambo' in the supplied platformio.ini.
  30. *
  31. * If you don't compile using the proper board type, the RAMBo's extended
  32. * pins will likely be unavailable and accessories/addons may not work.
  33. *
  34. * Instructions for installing the Arduino RAMBo board type for the
  35. * Arduino IDE are available at:
  36. * http://reprap.org/wiki/Rambo_firmware
  37. */
  38. /**
  39. * Rambo pin assignments
  40. */
  41. #ifndef __AVR_ATmega2560__
  42. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  43. #endif
  44. #define BOARD_INFO_NAME "Rambo"
  45. //
  46. // Servos
  47. //
  48. #define SERVO0_PIN 22 // Motor header MX1
  49. #define SERVO1_PIN 23 // Motor header MX2
  50. #define SERVO2_PIN 24 // Motor header MX3
  51. #define SERVO3_PIN 5 // PWM header pin 5
  52. //
  53. // Limit Switches
  54. //
  55. #define X_MIN_PIN 12
  56. #define X_MAX_PIN 24
  57. #define Y_MIN_PIN 11
  58. #define Y_MAX_PIN 23
  59. #define Z_MIN_PIN 10
  60. #define Z_MAX_PIN 30
  61. //
  62. // Z Probe (when not Z_MIN_PIN)
  63. //
  64. #ifndef Z_MIN_PROBE_PIN
  65. #define Z_MIN_PROBE_PIN 30
  66. #endif
  67. //
  68. // Steppers
  69. //
  70. #define X_STEP_PIN 37
  71. #define X_DIR_PIN 48
  72. #define X_ENABLE_PIN 29
  73. #define Y_STEP_PIN 36
  74. #define Y_DIR_PIN 49
  75. #define Y_ENABLE_PIN 28
  76. #define Z_STEP_PIN 35
  77. #define Z_DIR_PIN 47
  78. #define Z_ENABLE_PIN 27
  79. #define E0_STEP_PIN 34
  80. #define E0_DIR_PIN 43
  81. #define E0_ENABLE_PIN 26
  82. #define E1_STEP_PIN 33
  83. #define E1_DIR_PIN 42
  84. #define E1_ENABLE_PIN 25
  85. // Microstepping pins - Mapping not from fastio.h (?)
  86. #define X_MS1_PIN 40
  87. #define X_MS2_PIN 41
  88. #define Y_MS1_PIN 69
  89. #define Y_MS2_PIN 39
  90. #define Z_MS1_PIN 68
  91. #define Z_MS2_PIN 67
  92. #define E0_MS1_PIN 65
  93. #define E0_MS2_PIN 66
  94. #define E1_MS1_PIN 63
  95. #define E1_MS2_PIN 64
  96. #define DIGIPOTSS_PIN 38
  97. #define DIGIPOT_CHANNELS { 4,5,3,0,1 } // X Y Z E0 E1 digipot channels to stepper driver mapping
  98. #ifndef DIGIPOT_MOTOR_CURRENT
  99. #define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 } // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
  100. #endif
  101. //
  102. // Temperature Sensors
  103. //
  104. #define TEMP_0_PIN 0 // Analog Input
  105. #define TEMP_1_PIN 1 // Analog Input
  106. #define TEMP_BED_PIN 2 // Analog Input
  107. //
  108. // Heaters / Fans
  109. //
  110. #define HEATER_0_PIN 9
  111. #define HEATER_1_PIN 7
  112. #define HEATER_2_PIN 6
  113. #define HEATER_BED_PIN 3
  114. #ifndef FAN_PIN
  115. #define FAN_PIN 8
  116. #endif
  117. #define FAN1_PIN 6
  118. #define FAN2_PIN 2
  119. //
  120. // Misc. Functions
  121. //
  122. #define SDSS 53
  123. #define LED_PIN 13
  124. #define PS_ON_PIN 4
  125. #define CASE_LIGHT_PIN 46
  126. #ifndef FILWIDTH_PIN
  127. #define FILWIDTH_PIN 3 // Analog Input
  128. #endif
  129. //
  130. // M3/M4/M5 - Spindle/Laser Control
  131. //
  132. #define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
  133. #define SPINDLE_LASER_ENA_PIN 31 // Pullup!
  134. #define SPINDLE_DIR_PIN 32
  135. //
  136. // M7/M8/M9 - Coolant Control
  137. //
  138. #define COOLANT_MIST_PIN 22
  139. #define COOLANT_FLOOD_PIN 44
  140. //
  141. // Průša i3 MK2 Multiplexer Support
  142. //
  143. #define E_MUX0_PIN 17
  144. #define E_MUX1_PIN 16
  145. #define E_MUX2_PIN 84 // 84 in MK2 Firmware
  146. //
  147. // LCD / Controller
  148. //
  149. #if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
  150. #define KILL_PIN 80
  151. #if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL
  152. #define LCD_PINS_RS 70
  153. #define LCD_PINS_ENABLE 71
  154. #define LCD_PINS_D4 72
  155. #define LCD_PINS_D5 73
  156. #define LCD_PINS_D6 74
  157. #define LCD_PINS_D7 75
  158. #if ANY(VIKI2, miniVIKI)
  159. #define BEEPER_PIN 44
  160. // NB: Panucatt's Viki 2.0 wiring diagram (v1.2) indicates that the
  161. // beeper/buzzer is connected to pin 33; however, the pin used in the
  162. // diagram is actually pin 44, so this is correct.
  163. #define DOGLCD_A0 70
  164. #define DOGLCD_CS 71
  165. #define LCD_SCREEN_ROT_180
  166. #define BTN_EN1 85
  167. #define BTN_EN2 84
  168. #define BTN_ENC 83
  169. #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
  170. #define STAT_LED_RED_PIN 22
  171. #define STAT_LED_BLUE_PIN 32
  172. #else // !VIKI2 && !miniVIKI
  173. #define BEEPER_PIN 79 // AUX-4
  174. // AUX-2
  175. #define BTN_EN1 76
  176. #define BTN_EN2 77
  177. #define BTN_ENC 78
  178. #define SD_DETECT_PIN 81
  179. #endif // !VIKI2 && !miniVIKI
  180. #else // !NEWPANEL - old style panel with shift register
  181. // No Beeper added
  182. #define BEEPER_PIN 33
  183. // buttons are attached to a shift register
  184. // Not wired yet
  185. //#define SHIFT_CLK 38
  186. //#define SHIFT_LD 42
  187. //#define SHIFT_OUT 40
  188. //#define SHIFT_EN 17
  189. #define LCD_PINS_RS 75
  190. #define LCD_PINS_ENABLE 17
  191. #define LCD_PINS_D4 23
  192. #define LCD_PINS_D5 25
  193. #define LCD_PINS_D6 27
  194. #define LCD_PINS_D7 29
  195. #endif // !NEWPANEL
  196. #endif // HAS_SPI_LCD