My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

pins_RAMPS_OLD.h 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. * Arduino Mega with RAMPS v1.0, v1.1, v1.2 pin assignments
  24. */
  25. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  26. #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
  27. #endif
  28. #define BOARD_NAME "MEGA/RAMPS <1.2"
  29. // Uncomment the following line for RAMPS v1.0
  30. //#define RAMPS_V_1_0
  31. //
  32. // Limit Switches
  33. //
  34. #define X_MIN_PIN 3
  35. #define X_MAX_PIN 2
  36. #define Y_MIN_PIN 16
  37. #define Y_MAX_PIN 17
  38. #define Z_MIN_PIN 18
  39. #define Z_MAX_PIN 19
  40. //
  41. // Z Probe (when not Z_MIN_PIN)
  42. //
  43. #ifndef Z_MIN_PROBE_PIN
  44. #define Z_MIN_PROBE_PIN 19
  45. #endif
  46. //
  47. // Steppers
  48. //
  49. #define X_STEP_PIN 26
  50. #define X_DIR_PIN 28
  51. #define X_ENABLE_PIN 24
  52. #define Y_STEP_PIN 38
  53. #define Y_DIR_PIN 40
  54. #define Y_ENABLE_PIN 36
  55. #define Z_STEP_PIN 44
  56. #define Z_DIR_PIN 46
  57. #define Z_ENABLE_PIN 42
  58. #define E0_STEP_PIN 32
  59. #define E0_DIR_PIN 34
  60. #define E0_ENABLE_PIN 30
  61. //
  62. // Temperature Sensors
  63. //
  64. #define TEMP_0_PIN 2 // Analog Input
  65. #define TEMP_BED_PIN 1 // Analog Input
  66. // SPI for Max6675 or Max31855 Thermocouple
  67. #if DISABLED(SDSUPPORT)
  68. #define MAX6675_SS 66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
  69. #else
  70. #define MAX6675_SS 66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
  71. #endif
  72. //
  73. // Heaters / Fans
  74. //
  75. #if ENABLED(RAMPS_V_1_0)
  76. #define HEATER_0_PIN 12
  77. #define HEATER_BED_PIN -1
  78. #define FAN_PIN 11
  79. #else // RAMPS_V_1_1 or RAMPS_V_1_2
  80. #define HEATER_0_PIN 10
  81. #define HEATER_BED_PIN 8
  82. #define FAN_PIN 9
  83. #endif
  84. //
  85. // Misc. Functions
  86. //
  87. #define SDPOWER 48
  88. #define SDSS 53
  89. #define LED_PIN 13
  90. #define CASE_LIGHT_PIN 45 // MUST BE HARDWARE PWM
  91. //
  92. // M3/M4/M5 - Spindle/Laser Control
  93. //
  94. #define SPINDLE_LASER_ENABLE_PIN 41 // Pin should have a pullup/pulldown!
  95. #define SPINDLE_LASER_PWM_PIN 45 // MUST BE HARDWARE PWM
  96. #define SPINDLE_DIR_PIN 43