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_EMOTRONIC.h 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2022 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. * eMotion-Tech eMotronic pin assignments
  25. *
  26. * Board pins<->features assignments are based on the
  27. * Micro-Delta Rework printer default connections.
  28. */
  29. #include "env_validate.h"
  30. #define BOARD_INFO_NAME "eMotronic"
  31. #define BOARD_WEBSITE_URL "www.reprap-france.com/article/lemotronic-quesaco"
  32. //
  33. // Limit Switches
  34. //
  35. #define X_STOP_PIN P1_22 // S0
  36. #define Y_STOP_PIN P1_23 // S1
  37. #define Z_STOP_PIN P1_24 // S2
  38. #define I_STOP_PIN P1_25 // S3
  39. #ifndef Z_MIN_PROBE_PIN
  40. #define Z_MIN_PROBE_PIN P0_26 // S4 (opto)
  41. #endif
  42. //
  43. // Steppers
  44. //
  45. #define X_STEP_PIN P2_02 // M3
  46. #define X_DIR_PIN P4_28
  47. #define X_ENABLE_PIN P4_29
  48. #define Y_STEP_PIN P2_01 // M2
  49. #define Y_DIR_PIN P0_22
  50. #define Y_ENABLE_PIN P0_21
  51. #define Z_STEP_PIN P2_00 // M1
  52. #define Z_DIR_PIN P3_26
  53. #define Z_ENABLE_PIN P3_25
  54. #define E0_STEP_PIN P2_03 // M4
  55. #define E0_DIR_PIN P0_04
  56. #define E0_ENABLE_PIN P0_05 // Correct!
  57. #define E1_STEP_PIN P2_08 // M5
  58. #define E1_DIR_PIN P0_20
  59. #define E1_ENABLE_PIN P0_19
  60. //
  61. // Temperature Sensors
  62. // 3.3V max when defined as an analog input
  63. //
  64. #define TEMP_0_PIN P0_24_A1 // A1 (TH1)
  65. #define TEMP_1_PIN P0_23_A0 // A0 (TH0)
  66. #define TEMP_BED_PIN P0_25_A2 // A2 (TH2)
  67. //
  68. // Heaters / Fans
  69. //
  70. #define _H0_PIN P2_04 // (H0: 15A)
  71. #define HEATER_BED_PIN P2_05 // (H1: 10A shared)
  72. #define HEATER_0_PIN P2_06 // (H2: 10A shared)
  73. #define HEATER_1_PIN P2_07 // (H3: 10A shared)
  74. #define FAN_PIN P2_11 // (FAN0: 1A)
  75. #define FAN1_PIN P2_13 // (FAN1: 1A)
  76. //
  77. // Extension ports
  78. //
  79. #define EXP1_01_PIN P0_03 // RX0
  80. #define EXP1_02_PIN P0_02 // TX0
  81. #define EXP1_03_PIN P1_30
  82. #define EXP1_04_PIN P1_31
  83. #define EXP1_05_PIN P0_17 // MISO0
  84. #define EXP1_06_PIN P0_18 // MOSI0
  85. #define EXP1_07_PIN P0_15 // SCK0
  86. #define EXP1_08_PIN P0_16 // SSEL0
  87. #define EXP1_09_PIN P0_27 // SDA0
  88. #define EXP1_10_PIN P0_28 // SCL0
  89. #define EXP2_01_PIN P0_10
  90. #define EXP2_02_PIN P0_11
  91. #define EXP2_03_PIN P0_00 // SDA1
  92. #define EXP2_04_PIN P0_01 // SCL1
  93. #define EXP2_05_PIN P1_28
  94. #define EXP2_06_PIN P1_29
  95. #define EXP2_07_PIN P1_26
  96. #define EXP2_08_PIN P1_27
  97. //
  98. // SD Support
  99. //
  100. #ifndef SDCARD_CONNECTION
  101. #define SDCARD_CONNECTION ONBOARD
  102. #endif
  103. #if SD_CONNECTION_IS(ONBOARD)
  104. #define SD_SCK_PIN P0_07
  105. #define SD_MISO_PIN P0_08
  106. #define SD_MOSI_PIN P0_09
  107. #define SD_SS_PIN P0_06
  108. #elif SD_CONNECTION_IS(LCD)
  109. #define SD_SCK_PIN EXP1_07_PIN
  110. #define SD_MISO_PIN EXP1_05_PIN
  111. #define SD_MOSI_PIN EXP1_06_PIN
  112. #define SD_SS_PIN EXP1_08_PIN
  113. #define SD_DETECT_PIN EXP1_04_PIN
  114. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  115. #error "No custom SD drive cable defined for this board."
  116. #endif
  117. //
  118. // LCD / Controller
  119. //
  120. #if ENABLED(EMOTION_TECH_LCD)
  121. #define BEEPER_PIN EXP2_01_PIN
  122. #define DOGLCD_A0 EXP2_06_PIN
  123. #define DOGLCD_CS EXP2_04_PIN
  124. #define DOGLCD_SCK EXP1_07_PIN
  125. #define DOGLCD_MOSI EXP1_06_PIN
  126. #define BTN_EN1 EXP2_07_PIN
  127. #define BTN_EN2 EXP2_05_PIN
  128. #define BTN_ENC EXP2_02_PIN
  129. #endif