rambo 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. #!/usr/bin/env bash
  2. #
  3. # Build tests for AVR ATmega2560 RAMBo
  4. #
  5. # exit on first failure
  6. set -e
  7. #
  8. # Lots of options - Formerly the first Mega2560 test
  9. #
  10. restore_configs
  11. opt_set MOTHERBOARD BOARD_RAMBO \
  12. EXTRUDERS 2 TEMP_SENSOR_0 -2 TEMP_SENSOR_1 1 TEMP_SENSOR_BED 2 \
  13. TEMP_SENSOR_PROBE 1 TEMP_PROBE_PIN 12 \
  14. TEMP_SENSOR_CHAMBER 3 TEMP_CHAMBER_PIN 3 HEATER_CHAMBER_PIN 45 \
  15. GRID_MAX_POINTS_X 16 BACKLASH_MEASUREMENT_FEEDRATE 600 \
  16. AUTO_POWER_E_TEMP 80 FANMUX0_PIN 53 FIL_MOTION1_PIN 45
  17. opt_disable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN USE_WATCHDOG
  18. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER LCD_PROGRESS_BAR LCD_PROGRESS_BAR_TEST \
  19. FIX_MOUNTED_PROBE CODEPENDENT_XY_HOMING PIDTEMPBED PTC_PROBE PTC_BED \
  20. PREHEAT_BEFORE_PROBING PROBING_HEATERS_OFF PROBING_FANS_OFF PROBING_STEPPERS_OFF WAIT_FOR_BED_HEATER \
  21. EEPROM_SETTINGS SDSUPPORT SD_REPRINT_LAST_SELECTED_FILE BINARY_FILE_TRANSFER \
  22. BLINKM PCA9533 PCA9632 RGB_LED RGB_LED_R_PIN RGB_LED_G_PIN RGB_LED_B_PIN LED_CONTROL_MENU \
  23. NEOPIXEL_LED NEOPIXEL_PIN CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CASE_LIGHT_MENU \
  24. PID_PARAMS_PER_HOTEND PID_AUTOTUNE_MENU PID_EDIT_MENU PID_EXTRUSION_SCALING LCD_SHOW_E_TOTAL \
  25. PRINTCOUNTER SERVICE_NAME_1 SERVICE_INTERVAL_1 LCD_BED_TRAMMING BED_TRAMMING_INCLUDE_CENTER \
  26. NOZZLE_PARK_FEATURE FILAMENT_RUNOUT_SENSOR FILAMENT_RUNOUT_DISTANCE_MM FILAMENT_MOTION_SENSOR FILAMENT_SWITCH_AND_MOTION \
  27. ADVANCED_PAUSE_FEATURE FILAMENT_LOAD_UNLOAD_GCODES FILAMENT_UNLOAD_ALL_EXTRUDERS \
  28. PASSWORD_FEATURE PASSWORD_ON_STARTUP PASSWORD_ON_SD_PRINT_MENU PASSWORD_AFTER_SD_PRINT_END PASSWORD_AFTER_SD_PRINT_ABORT \
  29. AUTO_BED_LEVELING_BILINEAR Z_MIN_PROBE_REPEATABILITY_TEST DISTINCT_E_FACTORS \
  30. SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE ONE_CLICK_PRINT NO_SD_AUTOSTART \
  31. BACKLASH_COMPENSATION BACKLASH_GCODE BAUD_RATE_GCODE BEZIER_CURVE_SUPPORT \
  32. FWRETRACT ARC_P_CIRCLES CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS \
  33. PSU_CONTROL LED_POWEROFF_TIMEOUT PS_OFF_CONFIRM PS_OFF_SOUND POWER_OFF_WAIT_FOR_COOLDOWN \
  34. POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE POWER_LOSS_RECOVER_ZHOME POWER_LOSS_ZHOME_POS \
  35. SLOW_PWM_HEATERS THERMAL_PROTECTION_CHAMBER LIN_ADVANCE ADVANCE_K_EXTRA \
  36. HOST_ACTION_COMMANDS HOST_PROMPT_SUPPORT HOST_STATUS_NOTIFICATIONS PINS_DEBUGGING MAX7219_DEBUG M114_DETAIL
  37. opt_add DEBUG_POWER_LOSS_RECOVERY
  38. exec_test $1 $2 "RAMBO | EXTRUDERS 2 | CHAR LCD + SD | FIX Probe | ABL-Linear | Advanced Pause | PLR | LEDs ..." "$3"
  39. #
  40. # Full size Rambo Dual Endstop CNC
  41. #
  42. restore_configs
  43. opt_set MOTHERBOARD BOARD_RAMBO \
  44. EXTRUDERS 0 TEMP_SENSOR_0 999 DUMMY_THERMISTOR_999_VALUE 170 Z_HOME_DIR 1 \
  45. DIGIPOT_MOTOR_CURRENT '{ 120, 120, 120, 120, 120 }' \
  46. DEFAULT_AXIS_STEPS_PER_UNIT '{ 80, 80, 4000 }' \
  47. DEFAULT_MAX_FEEDRATE '{ 300, 300, 5 }' \
  48. DEFAULT_MAX_ACCELERATION '{ 3000, 3000, 100 }' \
  49. MANUAL_FEEDRATE '{ 50*60, 50*60, 4*60 }' \
  50. AXIS_RELATIVE_MODES '{ false, false, false }' \
  51. BED_TRAMMING_LEVELING_ORDER '{ LF, RF }' \
  52. X2_DRIVER_TYPE A4988 Y2_DRIVER_TYPE A4988 \
  53. Z_CLEARANCE_FOR_HOMING 0
  54. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER REVERSE_ENCODER_DIRECTION SDSUPPORT EEPROM_SETTINGS \
  55. S_CURVE_ACCELERATION X_DUAL_ENDSTOPS Y_DUAL_ENDSTOPS \
  56. ADAPTIVE_STEP_SMOOTHING CNC_COORDINATE_SYSTEMS GCODE_MOTION_MODES \
  57. LCD_BED_TRAMMING BED_TRAMMING_INCLUDE_CENTER
  58. opt_disable MIN_SOFTWARE_ENDSTOP_Z MAX_SOFTWARE_ENDSTOPS
  59. exec_test $1 $2 "Rambo CNC Configuration" "$3"
  60. #
  61. # Rambo heated bed and probe temp sensor
  62. #
  63. restore_configs
  64. opt_set MOTHERBOARD BOARD_RAMBO EXTRUDERS 0 TEMP_SENSOR_BED 1 TEMP_SENSOR_PROBE 1 TEMP_PROBE_PIN 12 \
  65. DEFAULT_AXIS_STEPS_PER_UNIT '{ 80, 80, 4000 }' \
  66. DEFAULT_MAX_FEEDRATE '{ 300, 300, 5 }' \
  67. DEFAULT_MAX_ACCELERATION '{ 3000, 3000, 100 }' \
  68. MANUAL_FEEDRATE '{ 50*60, 50*60, 4*60 }' \
  69. AXIS_RELATIVE_MODES '{ false, false, false }'
  70. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER FIX_MOUNTED_PROBE Z_SAFE_HOMING
  71. exec_test $1 $2 "Rambo heated bed only" "$3"
  72. #
  73. # Rambo with MMU2
  74. #
  75. restore_configs
  76. opt_set MOTHERBOARD BOARD_RAMBO EXTRUDERS 5 MMU_MODEL PRUSA_MMU2
  77. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE EMERGENCY_PARSER MMU_DEBUG
  78. exec_test $1 $2 "Rambo with PRUSA_MMU2 " "$3"
  79. #
  80. # Rambo with MMU3
  81. #
  82. restore_configs
  83. opt_set MOTHERBOARD BOARD_RAMBO EXTRUDERS 5 MMU_MODEL PRUSA_MMU3
  84. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER FILAMENT_RUNOUT_SENSOR NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE EMERGENCY_PARSER MMU_MENUS MMU_DEBUG EEPROM_SETTINGS
  85. exec_test $1 $2 "Rambo with PRUSA_MMU3 " "$3"
  86. #
  87. # Build with the default configurations
  88. #
  89. restore_configs
  90. opt_set MOTHERBOARD BOARD_EINSY_RAMBO \
  91. X_DRIVER_TYPE TMC2130 Y_DRIVER_TYPE TMC2130 Z_DRIVER_TYPE TMC2130 E0_DRIVER_TYPE TMC2130
  92. exec_test $1 $2 "Einsy RAMBo with TMC2130" "$3"
  93. #
  94. # Test MINIRAMBO with PWM_MOTOR_CURRENT and many features
  95. #
  96. restore_configs
  97. opt_set MOTHERBOARD BOARD_MINIRAMBO \
  98. CONTROLLERFAN_SPEED_IDLE 128 \
  99. PWM_MOTOR_CURRENT '{ 1300, 1300, 1250 }' \
  100. I2C_SLAVE_ADDRESS 63
  101. opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER \
  102. SDSUPPORT PCA9632 SOUND_MENU_ITEM GCODE_REPEAT_MARKERS \
  103. AUTO_BED_LEVELING_LINEAR PROBE_MANUALLY LCD_BED_LEVELING \
  104. LIN_ADVANCE ADVANCE_K_EXTRA \
  105. INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT EXPERIMENTAL_I2CBUS M100_FREE_MEMORY_WATCHER \
  106. NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE \
  107. ADVANCED_PAUSE_FEATURE PARK_HEAD_ON_PAUSE ADVANCED_PAUSE_CONTINUOUS_PURGE FILAMENT_LOAD_UNLOAD_GCODES \
  108. PRINTCOUNTER SERVICE_NAME_1 SERVICE_INTERVAL_1 M114_DETAIL
  109. opt_disable NOZZLE_CLEAN_PATTERN_CIRCLE
  110. opt_add M100_FREE_MEMORY_DUMPER
  111. opt_add M100_FREE_MEMORY_CORRUPTOR
  112. exec_test $1 $2 "MINIRAMBO | RRDGFSC | ABL Linear Manual | M100 | PWM_MOTOR_CURRENT | M600..." "$3"
  113. #
  114. # Test many less common options
  115. #
  116. restore_configs
  117. opt_set MOTHERBOARD BOARD_RAMBO \
  118. TEMP_SENSOR_0 -2 \
  119. DIGIPOT_I2C_NUM_CHANNELS 5 \
  120. LCD_LANGUAGE it \
  121. MIXING_STEPPERS 2 \
  122. SERVO_DELAY '{ 300, 300, 300 }' \
  123. CONTROLLER_FAN_PIN X_MAX_PIN FILWIDTH_PIN 5 \
  124. FAN_MIN_PWM 50 FAN_KICKSTART_TIME 100 \
  125. XY_FREQUENCY_LIMIT 15
  126. opt_enable COREYX MIXING_EXTRUDER GRADIENT_MIX \
  127. BABYSTEPPING BABYSTEP_XY BABYSTEP_DISPLAY_TOTAL FILAMENT_LCD_DISPLAY \
  128. REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER MENU_ADDAUTOSTART SDSUPPORT SDCARD_SORT_ALPHA \
  129. ENDSTOP_NOISE_THRESHOLD FAN_SOFT_PWM \
  130. FIX_MOUNTED_PROBE PROBING_ESTEPPERS_OFF PROBE_OFFSET_WIZARD \
  131. AUTO_BED_LEVELING_BILINEAR X_AXIS_TWIST_COMPENSATION MESH_EDIT_MENU DEBUG_LEVELING_FEATURE G26_MESH_VALIDATION \
  132. Z_SAFE_HOMING SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER \
  133. SD_ABORT_ON_ENDSTOP_HIT HOST_ACTION_COMMANDS HOST_PROMPT_SUPPORT HOST_STATUS_NOTIFICATIONS HOST_PAUSE_M76 ADVANCED_OK M114_DETAIL \
  134. VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS EXTRA_FAN_SPEED FWRETRACT \
  135. USE_CONTROLLER_FAN CONTROLLER_FAN_EDITABLE CONTROLLER_FAN_USE_Z_ONLY
  136. opt_disable DISABLE_OTHER_EXTRUDERS
  137. exec_test $1 $2 "Rambo | CoreXY, Gradient Mix | Endstop Int. | Home Y > X | FW Retract ..." "$3"