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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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. /**
  23. * IMPORTANT NOTE:
  24. * Rambo users should be sure to compile Marlin using either the RAMBo
  25. * board type if using the Arduino IDE - available via the link below - or
  26. * the 'rambo' environment if using platformio, by specifying '-e rambo' on
  27. * the command line or by changing the value of the 'env_default' variable to
  28. * 'rambo' in the supplied platformio.ini.
  29. *
  30. * If you don't compile using the proper board type, the RAMBo's extended
  31. * pins will likely be unavailable and accessories/addons may not work.
  32. *
  33. * Instructions for installing the Arduino RAMBo board type for the
  34. * Arduino IDE are available at:
  35. * http://reprap.org/wiki/Rambo_firmware
  36. */
  37. /**
  38. * Rambo pin assignments
  39. */
  40. #ifndef __AVR_ATmega2560__
  41. #error "Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu."
  42. #endif
  43. #define BOARD_NAME "Rambo"
  44. #define LARGE_FLASH true
  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. #if ENABLED(Z_PROBE_SLED)
  53. #define SLED_PIN -1
  54. #endif
  55. //
  56. // Limit Switches
  57. //
  58. #define X_MIN_PIN 12
  59. #define X_MAX_PIN 24
  60. #define Y_MIN_PIN 11
  61. #define Y_MAX_PIN 23
  62. #define Z_MIN_PIN 10
  63. #define Z_MAX_PIN 30
  64. //
  65. // Z Probe (when not Z_MIN_PIN)
  66. //
  67. #ifndef Z_MIN_PROBE_PIN
  68. #define Z_MIN_PROBE_PIN 30
  69. #endif
  70. //
  71. // Steppers
  72. //
  73. #define X_STEP_PIN 37
  74. #define X_DIR_PIN 48
  75. #define X_ENABLE_PIN 29
  76. #define X_MS1_PIN 40
  77. #define X_MS2_PIN 41
  78. #define Y_STEP_PIN 36
  79. #define Y_DIR_PIN 49
  80. #define Y_ENABLE_PIN 28
  81. #define Y_MS1_PIN 69
  82. #define Y_MS2_PIN 39
  83. #define Z_STEP_PIN 35
  84. #define Z_DIR_PIN 47
  85. #define Z_ENABLE_PIN 27
  86. #define Z_MS1_PIN 68
  87. #define Z_MS2_PIN 67
  88. #define E0_STEP_PIN 34
  89. #define E0_DIR_PIN 43
  90. #define E0_ENABLE_PIN 26
  91. #define E0_MS1_PIN 65
  92. #define E0_MS2_PIN 66
  93. #define E1_STEP_PIN 33
  94. #define E1_DIR_PIN 42
  95. #define E1_ENABLE_PIN 25
  96. #define E1_MS1_PIN 63
  97. #define E1_MS2_PIN 64
  98. #define DIGIPOTSS_PIN 38
  99. #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
  100. //
  101. // Temperature Sensors
  102. //
  103. #define TEMP_0_PIN 0
  104. #define TEMP_1_PIN 1
  105. #define TEMP_BED_PIN 2
  106. //
  107. // Heaters / Fans
  108. //
  109. #define HEATER_0_PIN 9
  110. #define HEATER_1_PIN 7
  111. #define HEATER_2_PIN 6
  112. #define HEATER_BED_PIN 3
  113. #define FAN_PIN 8
  114. #define FAN1_PIN 6
  115. #define FAN2_PIN 2
  116. //
  117. // Misc. Functions
  118. //
  119. #define SDSS 53
  120. #define LED_PIN 13
  121. #define FILWIDTH_PIN 3 // ANALOG NUMBERING
  122. #define PS_ON_PIN 4
  123. #if ENABLED(ULTRA_LCD)
  124. #define KILL_PIN 80
  125. #if ENABLED(NEWPANEL)
  126. #define LCD_PINS_RS 70
  127. #define LCD_PINS_ENABLE 71
  128. #define LCD_PINS_D4 72
  129. #define LCD_PINS_D5 73
  130. #define LCD_PINS_D6 74
  131. #define LCD_PINS_D7 75
  132. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  133. #define BEEPER_PIN 44
  134. //NB: Panucatt's Viki 2.0 wiring diagram (v1.2) indicates that the
  135. // beeper/buzzer is connected to pin 33; however, the pin used in the
  136. // diagram is actually pin 44, so this is correct.
  137. #define DOGLCD_A0 70
  138. #define DOGLCD_CS 71
  139. #define LCD_SCREEN_ROT_180
  140. #define BTN_EN1 85
  141. #define BTN_EN2 84
  142. #define BTN_ENC 83
  143. #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
  144. #define STAT_LED_RED_PIN 22
  145. #define STAT_LED_BLUE_PIN 32
  146. #else
  147. #define BEEPER_PIN 79 // AUX-4
  148. // AUX-2
  149. #define BTN_EN1 76
  150. #define BTN_EN2 77
  151. #define BTN_ENC 78
  152. #define SD_DETECT_PIN 81
  153. #endif // VIKI2/miniVIKI
  154. #else //!NEWPANEL - old style panel with shift register
  155. // No Beeper added
  156. #define BEEPER_PIN 33
  157. //buttons are attached to a shift register
  158. // Not wired yet
  159. //#define SHIFT_CLK 38
  160. //#define SHIFT_LD 42
  161. //#define SHIFT_OUT 40
  162. //#define SHIFT_EN 17
  163. #define LCD_PINS_RS 75
  164. #define LCD_PINS_ENABLE 17
  165. #define LCD_PINS_D4 23
  166. #define LCD_PINS_D5 25
  167. #define LCD_PINS_D6 27
  168. #define LCD_PINS_D7 29
  169. #endif // !NEWPANEL
  170. #endif // ULTRA_LCD