3D printing

3D printer: How to home only Y axis using G-Code?

To home only the Y axis on 3D printers running on most firmwares, use G28 with the Y axis specifier

G28 Y

 

Posted by Uli Köhler in 3D printing

3D printer: How to home only X axis using G-Code?

To home only the X axis on 3D printers running on most firmwares, use G28 with the X axis specifier

G28 X

 

Posted by Uli Köhler in 3D printing

How to fix Marlin Error: Build environment ‘linux_native’ is incompatible with BOARD_RAMPS_14_EFB

Problem:

When compiling Marlin for simulation, you see an error message like

Error: Build environment 'linux_native' is incompatible with BOARD_RAMPS_14_EFB. Use one of these: mega2560, mega1280

Solution:

Open Marlin/Configuration.h and change the line

#ifndef MOTHERBOARD
  #define MOTHERBOARD BOARD_RAMPS_14_EFB
#endif

to use the BOARD_LINUX_RAMPS board:

// Choose the name from boards.h that matches your setup
#ifndef MOTHERBOARD
  #define MOTHERBOARD BOARD_LINUX_RAMPS
#endif

Even if the error message shows that you should use mega2560 or mega1280, you need to use BOARD_LINUX_RAMPS!

Posted by Uli Köhler in 3D printing

Which microcontroller does the Anycubic i3 Mega / Mega-S use?

The Anycubic i3 Mega (-S) stock mainboard uses the Atmega2560 microcontroller which has the following properties:

  • Architecture: AVR
  • Manufacturer: Microchip (who bought Atmel)
  • Flash: 256kb
  • RAM: 4kb
  • Stock firmware: Modified Marlin
Posted by Uli Köhler in 3D printing

How to readout current PID values on Ender 3

Run

M503

which will show all EEPROM configuration values, among them these lines:

M301 P29.34 I3.58 D60.08
M304 P427.57 I84.18 D542.91

Note that the M301 line represents the Hotend PID values whereas M304 represent the Bed PID values.

Posted by Uli Köhler in 3D printing

Ender 3 MicroSwiss Hotend PID parameters

These are the Hotend PID parameters for my Ender 3 using a MicroSwiss hotend with a MicroSwiss direct drive Extruder:

Marlin Configuration.h setting:

#define DEFAULT_Kp 29.34
#define DEFAULT_Ki 3.58
#define DEFAULT_Kd 60.08

Set PID values using G-Code and save to EEPROM:

M301 P29.34 I3.58 D60.08
M500

M301 P29.34 I3.58 D60.08
M500

How to run PID autotune

If you want custom values, run PID autotune like this:

  • Start with a completely cooled down Hotend
  • Run M106 P0 S255 to turn on the first fan
  • Run M106 P1 S255 to turn on the second fan
  • Run PID autotune using M303 E0 S210 C8

then proceed like shown above.

 

Posted by Uli Köhler in 3D printing