Compare commits
20 Commits
v1.4.2
...
12864-full
Author | SHA1 | Date | |
---|---|---|---|
|
d5a5a05462 | ||
|
625e264dfc | ||
|
6deb88102b | ||
|
3f19385e03 | ||
|
589e972102 | ||
|
17635865ca | ||
|
a2c47b53c2 | ||
|
9c133f5c05 | ||
|
fd8f28257f | ||
|
bf8b6729b2 | ||
|
0ca58ca7a6 | ||
|
79f559e9af | ||
|
c1c2743452 | ||
|
ee6094f39d | ||
|
1a5804f260 | ||
|
cea54723e7 | ||
|
90e27ff21b | ||
|
85c32a2bb6 | ||
|
223d925160 | ||
|
cd9751af41 |
309
.travis.yml
309
.travis.yml
@@ -75,315 +75,26 @@ script:
|
||||
#
|
||||
- cp Marlin/Configuration.h Marlin/Configuration.h.backup
|
||||
- cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
|
||||
- cp Marlin/pins_RAMPS.h Marlin/pins_RAMPS.h.backup
|
||||
- cp Marlin/pins_TRIGORILLA_14.h Marlin/pins_TRIGORILLA_14.h.backup
|
||||
#
|
||||
# Build with the default configurations
|
||||
#
|
||||
- build_marlin
|
||||
#
|
||||
# Test 2 extruders (one MAX6675) and heated bed on basic RAMPS 1.4
|
||||
# Test a "Fix Mounted" Probe with Safe Homing, some arc options,
|
||||
# linear bed leveling, M48, leveling debug, and firmware retraction.
|
||||
#
|
||||
- opt_set MOTHERBOARD BOARD_RAMPS_14_EEB
|
||||
- opt_set EXTRUDERS 2
|
||||
- opt_set TEMP_SENSOR_0 -2
|
||||
- opt_set TEMP_SENSOR_1 1
|
||||
- opt_set TEMP_SENSOR_BED 1
|
||||
- opt_set POWER_SUPPLY 1
|
||||
- opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING
|
||||
- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS PINS_DEBUGGING
|
||||
- opt_enable BLINKM PCA9632 RGB_LED NEOPIXEL_LED AUTO_POWER_CONTROL NOZZLE_PARK_FEATURE FILAMENT_RUNOUT_SENSOR
|
||||
- opt_enable AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE
|
||||
- opt_enable_adv ARC_P_CIRCLES ADVANCED_PAUSE_FEATURE CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE
|
||||
- opt_enable_adv FWRETRACT MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CODEPENDENT_XY_HOMING
|
||||
- opt_set GRID_MAX_POINTS_X 16
|
||||
- opt_set_adv FANMUX0_PIN 53
|
||||
- build_marlin
|
||||
#
|
||||
# Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
|
||||
#
|
||||
- restore_configs
|
||||
- opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
|
||||
- opt_set EXTRUDERS 5
|
||||
- opt_set TEMP_SENSOR_1 1
|
||||
- opt_set TEMP_SENSOR_2 5
|
||||
- opt_set TEMP_SENSOR_3 20
|
||||
- opt_set TEMP_SENSOR_4 999
|
||||
- opt_set TEMP_SENSOR_BED 1
|
||||
- opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_EDITING ENABLE_LEVELING_FADE_HEIGHT SKEW_CORRECTION
|
||||
- opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
- opt_enable_adv CUSTOM_USER_MENUS I2C_POSITION_ENCODERS BABYSTEPPING BABYSTEP_XY LIN_ADVANCE NANODLP_Z_SYNC QUICK_HOME JUNCTION_DEVIATION MAX7219_DEBUG
|
||||
- opt_set_adv MAX7219_ROTATE 270
|
||||
- build_marlin
|
||||
#
|
||||
# Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
|
||||
#
|
||||
- opt_enable Z_PROBE_SLED SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE S_CURVE_ACCELERATION
|
||||
- opt_set LCD_LANGUAGE kana_utf8
|
||||
- opt_disable SEGMENT_LEVELED_MOVES
|
||||
- opt_enable_adv BABYSTEP_ZPROBE_OFFSET DOUBLECLICK_FOR_Z_BABYSTEPPING
|
||||
- build_marlin
|
||||
#
|
||||
# Test a Servo Probe
|
||||
# ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
|
||||
#
|
||||
- restore_configs
|
||||
- opt_enable NUM_SERVOS Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
|
||||
- opt_set NUM_SERVOS 1
|
||||
- opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
|
||||
- opt_enable_adv NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET
|
||||
- build_marlin
|
||||
#
|
||||
# Test MESH_BED_LEVELING feature, with LCD
|
||||
#
|
||||
- restore_configs
|
||||
- opt_enable MESH_BED_LEVELING G26_MESH_EDITING MESH_G28_REST_ORIGIN LCD_BED_LEVELING ULTIMAKERCONTROLLER
|
||||
- build_marlin
|
||||
#
|
||||
# Test MINIRAMBO for PWM_MOTOR_CURRENT
|
||||
# PROBE_MANUALLY feature, with LCD support,
|
||||
# ULTIMAKERCONTROLLER, FILAMENT_LCD_DISPLAY, FILAMENT_WIDTH_SENSOR,
|
||||
# PRINTCOUNTER, NOZZLE_PARK_FEATURE, NOZZLE_CLEAN_FEATURE, PCA9632,
|
||||
# Z_DUAL_ENDSTOPS, BEZIER_CURVE_SUPPORT, EXPERIMENTAL_I2CBUS,
|
||||
# ADVANCED_PAUSE_FEATURE, ADVANCED_PAUSE_CONTINUOUS_PURGE, PARK_HEAD_ON_PAUSE, LCD_INFO_MENU, M114_DETAIL
|
||||
# EEPROM_SETTINGS, EEPROM_CHITCHAT, M100_FREE_MEMORY_WATCHER,
|
||||
# INCH_MODE_SUPPORT, TEMPERATURE_UNITS_SUPPORT
|
||||
#
|
||||
- restore_configs
|
||||
- opt_set MOTHERBOARD BOARD_MINIRAMBO
|
||||
- opt_enable PROBE_MANUALLY AUTO_BED_LEVELING_BILINEAR G26_MESH_EDITING LCD_BED_LEVELING ULTIMAKERCONTROLLER
|
||||
- opt_enable EEPROM_SETTINGS EEPROM_CHITCHAT M100_FREE_MEMORY_WATCHER M100_FREE_MEMORY_DUMPER M100_FREE_MEMORY_CORRUPTOR INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT
|
||||
- opt_enable ULTIMAKERCONTROLLER SDSUPPORT
|
||||
- opt_enable PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE PCA9632
|
||||
- opt_enable_adv BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS
|
||||
- opt_enable_adv ADVANCED_PAUSE_FEATURE ADVANCED_PAUSE_CONTINUOUS_PURGE FILAMENT_LOAD_UNLOAD_GCODES PARK_HEAD_ON_PAUSE LCD_INFO_MENU M114_DETAIL
|
||||
- opt_set_adv PWM_MOTOR_CURRENT {1300,1300,1250}
|
||||
- opt_set_adv I2C_SLAVE_ADDRESS 63
|
||||
- build_marlin
|
||||
#
|
||||
# Mixing Extruder with 5 steppers, Cyrillic
|
||||
#
|
||||
- restore_configs
|
||||
- opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO
|
||||
- opt_enable MIXING_EXTRUDER CR10_STOCKDISPLAY
|
||||
- opt_set MIXING_STEPPERS 5
|
||||
- opt_set LCD_LANGUAGE ru
|
||||
- build_marlin
|
||||
#
|
||||
# Test DUAL_X_CARRIAGE
|
||||
#
|
||||
- restore_configs
|
||||
- opt_set MOTHERBOARD BOARD_RUMBA
|
||||
- opt_set EXTRUDERS 2
|
||||
- opt_set TEMP_SENSOR_1 1
|
||||
- opt_enable USE_XMAX_PLUG
|
||||
- opt_enable_adv DUAL_X_CARRIAGE
|
||||
- build_marlin
|
||||
#
|
||||
# Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_set MOTHERBOARD BOARD_BQ_ZUM_MEGA_3D
|
||||
#- opt_set LCD_FEEDBACK_FREQUENCY_DURATION_MS 10
|
||||
#- opt_set LCD_FEEDBACK_FREQUENCY_HZ 100
|
||||
#- opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
|
||||
#
|
||||
# Test SWITCHING_EXTRUDER
|
||||
#
|
||||
- restore_configs
|
||||
- opt_set MOTHERBOARD BOARD_RUMBA
|
||||
- opt_set EXTRUDERS 2
|
||||
- opt_enable NUM_SERVOS
|
||||
- opt_set NUM_SERVOS 1
|
||||
- opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER
|
||||
- build_marlin
|
||||
#
|
||||
# Enable COREXY
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable COREXY
|
||||
#- build_marlin
|
||||
#
|
||||
# Test many less common options
|
||||
#
|
||||
- restore_configs
|
||||
- opt_enable COREYX
|
||||
- opt_set_adv FAN_MIN_PWM 50
|
||||
- opt_set_adv FAN_KICKSTART_TIME 100
|
||||
- opt_set_adv XY_FREQUENCY_LIMIT 15
|
||||
- opt_enable_adv SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER FAN_KICKSTART_TIME
|
||||
- opt_enable_adv ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK
|
||||
- opt_enable_adv VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL
|
||||
- opt_enable_adv EXTRA_FAN_SPEED FWERETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS
|
||||
- opt_enable_adv MENU_ADDAUTOSTART SDCARD_SORT_ALPHA
|
||||
- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
|
||||
- opt_enable FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR
|
||||
- opt_enable ENDSTOP_INTERRUPTS_FEATURE FAN_SOFT_PWM SDSUPPORT
|
||||
- opt_enable USE_XMAX_PLUG
|
||||
- build_marlin
|
||||
#
|
||||
######## Other Standard LCD/Panels ##############
|
||||
#
|
||||
# ULTRA_LCD
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable ULTRA_LCD
|
||||
#- build_marlin
|
||||
#
|
||||
# DOGLCD
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable DOGLCD
|
||||
#- build_marlin
|
||||
#
|
||||
# MAKRPANEL
|
||||
# Needs to use Melzi and Sanguino hardware
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable MAKRPANEL
|
||||
#- build_marlin
|
||||
#
|
||||
# REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, BABYSTEPPING, RIGIDBOARD_V2, and DAC_MOTOR_CURRENT_DEFAULT
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_set MOTHERBOARD BOARD_RIGIDBOARD_V2
|
||||
#- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
|
||||
#- build_marlin
|
||||
# #
|
||||
# G3D_PANEL with SDCARD_SORT_ALPHA and STATUS_MESSAGE_SCROLLING
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable G3D_PANEL SDSUPPORT
|
||||
#- opt_enable_adv SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES
|
||||
#- opt_set_adv SDSORT_GCODE true
|
||||
#- opt_set_adv SDSORT_USES_RAM true
|
||||
#- opt_set_adv SDSORT_USES_STACK true
|
||||
#- opt_set_adv SDSORT_CACHE_NAMES true
|
||||
#- build_marlin
|
||||
#
|
||||
# REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER with LIGHTWEIGHT_UI
|
||||
#
|
||||
- restore_configs
|
||||
- opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
|
||||
- opt_enable_adv SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES LIGHTWEIGHT_UI
|
||||
- opt_set_adv SDSORT_GCODE true
|
||||
- opt_set_adv SDSORT_USES_RAM true
|
||||
- opt_set_adv SDSORT_USES_STACK true
|
||||
- opt_set_adv SDSORT_CACHE_NAMES true
|
||||
- build_marlin
|
||||
#
|
||||
# REPRAPWORLD_KEYPAD
|
||||
#
|
||||
# Cant find configuration details to get it to compile
|
||||
#- restore_configs
|
||||
#- opt_enable ULTRA_LCD REPRAPWORLD_KEYPAD REPRAPWORLD_KEYPAD_MOVE_STEP
|
||||
#- build_marlin
|
||||
#
|
||||
# RA_CONTROL_PANEL
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
|
||||
#- build_marlin
|
||||
#
|
||||
######## I2C LCD/PANELS ##############
|
||||
#
|
||||
# !!!ATTENTION!!!
|
||||
# Most I2C configurations are failing at the moment because they require
|
||||
# a different Liquid Crystal library "LiquidTWI2".
|
||||
#
|
||||
# LCD_SAINSMART_I2C_1602
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable LCD_SAINSMART_I2C_1602
|
||||
#- build_marlin
|
||||
#
|
||||
# LCD_I2C_PANELOLU2
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable LCD_I2C_PANELOLU2
|
||||
#- build_marlin
|
||||
#
|
||||
# LCD_I2C_VIKI
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable LCD_I2C_VIKI
|
||||
#- build_marlin
|
||||
#
|
||||
# LCM1602
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable LCM1602
|
||||
#- build_marlin
|
||||
#
|
||||
# Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
|
||||
#- for lang in an bg ca zh_CN zh_TW cz da de el el-gr en es eu fi fr gl hr it jp-kana nl pl pt pt-br ru sk tr uk test; do opt_set LCD_LANGUAGE $lang; echo "compile with language $lang ..."; build_marlin
|
||||
#
|
||||
#- restore_configs
|
||||
#- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
|
||||
#- for lang in an bg ca zh_CN zh_TW cz da de el el-gr en es eu fi fr gl hr it jp-kana nl pl pt pt-br ru sk tr uk test; do opt_set LCD_LANGUAGE $lang; echo "compile with language $lang ..."; build_marlin
|
||||
#
|
||||
#
|
||||
|
||||
######## Example Configurations ##############
|
||||
#
|
||||
# BQ Hephestos 2
|
||||
#- restore_configs
|
||||
#- use_example_configs Hephestos_2
|
||||
#- build_marlin
|
||||
# Anycubic i3 Mega with BLtouch
|
||||
#
|
||||
# Delta Config (generic) + ABL bilinear + PROBE_MANUALLY
|
||||
- use_example_configs delta/generic
|
||||
- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER DELTA_CALIBRATION_MENU AUTO_BED_LEVELING_BILINEAR PROBE_MANUALLY
|
||||
#- Test compatibility to https://github.com/MNieddu91/Marlin-AI3M-BLTouch
|
||||
#
|
||||
- use_example_configs Anycubic/Ai3MBLtouch
|
||||
- build_marlin
|
||||
#
|
||||
# Delta Config (generic) + UBL + ALLEN_KEY + OLED_PANEL_TINYBOY2 + EEPROM_SETTINGS
|
||||
# Anycubic i3 Mega with 12864 display
|
||||
#
|
||||
- use_example_configs delta/generic
|
||||
- opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 Z_PROBE_ALLEN_KEY EEPROM_SETTINGS EEPROM_CHITCHAT
|
||||
- opt_enable OLED_PANEL_TINYBOY2 MESH_EDIT_GFX_OVERLAY
|
||||
#- Test compatibility to RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
#
|
||||
- use_example_configs Anycubic/Ai3M12864
|
||||
- build_marlin
|
||||
#
|
||||
# Delta Config (FLSUN AC because it's complex)
|
||||
#
|
||||
- use_example_configs delta/FLSUN/auto_calibrate
|
||||
- build_marlin
|
||||
#
|
||||
# Makibox Config need to check board type for Teensy++ 2.0
|
||||
#
|
||||
#- use_example_configs makibox
|
||||
#- build_marlin
|
||||
#
|
||||
# SCARA with TMC2130
|
||||
#
|
||||
- use_example_configs SCARA
|
||||
- opt_enable AUTO_BED_LEVELING_BILINEAR FIX_MOUNTED_PROBE USE_ZMIN_PLUG EEPROM_SETTINGS EEPROM_CHITCHAT ULTIMAKERCONTROLLER
|
||||
- opt_set X_DRIVER_TYPE TMC2130
|
||||
- opt_set Y_DRIVER_TYPE TMC2130
|
||||
- opt_set Z_DRIVER_TYPE TMC2130
|
||||
- opt_set E0_DRIVER_TYPE TMC2130
|
||||
- opt_enable_adv MONITOR_DRIVER_STATUS STEALTHCHOP HYBRID_THRESHOLD SENSORLESS_HOMING
|
||||
- build_marlin
|
||||
#
|
||||
# TMC2208 Config
|
||||
#
|
||||
- restore_configs
|
||||
- opt_set X_DRIVER_TYPE TMC2208
|
||||
- opt_set Y_DRIVER_TYPE TMC2208
|
||||
- opt_set Z_DRIVER_TYPE TMC2208
|
||||
- opt_set E0_DRIVER_TYPE TMC2208
|
||||
- opt_enable_adv MONITOR_DRIVER_STATUS STEALTHCHOP HYBRID_THRESHOLD TMC_DEBUG
|
||||
- build_marlin
|
||||
#
|
||||
# tvrrug Config need to check board type for sanguino atmega644p
|
||||
#
|
||||
#- use_example_configs tvrrug/Round2
|
||||
#- build_marlin
|
||||
#
|
||||
#
|
||||
######## Board Types #############
|
||||
#
|
||||
# To be added in nightly test branch
|
||||
#
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -58,6 +58,7 @@ public:
|
||||
char TFTstate=ANYCUBIC_TFT_STATE_IDLE;
|
||||
bool PausedByRunout=false;
|
||||
bool PausedByFilamentChange=false;
|
||||
bool PausedByNozzleTimeout=false;
|
||||
|
||||
private:
|
||||
char TFTcmdbuffer[TFTBUFSIZE][TFT_MAX_CMD_SIZE];
|
||||
@@ -74,6 +75,7 @@ private:
|
||||
uint8_t tmp_extruder=0;
|
||||
char LastSDstatus=0;
|
||||
uint16_t HeaterCheckCount=0;
|
||||
bool IsParked = false;
|
||||
|
||||
struct OutageDataStruct {
|
||||
char OutageDataVersion;
|
||||
@@ -100,6 +102,8 @@ private:
|
||||
void HandleSpecialMenu();
|
||||
void FilamentChangePause();
|
||||
void FilamentChangeResume();
|
||||
void ReheatNozzle();
|
||||
void ParkAfterStop();
|
||||
|
||||
char SelectedDirectory[30];
|
||||
uint8_t SpecialMenu=false;
|
||||
@@ -107,7 +111,8 @@ private:
|
||||
#if ENABLED(ANYCUBIC_FILAMENT_RUNOUT_SENSOR)
|
||||
char FilamentTestStatus=false;
|
||||
char FilamentTestLastStatus=false;
|
||||
long FilamentRunoutCounter=0;
|
||||
bool FilamentSetMillis=true;
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
#include <U8glib.h>
|
||||
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
@@ -379,10 +381,10 @@
|
||||
|
||||
// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
|
||||
|
||||
// i3 Mega
|
||||
#define DEFAULT_Kp 15.94
|
||||
#define DEFAULT_Ki 1.17
|
||||
#define DEFAULT_Kd 54.19
|
||||
// i3 Mega stock v5 hotend, 40W heater cartridge (3.6Ω @ 22°C)
|
||||
#define DEFAULT_Kp 18.58
|
||||
#define DEFAULT_Ki 1.38
|
||||
#define DEFAULT_Kd 62.40
|
||||
|
||||
// Ultimaker
|
||||
//#define DEFAULT_Kp 22.2
|
||||
@@ -436,10 +438,10 @@
|
||||
|
||||
//#define PID_BED_DEBUG // Sends debug data to the serial port.
|
||||
|
||||
//Anycubic i3 Mega 160W Ultrabase
|
||||
#define DEFAULT_bedKp 251.78
|
||||
#define DEFAULT_bedKi 49.57
|
||||
#define DEFAULT_bedKd 319.73
|
||||
//Anycubic i3 Mega Ultrabase (0.9Ω @ 22°C)
|
||||
#define DEFAULT_bedKp 187.45
|
||||
#define DEFAULT_bedKi 35.75
|
||||
#define DEFAULT_bedKd 245.71
|
||||
|
||||
//120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
|
||||
//from pidautotune
|
||||
@@ -1108,7 +1110,7 @@
|
||||
* Add a bed leveling sub-menu for ABL or MBL.
|
||||
* Include a guided procedure if manual probing is enabled.
|
||||
*/
|
||||
//#define LCD_BED_LEVELING
|
||||
#define LCD_BED_LEVELING
|
||||
|
||||
#if ENABLED(LCD_BED_LEVELING)
|
||||
#define MBL_Z_STEP 0.025 // Step size while manually probing Z axis.
|
||||
@@ -1403,7 +1405,7 @@
|
||||
*
|
||||
* :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cn':'Chinese', 'cz':'Czech', 'cz_utf8':'Czech (UTF8)', 'de':'German', 'el':'Greek', 'el-gr':'Greek (Greece)', 'es':'Spanish', 'es_utf8':'Spanish (UTF8)', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'fr_utf8':'French (UTF8)', 'gl':'Galician', 'hr':'Croatian', 'it':'Italian', 'kana':'Japanese', 'kana_utf8':'Japanese (UTF8)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt-br':'Portuguese (Brazilian)', 'pt-br_utf8':'Portuguese (Brazilian UTF8)', 'pt_utf8':'Portuguese (UTF8)', 'ru':'Russian', 'sk_utf8':'Slovak (UTF8)', 'tr':'Turkish', 'uk':'Ukrainian', 'zh_CN':'Chinese (Simplified)', 'zh_TW':'Chinese (Taiwan)', 'test':'TEST' }
|
||||
*/
|
||||
//#define LCD_LANGUAGE en
|
||||
#define LCD_LANGUAGE en
|
||||
|
||||
/**
|
||||
* LCD Character Set
|
||||
@@ -1470,13 +1472,13 @@
|
||||
// This option overrides the default number of encoder pulses needed to
|
||||
// produce one step. Should be increased for high-resolution encoders.
|
||||
//
|
||||
//#define ENCODER_PULSES_PER_STEP 4
|
||||
#define ENCODER_PULSES_PER_STEP 4
|
||||
|
||||
//
|
||||
// Use this option to override the number of step signals required to
|
||||
// move between next/prev menu items.
|
||||
//
|
||||
//#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||
|
||||
/**
|
||||
* Encoder Direction Options
|
||||
@@ -1518,6 +1520,21 @@
|
||||
//
|
||||
#define SPEAKER
|
||||
|
||||
//
|
||||
// STARTUP CHIME
|
||||
//
|
||||
// Play a (non-earpiercing) startup chime on startup/serial connection
|
||||
// of the Trigorilla board
|
||||
//
|
||||
//#define STARTUP_CHIME
|
||||
|
||||
//
|
||||
// ENDSTOP BEEP
|
||||
//
|
||||
// Short 2KHz beep when endstops are hit
|
||||
//
|
||||
//#define ENDSTOP_BEEP
|
||||
|
||||
//
|
||||
// The duration and frequency for the UI feedback sound.
|
||||
// Set these to 0 to disable audio feedback in the LCD menus.
|
||||
@@ -1666,7 +1683,7 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
|
||||
//
|
||||
// ReprapWorld Graphical LCD
|
||||
@@ -1819,13 +1836,13 @@
|
||||
// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
|
||||
// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
|
||||
// is too low, you should also increment SOFT_PWM_SCALE.
|
||||
//#define FAN_SOFT_PWM
|
||||
#define FAN_SOFT_PWM
|
||||
|
||||
// Incrementing this by 1 will double the software PWM frequency,
|
||||
// affecting heaters, and the fan if FAN_SOFT_PWM is enabled.
|
||||
// However, control resolution will be halved for each increment;
|
||||
// at zero value, there are 128 effective control positions.
|
||||
#define SOFT_PWM_SCALE 0
|
||||
#define SOFT_PWM_SCALE 2
|
||||
|
||||
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||
// be used to mitigate the associated resolution loss. If enabled,
|
||||
|
@@ -524,13 +524,13 @@
|
||||
// @section lcd
|
||||
|
||||
// Include a page of printer information in the LCD Main Menu
|
||||
//#define LCD_INFO_MENU
|
||||
#define LCD_INFO_MENU
|
||||
|
||||
// Scroll a longer status message into view
|
||||
//#define STATUS_MESSAGE_SCROLLING
|
||||
|
||||
// On the Info Screen, display XY with one decimal place when possible
|
||||
//#define LCD_DECIMAL_SMALL_XY
|
||||
#define LCD_DECIMAL_SMALL_XY
|
||||
|
||||
// The timeout (in ms) to return to the status screen from sub-menus
|
||||
//#define LCD_TIMEOUT_TO_STATUS 15000
|
||||
@@ -1009,7 +1009,7 @@
|
||||
#define FILAMENT_UNLOAD_DELAY 5000 // (ms) Delay for the filament to cool after retract.
|
||||
#define FILAMENT_UNLOAD_PURGE_LENGTH 8 // (mm) An unretract is done, then this length is purged.
|
||||
|
||||
#define PAUSE_PARK_NOZZLE_TIMEOUT 300 // (seconds) Time limit before the nozzle is turned off for safety.
|
||||
#define PAUSE_PARK_NOZZLE_TIMEOUT 600 // (seconds) Time limit before the nozzle is turned off for safety.
|
||||
#define FILAMENT_CHANGE_ALERT_BEEPS 10 // Number of alert beeps to play when a response is needed.
|
||||
#define PAUSE_PARK_NO_STEPPER_TIMEOUT // Enable for XYZ steppers to stay powered on during filament change.
|
||||
|
||||
|
@@ -44,8 +44,9 @@
|
||||
#endif
|
||||
|
||||
#define EXTRUSION_MULTIPLIER 1.0
|
||||
#define RETRACTION_MULTIPLIER 6
|
||||
#define PRIME_LENGTH 25.0
|
||||
#define RETRACTION_LENGTH 1
|
||||
#define UNRETRACTION_LENGTH 1.2
|
||||
#define PRIME_LENGTH 5
|
||||
#define OOZE_AMOUNT 2.25
|
||||
|
||||
#define INTERSECTION_CIRCLE_RADIUS 5
|
||||
@@ -107,8 +108,9 @@
|
||||
* pliers while holding the LCD Click wheel in a depressed state. If you do not have
|
||||
* an LCD, you must specify a value if you use P.
|
||||
*
|
||||
* Q # Multiplier Retraction Multiplier. Normally not needed. Retraction defaults to 1.0mm and
|
||||
* un-retraction is at 1.2mm These numbers will be scaled by the specified amount
|
||||
* Q # Retract Retraction length. Defaults to 1mm if not specified.
|
||||
* Z # Unretract Unretraction length. Defaults to 1.2mm if not specified.
|
||||
* Note: If Q is specified but Z isn't, Z defaults to Q * 1.2.
|
||||
*
|
||||
* R # Repeat Prints the number of patterns given as a parameter, starting at the current location.
|
||||
* If a parameter isn't given, every point will be printed unless G26 is interrupted.
|
||||
@@ -145,7 +147,8 @@
|
||||
// retracts/recovers won't result in a bad state.
|
||||
|
||||
static float g26_extrusion_multiplier,
|
||||
g26_retraction_multiplier,
|
||||
g26_retraction_length,
|
||||
g26_unretraction_length,
|
||||
g26_layer_height,
|
||||
g26_prime_length,
|
||||
g26_x_pos, g26_y_pos;
|
||||
@@ -223,13 +226,13 @@
|
||||
void retract_filament(const float where[XYZE]) {
|
||||
if (!g26_retracted) { // Only retract if we are not already retracted!
|
||||
g26_retracted = true;
|
||||
move_to(where, -1.0 * g26_retraction_multiplier);
|
||||
move_to(where, -1.0 * g26_retraction_length);
|
||||
}
|
||||
}
|
||||
|
||||
void recover_filament(const float where[XYZE]) {
|
||||
if (g26_retracted) { // Only un-retract if we are retracted.
|
||||
move_to(where, 1.2 * g26_retraction_multiplier);
|
||||
move_to(where, g26_unretraction_length);
|
||||
g26_retracted = false;
|
||||
}
|
||||
}
|
||||
@@ -564,7 +567,8 @@
|
||||
if (axis_unhomed_error()) return;
|
||||
|
||||
g26_extrusion_multiplier = EXTRUSION_MULTIPLIER;
|
||||
g26_retraction_multiplier = RETRACTION_MULTIPLIER;
|
||||
g26_retraction_length = RETRACTION_LENGTH;
|
||||
g26_unretraction_length = UNRETRACTION_LENGTH;
|
||||
g26_layer_height = MESH_TEST_LAYER_HEIGHT;
|
||||
g26_prime_length = PRIME_LENGTH;
|
||||
g26_bed_temp = MESH_TEST_BED_TEMP;
|
||||
@@ -596,14 +600,44 @@
|
||||
|
||||
if (parser.seen('Q')) {
|
||||
if (parser.has_value()) {
|
||||
g26_retraction_multiplier = parser.value_float();
|
||||
if (!WITHIN(g26_retraction_multiplier, 0.05, 15.0)) {
|
||||
SERIAL_PROTOCOLLNPGM("?Specified Retraction Multiplier not plausible.");
|
||||
g26_retraction_length = parser.value_float();
|
||||
if (!WITHIN(g26_retraction_length, 0.05, 15.0)) {
|
||||
SERIAL_PROTOCOLLNPGM("?Specified Retraction length not plausible.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
SERIAL_PROTOCOLLNPGM("?Retraction Multiplier must be specified.");
|
||||
SERIAL_PROTOCOLLNPGM("?Retraction length must be specified.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (parser.seen('Z')) {
|
||||
if (parser.has_value()) {
|
||||
g26_unretraction_length = parser.value_float();
|
||||
if (!WITHIN(g26_unretraction_length, 0.05, 15.0)) {
|
||||
SERIAL_PROTOCOLLNPGM("?Specified Unretraction length not plausible.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
SERIAL_PROTOCOLLNPGM("?Unretraction length must be specified.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!parser.seen('Z') && parser.seen('Q')) {
|
||||
// retraction without unretraction specified, use 1.2 multiplier (preserve Gcode spec)
|
||||
g26_unretraction_length = g26_retraction_length * 1.2;
|
||||
SERIAL_ECHOPAIR(" Unretraction amount automatically set to ", g26_unretraction_length);
|
||||
SERIAL_EOL();
|
||||
}
|
||||
|
||||
if (parser.seen('Z') && parser.seen('Q')) {
|
||||
// consider typos or unreasonable retract/unretract ratios
|
||||
float g26_retract_unretract_delta = g26_unretraction_length - g26_retraction_length;
|
||||
if (!WITHIN(g26_retract_unretract_delta, -5, 5)) {
|
||||
SERIAL_PROTOCOLLNPGM("?Invalid Retraction/Unretraction ratio. Must be within 5mm.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@@ -271,6 +271,9 @@ FORCE_INLINE bool all_axes_known() { return (axis_known_position & xyz_bits) ==
|
||||
|
||||
extern volatile bool wait_for_heatup;
|
||||
|
||||
// Making sure this flag can be cleared by the Anycubic display
|
||||
extern volatile bool nozzle_timed_out;
|
||||
|
||||
#if HAS_RESUME_CONTINUE
|
||||
extern volatile bool wait_for_user;
|
||||
#endif
|
||||
|
@@ -228,6 +228,7 @@
|
||||
* M867 - Enable/disable or toggle error correction for position encoder modules.
|
||||
* M868 - Report or set position encoder module error correction threshold.
|
||||
* M869 - Report position encoder module error.
|
||||
* M888 - Ultrabase cooldown: Let the parts cooling fan hover above the finished print to cool down the bed. EXPERIMENTAL FEATURE!
|
||||
* M900 - Get or Set Linear Advance K-factor. (Requires LIN_ADVANCE)
|
||||
* M906 - Set or get motor current in milliamps using axis codes X, Y, Z, E. Report values if no axis codes given. (Requires at least one _DRIVER_TYPE defined as TMC2130/TMC2208/TMC2660)
|
||||
* M907 - Set digital trimpot motor current using axis codes. (Requires a board with digital trimpots)
|
||||
@@ -519,6 +520,9 @@ static bool relative_mode; // = false;
|
||||
// For M109 and M190, this flag may be cleared (by M108) to exit the wait loop
|
||||
volatile bool wait_for_heatup = true;
|
||||
|
||||
// Making sure this flag can be cleared by the Anycubic display
|
||||
volatile bool nozzle_timed_out = false;
|
||||
|
||||
// For M0/M1, this flag may be cleared (by M108) to exit the wait-for-user loop
|
||||
#if HAS_RESUME_CONTINUE
|
||||
volatile bool wait_for_user; // = false;
|
||||
@@ -7213,7 +7217,11 @@ inline void gcode_M17() {
|
||||
* Used by M125 and M600
|
||||
*/
|
||||
static void wait_for_filament_reload(const int8_t max_beep_count=0) {
|
||||
bool nozzle_timed_out = false;
|
||||
nozzle_timed_out = false;
|
||||
nozzle_timed_out = false;
|
||||
#ifdef ANYCUBIC_TFT_MODEL
|
||||
AnycubicTFT.PausedByNozzleTimeout = false;
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
lcd_advanced_pause_show_message(ADVANCED_PAUSE_MESSAGE_INSERT);
|
||||
@@ -7246,6 +7254,14 @@ inline void gcode_M17() {
|
||||
nozzle_timed_out |= thermalManager.is_heater_idle(e);
|
||||
|
||||
if (nozzle_timed_out) {
|
||||
|
||||
#ifdef ANYCUBIC_TFT_MODEL
|
||||
AnycubicTFT.PausedByNozzleTimeout=true;
|
||||
#ifdef ANYCUBIC_TFT_DEBUG
|
||||
SERIAL_ECHOLNPGM("DEBUG: Nozzle timeout flag set");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
lcd_advanced_pause_show_message(ADVANCED_PAUSE_MESSAGE_CLICK_TO_HEAT_NOZZLE);
|
||||
#endif
|
||||
@@ -7287,6 +7303,9 @@ inline void gcode_M17() {
|
||||
|
||||
wait_for_user = true; // Wait for user to load filament
|
||||
nozzle_timed_out = false;
|
||||
#ifdef ANYCUBIC_TFT_DEBUG
|
||||
AnycubicTFT.PausedByNozzleTimeout = false;
|
||||
#endif
|
||||
|
||||
#if HAS_BUZZER
|
||||
filament_change_beep(max_beep_count, true);
|
||||
@@ -7320,7 +7339,11 @@ inline void gcode_M17() {
|
||||
if (!did_pause_print) return;
|
||||
|
||||
// Re-enable the heaters if they timed out
|
||||
bool nozzle_timed_out = false;
|
||||
nozzle_timed_out = false;
|
||||
#ifdef ANYCUBIC_TFT_MODEL
|
||||
AnycubicTFT.PausedByNozzleTimeout = false;
|
||||
#endif
|
||||
|
||||
HOTEND_LOOP() {
|
||||
nozzle_timed_out |= thermalManager.is_heater_idle(e);
|
||||
thermalManager.reset_heater_idle_timer(e);
|
||||
@@ -10992,21 +11015,22 @@ inline void gcode_M502() {
|
||||
* Default values are used for omitted arguments.
|
||||
*/
|
||||
inline void gcode_M600() {
|
||||
|
||||
#ifdef SDSUPPORT
|
||||
if (card.sdprinting) { // are we printing from sd?
|
||||
#ifdef ANYCUBIC_TFT_DEBUG
|
||||
SERIAL_ECHOLNPGM("DEBUG: Enter M600 TFTstate routine");
|
||||
#endif
|
||||
AnycubicTFT.TFTstate=ANYCUBIC_TFT_STATE_SDPAUSE_REQ; // enter correct display state to show resume button
|
||||
#ifdef ANYCUBIC_TFT_DEBUG
|
||||
SERIAL_ECHOLNPGM("DEBUG: Set TFTstate to SDPAUSE_REQ");
|
||||
#endif
|
||||
AnycubicTFT.PausedByFilamentChange=true; // set flag to ensure correct resume routine gets executed
|
||||
#ifdef ANYCUBIC_TFT_DEBUG
|
||||
SERIAL_ECHOLNPGM("DEBUG: Set filament change flag");
|
||||
#endif
|
||||
}
|
||||
#ifdef ANYCUBIC_TFT_MODEL
|
||||
#ifdef SDSUPPORT
|
||||
if (card.sdprinting) { // are we printing from sd?
|
||||
#ifdef ANYCUBIC_TFT_DEBUG
|
||||
SERIAL_ECHOLNPGM("DEBUG: Enter M600 TFTstate routine");
|
||||
#endif
|
||||
AnycubicTFT.TFTstate=ANYCUBIC_TFT_STATE_SDPAUSE_REQ; // enter correct display state to show resume button
|
||||
#ifdef ANYCUBIC_TFT_DEBUG
|
||||
SERIAL_ECHOLNPGM("DEBUG: Set TFTstate to SDPAUSE_REQ");
|
||||
#endif
|
||||
AnycubicTFT.PausedByFilamentChange=true; // set flag to ensure correct resume routine gets executed
|
||||
#ifdef ANYCUBIC_TFT_DEBUG
|
||||
SERIAL_ECHOLNPGM("DEBUG: Set filament change flag");
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
point_t park_point = NOZZLE_PARK_POINT;
|
||||
@@ -11381,6 +11405,56 @@ inline void gcode_M502() {
|
||||
}
|
||||
#endif // MAX7219_GCODE
|
||||
|
||||
/**
|
||||
* M888: Cooldown routine for the Anycubic Ultrabase (EXPERIMENTAL):
|
||||
* This is meant to be placed at the end Gcode of your slicer.
|
||||
* It hovers over the print bed and does circular movements while
|
||||
* running the fan. Works best with custom fan ducts.
|
||||
*
|
||||
* T<int> Target bed temperature (min 15°C), 30°C if not specified
|
||||
* S<int> Fan speed between 0 and 255, full speed if not specified
|
||||
*/
|
||||
inline void gcode_M888() {
|
||||
// don't do this if the machine is not homed
|
||||
if (axis_unhomed_error()) return;
|
||||
|
||||
const float cooldown_arc[2] = { 50, 50 };
|
||||
const uint8_t cooldown_target = MAX((parser.ushortval('T', 30)), 15);
|
||||
|
||||
// set hotbed temperate to zero
|
||||
thermalManager.setTargetBed(0);
|
||||
SERIAL_PROTOCOLLNPGM("Ultrabase cooldown started");
|
||||
|
||||
// set fan to speed <S>, if undefined blast at full speed
|
||||
uint8_t cooldown_fanspeed = parser.ushortval('S', 255);
|
||||
fanSpeeds[0] = MIN(cooldown_fanspeed, 255U);
|
||||
|
||||
// raise z by 2mm and move to X50, Y50
|
||||
do_blocking_move_to_z(MIN(current_position[Z_AXIS] + 2, Z_MAX_POS), 5);
|
||||
do_blocking_move_to_xy(50, 50, 100);
|
||||
|
||||
while ((thermalManager.degBed() > cooldown_target)) {
|
||||
// queue arc movement
|
||||
gcode_get_destination();
|
||||
plan_arc(destination, cooldown_arc, true);
|
||||
SERIAL_PROTOCOLLNPGM("Target not reached, queued an arc");
|
||||
|
||||
// delay while arc is in progress
|
||||
while (planner.movesplanned()) {
|
||||
idle();
|
||||
}
|
||||
idle();
|
||||
}
|
||||
// the bed should be under <T> now
|
||||
fanSpeeds[0]=0;
|
||||
do_blocking_move_to_xy(MAX(X_MIN_POS, 10), MIN(Y_MAX_POS, 190), 100);
|
||||
BUZZ(100, 659);
|
||||
BUZZ(150, 1318);
|
||||
enqueue_and_echo_commands_P(PSTR("M84"));
|
||||
SERIAL_PROTOCOLLNPGM("M888 cooldown routine done");
|
||||
}
|
||||
|
||||
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
/**
|
||||
* M900: Get or Set Linear Advance K-factor
|
||||
@@ -13116,6 +13190,8 @@ void process_parsed_command() {
|
||||
case 869: gcode_M869(); break; // M869: Report axis error
|
||||
#endif
|
||||
|
||||
case 888: gcode_M888(); break; // M888: Ultrabase cooldown (EXPERIMENTAL)
|
||||
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
case 900: gcode_M900(); break; // M900: Set Linear Advance K factor
|
||||
#endif
|
||||
@@ -14740,6 +14816,25 @@ void disable_all_steppers() {
|
||||
disable_e_steppers();
|
||||
}
|
||||
|
||||
#ifdef ENDSTOP_BEEP
|
||||
void EndstopBeep() {
|
||||
static char last_status=((READ(X_MIN_PIN)<<2)|(READ(Y_MIN_PIN)<<1)|READ(X_MAX_PIN));
|
||||
static unsigned char now_status;
|
||||
|
||||
now_status=((READ(X_MIN_PIN)<<2)|(READ(Y_MIN_PIN)<<1)|READ(X_MAX_PIN))&0xff;
|
||||
|
||||
if(now_status<last_status) {
|
||||
static millis_t endstop_ms = millis() + 300UL;
|
||||
if (ELAPSED(millis(), endstop_ms)) {
|
||||
buzzer.tone(60, 2000);
|
||||
}
|
||||
last_status=now_status;
|
||||
} else if(now_status!=last_status) {
|
||||
last_status=now_status;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Manage several activities:
|
||||
* - Check for Filament Runout
|
||||
@@ -14966,6 +15061,10 @@ void idle(
|
||||
AnycubicTFT.CommandScan();
|
||||
#endif
|
||||
|
||||
#ifdef ENDSTOP_BEEP
|
||||
EndstopBeep();
|
||||
#endif
|
||||
|
||||
lcd_update();
|
||||
|
||||
host_keepalive();
|
||||
|
@@ -41,20 +41,20 @@
|
||||
* Defines the version of the Marlin-AI3M build. Not to be confused with
|
||||
* Marlin's own build number, e.g. 1.1.9.
|
||||
*/
|
||||
#define CUSTOM_BUILD_VERSION "v1.4.2"
|
||||
#define CUSTOM_BUILD_VERSION "v1.4.5"
|
||||
|
||||
/**
|
||||
* Verbose version identifier which should contain a reference to the location
|
||||
* from where the binary was downloaded or the source code was compiled.
|
||||
*/
|
||||
#define DETAILED_BUILD_VERSION SHORT_BUILD_VERSION "(Github, davidramiro)"
|
||||
#define DETAILED_BUILD_VERSION SHORT_BUILD_VERSION " (Github, davidramiro)"
|
||||
|
||||
/**
|
||||
* The STRING_DISTRIBUTION_DATE represents when the binary file was built,
|
||||
* here we define this default string as the date where the latest release
|
||||
* version was tagged.
|
||||
*/
|
||||
#define STRING_DISTRIBUTION_DATE "2019-02-24"
|
||||
#define STRING_DISTRIBUTION_DATE "2019-03-24"
|
||||
|
||||
/**
|
||||
* Required minimum Configuration.h and Configuration_adv.h file versions.
|
||||
|
1959
Marlin/example_configurations/Anycubic/Ai3M12864/Configuration.h
Normal file
1959
Marlin/example_configurations/Anycubic/Ai3M12864/Configuration.h
Normal file
File diff suppressed because it is too large
Load Diff
1654
Marlin/example_configurations/Anycubic/Ai3M12864/Configuration_adv.h
Normal file
1654
Marlin/example_configurations/Anycubic/Ai3M12864/Configuration_adv.h
Normal file
File diff suppressed because it is too large
Load Diff
1957
Marlin/example_configurations/Anycubic/Ai3MBLtouch/Configuration.h
Normal file
1957
Marlin/example_configurations/Anycubic/Ai3MBLtouch/Configuration.h
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -137,7 +137,7 @@
|
||||
#define MSG_INVALID_EXTRUDER "Invalid extruder"
|
||||
#define MSG_INVALID_SOLENOID "Invalid solenoid"
|
||||
#define MSG_ERR_NO_THERMISTORS "No thermistors - no temperature"
|
||||
#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin " DETAILED_BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID " MARLIN-AI3M_VERSION:" CUSTOM_BUILD_VERSION
|
||||
#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin " DETAILED_BUILD_VERSION " MARLIN-AI3M_VERSION:" CUSTOM_BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID
|
||||
#define MSG_MARLIN_AI3M "Marlin-AI3M"
|
||||
#define MSG_COUNT_X " Count X:"
|
||||
#define MSG_COUNT_A " Count A:"
|
||||
|
@@ -34,26 +34,26 @@
|
||||
#define DISPLAY_CHARSET_ISO10646_GREEK
|
||||
#define CHARSIZE 2
|
||||
|
||||
#define WELCOME_MSG MACHINE_NAME _UxGT(" έτοιμο.")
|
||||
#define MSG_SD_INSERTED _UxGT("Εισαγωγή κάρτας")
|
||||
#define MSG_SD_REMOVED _UxGT("Αφαίρεση κάρτας")
|
||||
#define WELCOME_MSG MACHINE_NAME _UxGT(" πανέτοιμος.")
|
||||
#define MSG_SD_INSERTED _UxGT("Έχω καρτούλα")
|
||||
#define MSG_SD_REMOVED _UxGT("Ωχ! Δεν εχω καρτα")
|
||||
#define MSG_LCD_ENDSTOPS _UxGT("Endstops") // Max length 8 characters
|
||||
#define MSG_MAIN _UxGT("Βασική Οθόνη")
|
||||
#define MSG_AUTOSTART _UxGT("Αυτόματη εκκίνηση")
|
||||
#define MSG_DISABLE_STEPPERS _UxGT("Απενεργοποίηση βηματιστή")
|
||||
#define MSG_AUTO_HOME _UxGT("Αυτομ. επαναφορά στο αρχικό σημείο")
|
||||
#define MSG_AUTO_HOME_X _UxGT("Αρχικό σημείο X")
|
||||
#define MSG_AUTO_HOME_Y _UxGT("Αρχικό σημείο Y")
|
||||
#define MSG_AUTO_HOME_Z _UxGT("Αρχικό σημείο Z")
|
||||
#define MSG_DISABLE_STEPPERS _UxGT("Ελευθέρωσέ με")
|
||||
#define MSG_AUTO_HOME _UxGT("Πάω σπίτι")
|
||||
#define MSG_AUTO_HOME_X _UxGT("Αρχικό X")
|
||||
#define MSG_AUTO_HOME_Y _UxGT("Αρχικό Y")
|
||||
#define MSG_AUTO_HOME_Z _UxGT("Αρχικό Z")
|
||||
#define MSG_TMC_Z_CALIBRATION _UxGT("Βαθμονόμηση Z")
|
||||
#define MSG_LEVEL_BED_HOMING _UxGT("Επαναφορά στο αρχικό σημείο ΧΥΖ")
|
||||
#define MSG_LEVEL_BED_WAITING _UxGT("Κάντε κλικ για να ξεκινήσετε")
|
||||
#define MSG_LEVEL_BED_NEXT_POINT _UxGT("Επόμενο σημείο")
|
||||
#define MSG_LEVEL_BED_DONE _UxGT("Ολοκλήρωση επιπεδοποίησης!")
|
||||
#define MSG_LEVEL_BED_WAITING _UxGT("Πάτα το κουμπί και ΦΥΓΑΜΕ!!!")
|
||||
#define MSG_LEVEL_BED_NEXT_POINT _UxGT("Πιο πέρα")
|
||||
#define MSG_LEVEL_BED_DONE _UxGT("Τελείωσα, αδερφέ")
|
||||
#define MSG_SET_HOME_OFFSETS _UxGT("Ορισμός βασικών μετατοπίσεων")
|
||||
#define MSG_HOME_OFFSETS_APPLIED _UxGT("Εφαρμόστηκαν οι μετατοπίσεις")
|
||||
#define MSG_SET_ORIGIN _UxGT("Ορισμός προέλευσης")
|
||||
#define MSG_PREHEAT_1 _UxGT("Προθέρμανση PLA")
|
||||
#define MSG_PREHEAT_1 _UxGT("Ζεσταίνω PLA")
|
||||
#define MSG_PREHEAT_1_N MSG_PREHEAT_1 _UxGT(" ")
|
||||
#define MSG_PREHEAT_1_ALL MSG_PREHEAT_1 _UxGT(" όλα")
|
||||
#define MSG_PREHEAT_1_BEDONLY MSG_PREHEAT_1 _UxGT(" κλίνη")
|
||||
@@ -69,19 +69,19 @@
|
||||
#define MSG_EXTRUDE _UxGT("Εξώθηση")
|
||||
#define MSG_RETRACT _UxGT("Ανάσυρση")
|
||||
#define MSG_MOVE_AXIS _UxGT("Μετακίνηση άξονα")
|
||||
#define MSG_BED_LEVELING _UxGT("Επιπεδοποίηση κλίνης")
|
||||
#define MSG_LEVEL_BED _UxGT("Επιπεδοποίηση κλίνης")
|
||||
#define MSG_BED_LEVELING _UxGT("Σου ισιώνω κρεβάτι")
|
||||
#define MSG_LEVEL_BED _UxGT("Εδω το καλό κρεβάτι")
|
||||
#define MSG_MOVE_X _UxGT("Μετακίνηση X")
|
||||
#define MSG_MOVE_Y _UxGT("Μετακίνηση Y")
|
||||
#define MSG_MOVE_Z _UxGT("Μετακίνηση Z")
|
||||
#define MSG_MOVE_E _UxGT("Εξωθητήρας")
|
||||
#define MSG_MOVE_01MM _UxGT("Μετακίνηση 0,1 μμ")
|
||||
#define MSG_MOVE_1MM _UxGT("Μετακίνηση 1 μμ")
|
||||
#define MSG_MOVE_10MM _UxGT("Μετακίνηση 10 μμ")
|
||||
#define MSG_MOVE_01MM _UxGT("Μετακίνηση 0,1μμ")
|
||||
#define MSG_MOVE_1MM _UxGT("Μετακίνηση 1μμ")
|
||||
#define MSG_MOVE_10MM _UxGT("Μετακίνηση 10μμ")
|
||||
#define MSG_SPEED _UxGT("Ταχύτητα")
|
||||
#define MSG_BED_Z _UxGT("Κλίνη Z")
|
||||
#define MSG_NOZZLE _UxGT("Ακροφύσιο")
|
||||
#define MSG_BED _UxGT("Κλίνη")
|
||||
#define MSG_BED_Z _UxGT("Κρεβάτι Z")
|
||||
#define MSG_NOZZLE _UxGT("Μύτη")
|
||||
#define MSG_BED _UxGT("Κρεβάτι")
|
||||
#define MSG_FAN_SPEED _UxGT("Ταχύτητα ανεμιστήρα")
|
||||
#define MSG_FLOW _UxGT("Ροή")
|
||||
#define MSG_CONTROL _UxGT("Έλεγχος")
|
||||
@@ -132,9 +132,9 @@
|
||||
#define MSG_E5STEPS _UxGT("Bήματα Ε5 ανά μμ")
|
||||
#define MSG_TEMPERATURE _UxGT("Θερμοκρασία")
|
||||
#define MSG_MOTION _UxGT("Κίνηση")
|
||||
#define MSG_FILAMENT _UxGT("Νήμα")
|
||||
#define MSG_FILAMENT _UxGT("Φιλαμεντ")
|
||||
#define MSG_VOLUMETRIC_ENABLED _UxGT("Ε σε μμ3")
|
||||
#define MSG_FILAMENT_DIAM _UxGT("Διάμετρος νήματος")
|
||||
#define MSG_FILAMENT_DIAM _UxGT("Διάμετρος φιλαμεντ")
|
||||
#define MSG_CONTRAST _UxGT("Κοντράστ LCD")
|
||||
#define MSG_STORE_EEPROM _UxGT("Αποθήκευση")
|
||||
#define MSG_LOAD_EEPROM _UxGT("Φόρτωση")
|
||||
@@ -142,15 +142,15 @@
|
||||
#define MSG_REFRESH _UxGT("Ανανέωση")
|
||||
#define MSG_WATCH _UxGT("Οθόνη πληροφόρησης")
|
||||
#define MSG_PREPARE _UxGT("Προετοιμασία")
|
||||
#define MSG_TUNE _UxGT("Συντονισμός")
|
||||
#define MSG_PAUSE_PRINT _UxGT("Παύση εκτύπωσης")
|
||||
#define MSG_RESUME_PRINT _UxGT("Συνέχιση εκτύπωσης")
|
||||
#define MSG_STOP_PRINT _UxGT("Διακοπή εκτύπωσης")
|
||||
#define MSG_CARD_MENU _UxGT("Εκτύπωση από SD")
|
||||
#define MSG_NO_CARD _UxGT("Δεν βρέθηκε SD")
|
||||
#define MSG_TUNE _UxGT("Ρύθμιση OTF")
|
||||
#define MSG_PAUSE_PRINT _UxGT("Διάλειμα")
|
||||
#define MSG_RESUME_PRINT _UxGT("Συνεχίζω")
|
||||
#define MSG_STOP_PRINT _UxGT("ΑΝΤΕ ΓΕΙΑ!!!")
|
||||
#define MSG_CARD_MENU _UxGT("φτιάχνω από κάρτα")
|
||||
#define MSG_NO_CARD _UxGT("Αδερφέ, δεν έχω κάρτα")
|
||||
#define MSG_DWELL _UxGT("Αναστολή λειτουργίας…")
|
||||
#define MSG_USERWAIT _UxGT("Αναμονή για χρήστη…")
|
||||
#define MSG_PRINT_ABORTED _UxGT("Διακόπτεται η εκτύπωση")
|
||||
#define MSG_PRINT_ABORTED _UxGT("Ως εδώ με έχεις φέρει!!")
|
||||
#define MSG_NO_MOVE _UxGT("Καμία κίνηση.")
|
||||
#define MSG_KILLED _UxGT("ΤΕΡΜΑΤΙΣΜΟΣ. ")
|
||||
#define MSG_STOPPED _UxGT("ΔΙΑΚΟΠΗ. ")
|
||||
@@ -174,14 +174,14 @@
|
||||
#define MSG_BABYSTEP_Z _UxGT("Μικρό βήμα Ζ")
|
||||
#define MSG_ENDSTOP_ABORT _UxGT("Ματαίωση endstop ")
|
||||
#define MSG_HEATING_FAILED_LCD _UxGT("Ανεπιτυχής θέρμανση")
|
||||
#define MSG_ERR_REDUNDANT_TEMP _UxGT("Λάθος: ΠΛΕΟΝΑΖΟΥΣΑ ΘΕΡΜΟΤΗΤΑ")
|
||||
#define MSG_ERR_REDUNDANT_TEMP _UxGT("Λάθος: ΘΑ ΜΕ ΚΑΨΕΙΣ ΗΛΗΘΙΕ")
|
||||
#define MSG_THERMAL_RUNAWAY _UxGT("ΔΙΑΦΥΓΗ ΘΕΡΜΟΤΗΤΑΣ")
|
||||
#define MSG_ERR_MAXTEMP _UxGT("Λάθος: ΜΕΓΙΣΤΗ ΘΕΡΜΟΤΗΤΑ")
|
||||
#define MSG_ERR_MINTEMP _UxGT("Λάθος: ΕΛΑΧΙΣΤΗ ΘΕΡΜΟΤΗΤΑ")
|
||||
#define MSG_ERR_MAXTEMP_BED _UxGT("Λάθος: ΜΕΓΙΣΤΗ ΘΕΡΜΟΤΗΤΑ ΚΛΙΝΗΣ")
|
||||
#define MSG_ERR_MINTEMP_BED _UxGT("Λάθος: ΕΛΑΧΙΣΤΗ ΘΕΡΜΟΤΗΤΑ ΚΛΙΝΗΣ")
|
||||
#define MSG_HEATING _UxGT("Θερμαίνεται…")
|
||||
#define MSG_BED_HEATING _UxGT("Θέρμανση κλίνης…")
|
||||
#define MSG_ERR_MAXTEMP_BED _UxGT("Λάθος: ΜΕΓΙΣΤΗ ΘΕΡΜΟΤΗΤΑ ΚΡΕΒΑΤΙΟΥ")
|
||||
#define MSG_ERR_MINTEMP_BED _UxGT("Λάθος: ΕΛΑΧΙΣΤΗ ΘΕΡΜΟΤΗΤΑ ΚΡΕΒΑΤΙΟΥ")
|
||||
#define MSG_HEATING _UxGT("Ανάβω…")
|
||||
#define MSG_BED_HEATING _UxGT("Ανάβω το κρεβάτι…")
|
||||
#define MSG_DELTA_CALIBRATE _UxGT("Βαθμονόμηση Delta")
|
||||
#define MSG_DELTA_CALIBRATE_X _UxGT("Βαθμονόμηση X")
|
||||
#define MSG_DELTA_CALIBRATE_Y _UxGT("Βαθμονόμηση Y")
|
||||
|
@@ -111,9 +111,12 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(ANYCUBIC_TFT_MODEL)
|
||||
#if defined(ANYCUBIC_TFT_MODEL) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
#define BEEPER_PIN 31
|
||||
#define SD_DETECT_PIN 49
|
||||
#else
|
||||
#define BEEPER_PIN 31
|
||||
#define SD_DETECT_PIN -1
|
||||
#endif
|
||||
|
||||
// LCD
|
||||
@@ -133,13 +136,11 @@
|
||||
#define LCD_PINS_D7 29
|
||||
|
||||
#ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
|
||||
#define BEEPER_PIN 37
|
||||
|
||||
#define BTN_EN1 31
|
||||
#define BTN_EN2 33
|
||||
#define BTN_EN1 33
|
||||
#define BTN_EN2 31
|
||||
#define BTN_ENC 35
|
||||
|
||||
#define SD_DETECT_PIN 49
|
||||
#elif defined(LCD_I2C_PANELOLU2)
|
||||
#define BTN_EN1 47 //reverse if the encoder turns the wrong way.
|
||||
#define BTN_EN2 43
|
||||
|
120
README.md
120
README.md
@@ -1,41 +1,22 @@
|
||||
# Anycubic i3 Mega Marlin 1.1.9 by davidramiro
|
||||
# Anycubic i3 Mega / Mega-S Marlin 1.1.9 by davidramiro
|
||||
|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3MFT8QMP5ZRCE&source=url) [](https://github.com/davidramiro/Marlin-AI3M/releases) [](https://github.com/davidramiro/Marlin-AI3M/issues?q=is%3Aopen+is%3Aissue) [](https://github.com/davidramiro/Marlin-AI3M/issues?q=is%3Aissue+is%3Aclosed) [](https://github.com/davidramiro/Marlin-AI3M/blob/master/LICENSE) [](https://github.com/davidramiro/Marlin-AI3M/releases/latest/) 
|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3MFT8QMP5ZRCE&source=url) [](https://github.com/davidramiro/Marlin-AI3M/releases) [](https://github.com/davidramiro/Marlin-AI3M/issues?q=is%3Aopen+is%3Aissue) [](https://github.com/davidramiro/Marlin-AI3M/blob/master/LICENSE) [](https://github.com/davidramiro/Marlin-AI3M/releases/latest/) [](https://github.com/davidramiro/Marlin-Ai3M/commits/) [](https://travis-ci.org/davidramiro/Marlin-Ai3M)
|
||||
|
||||
This is my slightly customized version of the [Marlin Firmware](https://github.com/MarlinFirmware/Marlin), gratefully based on [derhopp's repo](https://github.com/derhopp/Marlin-with-Anycubic-i3-Mega-TFT) with his remarkable efforts to get the Anycubic i3 Mega TFT screen to work.
|
||||
This is a custom version of the [Marlin Firmware](https://github.com/MarlinFirmware/Marlin) for the i3 Mega/Mega-S, gratefully based on [derhopp's repo](https://github.com/derhopp/Marlin-with-Anycubic-i3-Mega-TFT) with his remarkable efforts to get the Anycubic TFT screen to work with the latest versions of Marlin.
|
||||
|
||||
Feel free to discuss issues and work with me further optimizing this firmware!
|
||||
## RepRapDiscount Full Graphic Smart Controller branch
|
||||
**This branch is prepared to be used with a 12864 display like the [RepRapDiscount Full Graphic Smart Controller](https://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller).**
|
||||
|
||||
I am running this version on an i3 Mega Ultrabase V3 (for distinction of the different versions, check [this Thingiverse thread](https://www.thingiverse.com/groups/anycubic-i3-mega/forums/general/topic:27064)).
|
||||
Basically, this should work on every Ultrabase version that has two Z-axis endstops.
|
||||
|
||||
The new **Mega-S** should work too, but you will need to enter those two commands to make the new extruder work:
|
||||
```
|
||||
M92 E384
|
||||
M500
|
||||
```
|
||||
Afterwards, calibration is highly recommended as per the instructions on the [Wiki](https://github.com/davidramiro/Marlin-AI3M/wiki/Calibration/).
|
||||
|
||||
Looking for a **BLtouch firmware**? Head [this way](https://github.com/MNieddu91/Marlin-AI3M-BLTouch)! Mounting and configuration instructions are included.
|
||||
|
||||
Note: This is just a firmware, not magic. A big part of print quality still depends on your slicer settings and mechanical condition of your machine.
|
||||
|
||||
#### Make sure to take a look at the [Wiki](https://github.com/davidramiro/Marlin-AI3M/wiki/), especially the [FAQ](https://github.com/davidramiro/Marlin-AI3M/wiki/Frequently-Asked-Questions).
|
||||
|
||||
A German translation of the instructions can be found [here](https://kore.cc/i3mega/download/marlin-ai3m_german.pdf).
|
||||
|
||||
## Known issues:
|
||||
|
||||
- **Cura users: Please turn off jerk and acceleration control in your print settings (not visible by default, select advanced visibility to unlock them). Cura's high default jerk and acceleration might cause shifted layers if you use TMC2208.**
|
||||
- Estimated print times from your slicer might be slightly off.
|
||||
- Special characters on any file or folders name on the SD card will cause the file menu to freeze. Simply replace or remove every special character (Chinese, Arabic, Russian, accents, German & Scandinavian umlauts, ...) from the name. Symbols like dashes or underscores are no problem.
|
||||
**Important note: On the SD card that comes with the printer there is a folder with Chinese characters in it by default. Please rename or remove it.**
|
||||
- Cancelling prints after pausing may show an error. Simply resume the print before canceling. Protip: Switch to OctoPrint.
|
||||
|
||||
|
||||
## Why use this?
|
||||
|
||||
While the i3 Mega is a great printer for its price and produces fantastic results in stock, there are some issues that are easily addressed:
|
||||
While the i3 Mega is a great printer for its price and produces fantastic results in stock, there are some improvements and additional features that this firmware provides:
|
||||
|
||||
- Many people have issues getting the Ultrabase leveled perfectly, using Manual Mesh Bed Leveling the printer generates a mesh of the flatness of the bed and compensates for it on the Z-axis for perfect prints without having to level with the screws.
|
||||
- Much more efficient bed heating by using PID control. This uses less power and holds the temperature at a steady level. Highly recommended for printing ABS.
|
||||
@@ -45,7 +26,21 @@ While the i3 Mega is a great printer for its price and produces fantastic result
|
||||
- Very loud stock stepper motor drivers, easily replaced by Watterott or FYSETC TMC2208. To do that, you'd usually have to flip the connectors on the board, this is not necessary using this firmware.
|
||||
- No need to slice and upload custom bed leveling tests, test it with a single GCode command
|
||||
- Easily start an auto PID tune or mesh bed leveling via the special menu (insert SD card, select special menu and press the round arrow)
|
||||
- Filament change feature enabled: Switch colors/material mid print with `M600` (instructions below)
|
||||
- Filament change feature enabled: Switch colors/material mid print (instructions below) and control it via display.
|
||||
- The filament runout, pause and stop functionality have been overhauled and improved: The hotend now parks and retracts (on pause or stop) and purges automatically (on resume).
|
||||
- Added `M888` cooldown routine for the Anycubic Ultrabase (EXPERIMENTAL): This is meant to be placed at the end Gcode of your slicer. It hovers over the print bed and does circular movements while running the fan. Works best with custom fan ducts.
|
||||
- Optional parameters:
|
||||
- `T<temperature>`: Target bed temperature (min 15°C), 30°C if not specified (do not set this under room temperature)
|
||||
- `S<fan speed>`: Fan speed between 0 and 255, full speed if not specified
|
||||
- e.g. `M888 S191 T25`: run the fan at 75% until the bed has cooled down to 25°C
|
||||
|
||||
|
||||
## Known issues:
|
||||
|
||||
- Power outage support is not included
|
||||
- Estimated print times from your slicer might be slightly off.
|
||||
- Special characters on any file or folders name on the SD card will cause the file menu to freeze. Simply replace or remove every special character (Chinese, Arabic, Russian, accents, German & Scandinavian umlauts, ...) from the name. Symbols like dashes or underscores are no problem.
|
||||
**Important note: On the SD card that comes with the printer there is a folder with Chinese characters in it by default. Please rename or remove it.**
|
||||
|
||||
## How to flash this?
|
||||
|
||||
@@ -62,8 +57,9 @@ I provided three different precompiled hex files: One for no modifications on th
|
||||
|
||||
### Or compile it yourself:
|
||||
|
||||
- Download Arduino IDE
|
||||
- Download and install [Arduino IDE](https://www.arduino.cc/en/main/software)
|
||||
- Clone or download this repo
|
||||
- Browse into the Marlin folder and run `Marlin.ino`
|
||||
- In the IDE, under `Tools -> Board` select `Genuino Mega 2560` and `ATmega2560`
|
||||
- Open Marlin.ino in the Marlin directory of this repo
|
||||
- [Customize if needed](https://github.com/davidramiro/Marlin-AI3M/wiki/Customization-&-Compiling) (e.g. motor directions and type at line `559` to `566` and line `857` to `865` in `Configuration.h`)
|
||||
@@ -74,12 +70,16 @@ I provided three different precompiled hex files: One for no modifications on th
|
||||
|
||||
- Flash the hex with Cura, OctoPrint or similar
|
||||
- Use a tool with a terminal (OctoPrint, Pronterface, Repetier Host, ...) to send commands to your printer.
|
||||
- Connect to the printer and send the following commands:
|
||||
- **Important** Connect to the printer and send the following commands:
|
||||
- `M502` - load hard coded default values
|
||||
- `M500` - save them to EEPROM
|
||||
|
||||
#### Calibration and other instructions have been moved to the [Wiki](https://github.com/davidramiro/Marlin-AI3M/wiki/Calibration).
|
||||
**If you are using this on a Mega-S, those two additional commands are necessary:**
|
||||
- `M92 E384` - set correct steps for the new extruder
|
||||
- `M500` - save them
|
||||
- I highly recommend calibrating the extruder.
|
||||
|
||||
#### Calibration and other instructions have been moved to the [Wiki](https://github.com/davidramiro/Marlin-AI3M/wiki/Calibration).
|
||||
|
||||
## Manual Mesh Bed Leveling
|
||||
|
||||
@@ -103,7 +103,7 @@ If you have issues with an uneven bed, this is a great feature.
|
||||
- Your nozzle will now move to the first calibration position.
|
||||
- Don't adjust the bed itself with screws, only use software from here on!
|
||||
- Use a paper - I recommend using thermopaper like a receipt or baking paper
|
||||
- Use the onscreen controls to lower or raise your nozzle until you feel a light resistance: (If you want to send the same command multiple times, select the item again, even though it is still marked red.)
|
||||
- Use the onscreen controls to lower or raise your nozzle until you feel a light resistance: (**If you want to send the same command multiple times, select the item again, even though it is still marked red.**)
|
||||
|
||||
![Z axis controls][control]
|
||||
|
||||
@@ -112,7 +112,7 @@ If you have issues with an uneven bed, this is a great feature.
|
||||
![Next mesh point][next]
|
||||
|
||||
- Repeat the last two steps until all 25 points are done.
|
||||
- Your printer will beep, wait 20 seconds and then save:
|
||||
- Your printer will beep, wait 20 seconds and then save (the printer will beep once more to confirm):
|
||||
|
||||
|
||||
![Save to EEPROM][save]
|
||||
@@ -129,15 +129,14 @@ If you have issues with an uneven bed, this is a great feature.
|
||||
|
||||
### After leveling:
|
||||
|
||||
- Reboot the printer.
|
||||
- To ensure your mesh gets used on every print from now on, go into your slicer settings and look for the start GCode
|
||||
- Look for the Z-homing (either just `G28` or `G28 Z0`) command and insert these two right underneath it:
|
||||
```
|
||||
M501
|
||||
M420 S1
|
||||
```
|
||||
- Enjoy never having to worry about an uneven bed again!
|
||||
|
||||
- Your printer should now correctly print first layers even on a warped bed.
|
||||
- When working on the printer, installing a new hotend or nozzle or the bed warping over time, a new Mesh Leveling procedure is recommended.
|
||||
|
||||
#### Manual commands for use with OctoPrint etc.:
|
||||
|
||||
@@ -153,9 +152,11 @@ M420 S1
|
||||
- No need to download or create a bed leveling test, simply send those commands to your printer:
|
||||
```
|
||||
G28
|
||||
G26 C H200 P25 R25
|
||||
G26 C H200 P5 R25 Q4.2 Z4
|
||||
```
|
||||
- To adjust your filament's needed temperature, change the number of the `H` parameter
|
||||
- Default bed temperature is 60°C, if you need another temperature, add e.g. `B80`
|
||||
- `Q` parameter sets retraction length in mm, `Z` sets unretraction.
|
||||
- If your leveling is good, you will have a complete pattern of your mesh on your bed that you can peel off in one piece
|
||||
- Don't worry if the test looks a bit messy, the important thing is just that the line width is the same all over the mesh
|
||||
- Optional: Hang it up on a wall to display it as a trophy of how great your leveling skills are.
|
||||
@@ -167,9 +168,9 @@ G26 C H200 P25 R25
|
||||
|
||||
[m600 demo]: https://kore.cc/i3mega/img/m600demo.jpg "M600 demo"
|
||||
|
||||
**Printing via USB is highly recommended for this.**
|
||||
**BETA: This now also works without USB printing, via SD & display.**
|
||||
|
||||
#### Configuration:
|
||||
#### Configuration (only needed once):
|
||||
- Send `M603 L0 U0` to use manual loading & unloading.
|
||||
- Send `M603 L538 U555` to use automatic loading & unloading
|
||||
- The `L` and `U` paramters define the load and unload length in mm. The values above work well on a stock setup, if you modded your extruder, bowden tube or hotend, you might need to adjust those.
|
||||
@@ -182,6 +183,9 @@ G26 C H200 P25 R25
|
||||
- Place `M600` in your GCode at the desired layer or send it via terminal
|
||||
- Alternatively: Use `FilamentChange Pause` in the Special Menu
|
||||
- The nozzle will park and your printer will beep
|
||||
- For safety reasons, the printer will turn off the hotend after 10 minutes. If you see the temperature being under the target:
|
||||
- SD printing: Click `CONTINUE` **(only once!)** on the screen and wait for the hotend to heat up again.
|
||||
- USB printing: Send `M108` and wait for the hotend to heat up again.
|
||||
- Remove the filament from the bowden tube
|
||||
- Insert the new filament right up to the nozzle, just until a bit of plastic oozes out
|
||||
- Remove the excess filament from the nozzle with tweezers
|
||||
@@ -199,6 +203,9 @@ G26 C H200 P25 R25
|
||||
- Alternatively: Use `FilamentChange Pause` in the Special Menu
|
||||
- The nozzle will park
|
||||
- The printer will remove the filament right up to the extruder and beep when finished
|
||||
- For safety reasons, the printer will turn off the hotend after 10 minutes. If you see the temperature being under the target:
|
||||
- SD printing: Click `CONTINUE` **(only once!)** on the screen and wait for the hotend to heat up again.
|
||||
- USB printing: Send `M108` and wait for the hotend to heat up again.
|
||||
- Insert the new filament just up to the end of the bowden fitting, as shown here:
|
||||
|
||||
![Load Filament][m600 load]
|
||||
@@ -229,6 +236,11 @@ M304
|
||||
|
||||
After flashing the new version, issue a `M502` and `M500`. After that, enter every line you saved before and finish by saving with `M500`.
|
||||
|
||||
## Something went wrong?
|
||||
No worries. You can easily go back to the default firmware and restore the default settings.
|
||||
- Flash the hex file from the [manufacturer's website](http://www.anycubic3d.com/support/show/594016.html) (in case it's offline, I have uploaded the stock firmwares [here](https://kore.cc/i3mega/download/stockFW/) as well).
|
||||
- After flashing, send `M502` and `M500`. Now your machine is exactly as it came out of the box.
|
||||
|
||||
|
||||
## Detailed changes:
|
||||
|
||||
@@ -242,10 +254,15 @@ After flashing the new version, issue a `M502` and `M500`. After that, enter eve
|
||||
- G26 Mesh Validation enabled
|
||||
- Some redundant code removed to save memory
|
||||
- Minor tweaks on default jerk and acceleration
|
||||
- Printcounter enabled (`M78`)
|
||||
- Print statistics enabled (send `M78` to read them)
|
||||
- `M600` filament change feature enabled
|
||||
- Screen resume for `M600` implemented
|
||||
- Filament runout, stop and pause behaviour tweaked
|
||||
- Implemented easy resume via display
|
||||
- Filament runout behaviour tweaked
|
||||
- Added purge and retract
|
||||
- Move nozzle to park position on runout
|
||||
- Prevent false positives by adding a small delay to the sensor
|
||||
- Pause and stop behaviour tweaked
|
||||
- Added `M888` cooldown routine for the Anycubic Ultrabase
|
||||
|
||||
|
||||
## Changes by [derhopp](https://github.com/derhopp/):
|
||||
@@ -331,3 +348,26 @@ Notable contributors include:
|
||||
## License
|
||||
|
||||
Marlin is published under the [GPLv3 license](https://github.com/MarlinFirmware/Marlin/blob/1.0.x/COPYING.md) because we believe in open development. The GPL comes with both rights and obligations. Whether you use Marlin firmware as the driver for your open or closed-source product, you must keep Marlin open, and you must provide your compatible Marlin source code to end users upon request. The most straightforward way to comply with the Marlin license is to make a fork of Marlin on Github, perform your modifications, and direct users to your modified fork.
|
||||
|
||||
## Disclaimer
|
||||
|
||||
```
|
||||
/*
|
||||
* Flashing a custom firmware happens at your own risk.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
|
||||
* AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
```
|
||||
|
Reference in New Issue
Block a user