My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins_ULTIMAIN_2.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /**
  2. * Ultiboard v2.0 pin assignments
  3. */
  4. #ifndef __AVR_ATmega2560__
  5. #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
  6. #endif
  7. #define X_STEP_PIN 25
  8. #define X_DIR_PIN 23
  9. #define X_STOP_PIN 22
  10. #define X_ENABLE_PIN 27
  11. #define Y_STEP_PIN 32
  12. #define Y_DIR_PIN 33
  13. #define Y_STOP_PIN 26
  14. #define Y_ENABLE_PIN 31
  15. #define Z_STEP_PIN 35
  16. #define Z_DIR_PIN 36
  17. #define Z_STOP_PIN 29
  18. #define Z_ENABLE_PIN 34
  19. #define HEATER_BED_PIN 4
  20. #define TEMP_BED_PIN 10
  21. #define HEATER_0_PIN 2
  22. #define TEMP_0_PIN 8
  23. #define HEATER_1_PIN 3
  24. #define TEMP_1_PIN 9
  25. #define HEATER_2_PIN -1
  26. #define TEMP_2_PIN -1
  27. #define E0_STEP_PIN 42
  28. #define E0_DIR_PIN 43
  29. #define E0_ENABLE_PIN 37
  30. #define E1_STEP_PIN 49
  31. #define E1_DIR_PIN 47
  32. #define E1_ENABLE_PIN 48
  33. #define SDPOWER -1
  34. #define SDSS 53
  35. #define LED_PIN 8
  36. #define FAN_PIN 7
  37. #define PS_ON_PIN -1
  38. #define KILL_PIN -1
  39. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  40. #define SAFETY_TRIGGERED_PIN 28 //PIN to detect the safety circuit has triggered
  41. #define MAIN_VOLTAGE_MEASURE_PIN 14 //Analogue PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
  42. #define MOTOR_CURRENT_PWM_XY_PIN 44
  43. #define MOTOR_CURRENT_PWM_Z_PIN 45
  44. #define MOTOR_CURRENT_PWM_E_PIN 46
  45. //Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
  46. #define MOTOR_CURRENT_PWM_RANGE 2000
  47. #define DEFAULT_PWM_MOTOR_CURRENT {1300, 1300, 1250}
  48. //arduino pin witch triggers an piezzo beeper
  49. #define BEEPER 18
  50. #define LCD_PINS_RS 20
  51. #define LCD_PINS_ENABLE 15
  52. #define LCD_PINS_D4 14
  53. #define LCD_PINS_D5 21
  54. #define LCD_PINS_D6 5
  55. #define LCD_PINS_D7 6
  56. //buttons are directly attached
  57. #define BTN_EN1 40
  58. #define BTN_EN2 41
  59. #define BTN_ENC 19 //the click
  60. #define BLEN_C 2
  61. #define BLEN_B 1
  62. #define BLEN_A 0
  63. #define SDCARDDETECT 39