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_RAMBO.h 8.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. * 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. * https://reprap.org/wiki/Rambo_firmware
  37. */
  38. /**
  39. * Rambo pin assignments
  40. */
  41. #include "env_validate.h"
  42. #ifndef BOARD_INFO_NAME
  43. #define BOARD_INFO_NAME "Rambo"
  44. #endif
  45. //
  46. // Servos
  47. //
  48. #ifndef SERVO0_PIN
  49. #define SERVO0_PIN 22 // Motor header MX1
  50. #endif
  51. #define SERVO1_PIN 23 // Motor header MX2
  52. #ifndef SERVO2_PIN
  53. #define SERVO2_PIN 24 // Motor header MX3
  54. #endif
  55. #define SERVO3_PIN 5 // PWM header pin 5
  56. //
  57. // Limit Switches
  58. //
  59. #define X_MIN_PIN 12
  60. #define X_MAX_PIN 24
  61. #define Y_MIN_PIN 11
  62. #define Y_MAX_PIN 23
  63. #ifndef Z_MIN_PIN
  64. #define Z_MIN_PIN 10
  65. #endif
  66. #define Z_MAX_PIN 30
  67. //
  68. // Z Probe (when not Z_MIN_PIN)
  69. //
  70. #ifndef Z_MIN_PROBE_PIN
  71. #define Z_MIN_PROBE_PIN 30
  72. #endif
  73. #ifndef FIL_RUNOUT_PIN
  74. #define FIL_RUNOUT_PIN 5
  75. #endif
  76. //
  77. // Steppers
  78. //
  79. #define X_STEP_PIN 37
  80. #define X_DIR_PIN 48
  81. #define X_ENABLE_PIN 29
  82. #define Y_STEP_PIN 36
  83. #define Y_DIR_PIN 49
  84. #define Y_ENABLE_PIN 28
  85. #define Z_STEP_PIN 35
  86. #define Z_DIR_PIN 47
  87. #define Z_ENABLE_PIN 27
  88. #define E0_STEP_PIN 34
  89. #define E0_DIR_PIN 43
  90. #define E0_ENABLE_PIN 26
  91. #define E1_STEP_PIN 33
  92. #define E1_DIR_PIN 42
  93. #define E1_ENABLE_PIN 25
  94. // Microstepping pins - Mapping not from fastio.h (?)
  95. #define X_MS1_PIN 40
  96. #define X_MS2_PIN 41
  97. #define Y_MS1_PIN 69
  98. #define Y_MS2_PIN 39
  99. #define Z_MS1_PIN 68
  100. #define Z_MS2_PIN 67
  101. #define E0_MS1_PIN 65
  102. #define E0_MS2_PIN 66
  103. #define E1_MS1_PIN 63
  104. #define E1_MS2_PIN 64
  105. #define DIGIPOTSS_PIN 38
  106. #define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 } // X Y Z E0 E1 digipot channels to stepper driver mapping
  107. #ifndef DIGIPOT_MOTOR_CURRENT
  108. #define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 } // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
  109. #endif
  110. //
  111. // Temperature Sensors
  112. //
  113. #define TEMP_0_PIN 0 // Analog Input
  114. #define TEMP_1_PIN 1 // Analog Input
  115. #define TEMP_BED_PIN 2 // Analog Input
  116. //
  117. // Heaters / Fans
  118. //
  119. #define HEATER_0_PIN 9
  120. #define HEATER_1_PIN 7
  121. #define HEATER_2_PIN 6
  122. #define HEATER_BED_PIN 3
  123. #ifndef FAN_PIN
  124. #define FAN_PIN 8
  125. #endif
  126. #ifndef FAN1_PIN
  127. #define FAN1_PIN 6
  128. #endif
  129. #ifndef FAN2_PIN
  130. #define FAN2_PIN 2
  131. #endif
  132. //
  133. // Misc. Functions
  134. //
  135. #define SDSS 53
  136. #define LED_PIN 13
  137. #define PS_ON_PIN 4
  138. #ifndef CASE_LIGHT_PIN
  139. #define CASE_LIGHT_PIN 46
  140. #endif
  141. #ifndef FILWIDTH_PIN
  142. #define FILWIDTH_PIN 3 // Analog Input
  143. #endif
  144. //
  145. // M3/M4/M5 - Spindle/Laser Control
  146. //
  147. #define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
  148. #define SPINDLE_LASER_ENA_PIN 31 // Pullup!
  149. #define SPINDLE_DIR_PIN 32
  150. //
  151. // SPI for Max6675 or Max31855 Thermocouple
  152. //
  153. #ifndef MAX6675_SS_PIN
  154. #define MAX6675_SS_PIN 32 // SPINDLE_DIR_PIN / STAT_LED_BLUE_PIN
  155. #endif
  156. //
  157. // M7/M8/M9 - Coolant Control
  158. //
  159. #define COOLANT_MIST_PIN 22
  160. #define COOLANT_FLOOD_PIN 44
  161. //
  162. // Průša i3 MK2 Multiplexer Support
  163. //
  164. #define E_MUX0_PIN 17
  165. #define E_MUX1_PIN 16
  166. #define E_MUX2_PIN 84 // 84 in MK2 Firmware
  167. //
  168. // LCD / Controller
  169. //
  170. #if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
  171. #define KILL_PIN 80
  172. #if IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
  173. #define LCD_PINS_RS 70
  174. #define LCD_PINS_ENABLE 71
  175. #define LCD_PINS_D4 72
  176. #define LCD_PINS_D5 73
  177. #define LCD_PINS_D6 74
  178. #define LCD_PINS_D7 75
  179. #if ANY(VIKI2, miniVIKI)
  180. #define BEEPER_PIN 44
  181. // NB: Panucatt's Viki 2.0 wiring diagram (v1.2) indicates that the
  182. // beeper/buzzer is connected to pin 33; however, the pin used in the
  183. // diagram is actually pin 44, so this is correct.
  184. #define DOGLCD_A0 70
  185. #define DOGLCD_CS 71
  186. #define LCD_SCREEN_ROT_180
  187. #define BTN_EN1 85
  188. #define BTN_EN2 84
  189. #define BTN_ENC 83
  190. #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
  191. #define STAT_LED_RED_PIN 22
  192. #define STAT_LED_BLUE_PIN 32
  193. #else // !VIKI2 && !miniVIKI
  194. #define BEEPER_PIN 79 // AUX-4
  195. // AUX-2
  196. #ifndef BTN_EN1
  197. #define BTN_EN1 76
  198. #endif
  199. #ifndef BTN_EN2
  200. #define BTN_EN2 77
  201. #endif
  202. #define BTN_ENC 78
  203. #define SD_DETECT_PIN 81
  204. #endif // !VIKI2 && !miniVIKI
  205. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  206. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  207. #endif
  208. #else // !IS_NEWPANEL - old style panel with shift register
  209. // No Beeper added
  210. #define BEEPER_PIN 33
  211. // Buttons attached to a shift register
  212. // Not wired yet
  213. //#define SHIFT_CLK_PIN 38
  214. //#define SHIFT_LD_PIN 42
  215. //#define SHIFT_OUT_PIN 40
  216. //#define SHIFT_EN_PIN 17
  217. #define LCD_PINS_RS 75
  218. #define LCD_PINS_ENABLE 17
  219. #define LCD_PINS_D4 23
  220. #define LCD_PINS_D5 25
  221. #define LCD_PINS_D6 27
  222. #define LCD_PINS_D7 29
  223. #endif // !IS_NEWPANEL
  224. #endif // HAS_WIRED_LCD