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_MKS_GEN_13.h 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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 with RAMPS v1.4 adjusted pin assignments
  25. *
  26. * MKS GEN v1.3 (Extruder, Fan, Bed)
  27. * MKS GEN v1.3 (Extruder, Extruder, Fan, Bed)
  28. * MKS GEN v1.4 (Extruder, Fan, Bed)
  29. * MKS GEN v1.4 (Extruder, Extruder, Fan, Bed)
  30. */
  31. #if HOTENDS > 2 || E_STEPPERS > 2
  32. #error "MKS GEN 1.3/1.4 supports up to 2 hotends / E-steppers. Comment out this line to continue."
  33. #endif
  34. #define BOARD_INFO_NAME "MKS GEN >= v1.3"
  35. //
  36. // Heaters / Fans
  37. //
  38. // Power outputs EFBF or EFBE
  39. #define MOSFET_D_PIN 7
  40. //
  41. // PSU / SERVO
  42. //
  43. // If PSU_CONTROL is specified, always hijack Servo 3
  44. //
  45. #if ENABLED(PSU_CONTROL)
  46. #define SERVO3_PIN -1
  47. #define PS_ON_PIN 4
  48. #endif
  49. #include "pins_RAMPS.h"
  50. //
  51. // LCD / Controller
  52. //
  53. #if ANY(VIKI2, miniVIKI)
  54. /**
  55. * VIKI2 Has two groups of wires with...
  56. *
  57. * +Vin + Input supply, requires 120ma for LCD and mSD card
  58. * GND Ground Pin
  59. * MOSI Data input for LCD and SD
  60. * MISO Data output for SD
  61. * SCK Clock for LCD and SD
  62. * AO Reg. Sel for LCD
  63. * LCS Chip Select for LCD
  64. * SDCS Chip Select for SD
  65. * SDCD Card Detect pin for SD
  66. * ENCA Encoder output A
  67. * ENCB Encoder output B
  68. * ENCBTN Encoder button switch
  69. *
  70. * BTN Panel mounted button switch
  71. * BUZZER Piezo buzzer
  72. * BLUE-LED Blue LED ring pin (3 to 5v, mosfet buffered)
  73. * RED-LED Red LED ring pin (3 to 5v, mosfet buffered)
  74. *
  75. * This configuration uses the following arrangement:
  76. *
  77. * EXP1 D37 = EN2 D35 = EN1 EXP2 D50 = MISO D52 = SCK
  78. * D17 = BLUE D16 = RED D31 = ENC D53 = SDCS
  79. * D23 = KILL D25 = BUZZ D33 = --- D51 = MOSI
  80. * D27 = A0 D29 = LCS D49 = SDCD RST = ---
  81. * GND = GND 5V = 5V GND = --- D41 = ---
  82. */
  83. #undef BTN_EN1
  84. #undef BTN_EN2
  85. #undef BTN_ENC
  86. #undef DOGLCD_A0
  87. #undef DOGLCD_CS
  88. #undef SD_DETECT_PIN
  89. #undef BEEPER_PIN
  90. #undef KILL_PIN
  91. #undef STAT_LED_RED_PIN
  92. #undef STAT_LED_BLUE_PIN
  93. //
  94. // VIKI2 12-wire lead
  95. //
  96. // orange/white SDCD
  97. #define SD_DETECT_PIN 49
  98. // white ENCA
  99. #define BTN_EN1 35
  100. // green ENCB
  101. #define BTN_EN2 37
  102. // purple ENCBTN
  103. #define BTN_ENC 31
  104. // brown A0
  105. #define DOGLCD_A0 27
  106. // green/white LCS
  107. #define DOGLCD_CS 29
  108. // 50 gray MISO
  109. // 51 yellow MOSI
  110. // 52 orange SCK
  111. // blue SDCS
  112. //#define SDSS 53
  113. //
  114. // VIKI2 4-wire lead
  115. //
  116. // blue BTN
  117. #define KILL_PIN 23
  118. // green BUZZER
  119. #define BEEPER_PIN 25
  120. // yellow RED-LED
  121. #define STAT_LED_RED_PIN 16
  122. // white BLUE-LED
  123. #define STAT_LED_BLUE_PIN 17
  124. #endif