Update Marlin Firmware of Anycubic Kossel Pulley
Jump to navigation
Jump to search
Current Environment
- TriGorilla Board, based on AtMega 2560
- Marlin 2.1.2.1, self compiled for RGBW- and Servo0 support
- First Run:
- Erase EEPROM settings
- Set Z-Probe: -15.8 (new hotend)
- Config/Delta Kalib/Auto Kalib
- Check: Manual (careful!) move to Z = 0, X=+-90, Y=+-90
Parameters
- Latest Marlin (2.0.5.3)
- PlatformIO 4.3.4
- OpenSuse 15.1
Documentation
- https://marlinfw.org/docs/basics/install.html
- https://marlinfw.org/docs/basics/install_platformio.html
- https://marlinfw.org/docs/basics/install_platformio_vscode.html
Prepare
mkdir ~/git cd ~/git git clone https://github.com/MarlinFirmware/Configurations.git marlin-config cd marlin-config git checkout 2.1.2.1 cd - git clone https://github.com/MarlinFirmware/Marlin.git marlin cd marlin git checkout 2.1.2.1 cd -
Configure
Generic Anycubic Kossel
cd ~/git/marlin/Marlin/ ln -sf ../../marlin-config/config/examples/delta/Anycubic/Kossel/Configuration.h . ln -sf ../../marlin-config/config/examples/delta/Anycubic/Kossel/Configuration_adv.h .
My Diff in Configuration.h
Identification, remote control, heatbed, z-probe, rgbw and sensor as used on my pulley
diff --git a/config/examples/delta/Anycubic/Kossel/Configuration.h b/config/examples/delta/Anycubic/Kossel/Configuration.h index 948fd38e..bfb3f963 100644 --- a/config/examples/delta/Anycubic/Kossel/Configuration.h +++ b/config/examples/delta/Anycubic/Kossel/Configuration.h @@ -28,13 +28,13 @@ //#define ANYCUBIC_KOSSEL_PLUS // Anycubic Probe version 1 or 2 see README.md; 0 for no probe -#define ANYCUBIC_PROBE_VERSION 0 +#define ANYCUBIC_PROBE_VERSION 1 // Heated Bed: // 0 ... no heated bed // 1 ... aluminium heated bed with "BuildTak-like" sticker // 2 ... ultrabase heated bed -#define ANYCUBIC_KOSSEL_ENABLE_BED 0 +#define ANYCUBIC_KOSSEL_ENABLE_BED 1 /** * Configuration.h @@ -86,7 +86,7 @@ // @section info // Author info of this build printed to the host during boot and M115 -#define STRING_CONFIG_H_AUTHOR "@brandstaetter, @grbd" // Who made the changes. +#define STRING_CONFIG_H_AUTHOR "@joba-1 250kbd" // Who made the changes. //#define CUSTOM_VERSION_FILE Version.h // Path from the root directory (no quotes) /** @@ -136,7 +136,7 @@ * * :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] */ -#define BAUDRATE 115200 +#define BAUDRATE 250000 // Enable the Bluetooth serial interface on AT90USB devices //#define BLUETOOTH @@ -1781,7 +1781,7 @@ * * :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cz':'Czech', 'da':'Danish', 'de':'German', 'el':'Greek','el_gr':'Greek (Greece)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hr':'Croatian', 'it':'Italian', 'jp_kana':'Japanese', 'ko_KR':'Korean (South Korea)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt_br':'Portuguese (Brazilian)', 'ru':'Russian', 'sk':'Slovak', 'tr':'Turkish', 'uk':'Ukrainian', 'vi':'Vietnamese', 'zh_CN':'Chinese (Simplified)', 'zh_TW':'Chinese (Traditional)', 'test':'TEST' } * / -#de fine LCD_LANGUAGE en +#de fine LCD_LANGUAGE de /** * LCD Character Set @@ -2623,7 +2623,7 @@ // If you have a speaker that can produce tones, enable it here. // By default Marlin assumes you have a buzzer with a fixed frequency. // -#define SPEAKER +// #define SPEAKER // // The duration and frequency for the UI feedback sound. @@ -2354,14 +2354,14 @@ * LED Type. Enable only one of the following two options. * */ -//#define RGB_LED -//#define RGBW_LED +// #define RGB_LED +#define RGBW_LED #if EITHER(RGB_LED, RGBW_LED) - //#define RGB_LED_R_PIN 34 - //#define RGB_LED_G_PIN 43 - //#define RGB_LED_B_PIN 35 - //#define RGB_LED_W_PIN -1 + #define RGB_LED_R_PIN 6 + #define RGB_LED_G_PIN 5 + #define RGB_LED_B_PIN 11 + #define RGB_LED_W_PIN 4 #endif // Support for Adafruit Neopixel LED driver @@ -2409,6 +2409,8 @@ * Leave undefined or set to 0 to entirely disable the servo subsystem. */ //#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command +#define NUM_SERVOS 1 // Servo index starts with 0 for M280 command +#define SERVO0_PIN 12 // default pin 11 used for RGB LED // (ms) Delay before the next move will start, to give the servo time to reach its target angle. // 300ms is a good value but you can try less delay.
Optional Diffs in Configuration_adv.h
diff --git a/config/examples/delta/Anycubic/Kossel/Configuration_adv.h b/config/examples/delta/Anycubic/Kossel/Configuration_adv.h index 1a7d9cf513..91adb93db5 100644 --- a/config/examples/delta/Anycubic/Kossel/Configuration_adv.h +++ b/config/examples/delta/Anycubic/Kossel/Configuration_adv.h @@ -707,7 +707,7 @@ /** * M355 Case Light on-off / brightness */ -//#define CASE_LIGHT_ENABLE +#define CASE_LIGHT_ENABLE #if ENABLED(CASE_LIGHT_ENABLE) //#define CASE_LIGHT_PIN 4 // Override the default pin if needed #define INVERT_CASE_LIGHT false // Set true if Case Light is ON when pin is LOW @@ -715,7 +715,7 @@ #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105 // Set default power-up brightness (0-255, requires PWM pin) //#define CASE_LIGHT_NO_BRIGHTNESS // Disable brightness control. Enable for non-PWM lighting. //#define CASE_LIGHT_MAX_PWM 128 // Limit PWM duty cycle (0-255) - //#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu + #define CASE_LIGHT_MENU // Add Case Light options to the LCD menu #if ENABLED(NEOPIXEL_LED) //#define CASE_LIGHT_USE_NEOPIXEL // Use NeoPixel LED as case light #endif @@ -1839,8 +1839,8 @@ //#define STATUS_ALT_BED_BITMAP // Use the alternative bed bitmap //#define STATUS_ALT_FAN_BITMAP // Use the alternative fan bitmap //#define STATUS_FAN_FRAMES 3 // :[0,1,2,3,4] Number of fan animation frames - //#define STATUS_HEAT_PERCENT // Show heating in a progress bar - //#define BOOT_MARLIN_LOGO_ANIMATED // Animated Marlin logo. Costs ~3260 (or ~940) bytes of flash. + #define STATUS_HEAT_PERCENT // Show heating in a progress bar + #define BOOT_MARLIN_LOGO_ANIMATED // Animated Marlin logo. Costs ~3260 (or ~940) bytes of flash. // Frivolous Game Options //#define MARLIN_BRICKOUT
Edit in platformio.ini or avr.ini (since 2.1?)
Since my notebook has more than one usb serial port, I needed to tell platformio which one connects to the printer:
[env:mega2560] ... upload_port = /dev/ttyUSB1