3D Printer PID Tuning with OctoPrint

November 26th, 2018 · 1 min

What you’ll need

What’s PID tuning?

Improving the printer’s temperature control.


New hotend, age, etc. Printer doesn’t seem to be able to hold a consistent temperature while printing.

Original Values

These were the original PID values on my Maker Select Plus. You can retrieve these values from the display on the printer.

PID-P: 33
PID-I: 1
PID-D: 189


  1. Open OctoPrint
  2. Go to the Terminal tab
  3. Check all the Suppress message checkboxes
  4. Enter M303 E0 S230 C10 to start autotuning M303 — Command to tune
    E0 — Tune the extruder (E1 is the heated bed)
    S230 — Target temperature
    C10 — Number of iterations
    WARNING: The output in OctoPrint will be pushed out of the buffer by the suppressed messages, so don’t leave it for a long time.

  5. Wait until it’s finished. Here’s the output once it’s done.
    Recv: Kp: 20.12
    Recv: Ki: 1.23
    Recv: Kd: 82.41
    Recv: PID Autotune finished! Put the Kp, Ki and Kd constants into Configuration.h

New Values

Here’s the values that I got after tuning my printer with the Micro Swiss All Metal Hotend.

Values have been rounded to the nearest whole number.

PID-P: 20
PID-I: 1
PID-D: 82

Enter your values into the printer using the built-in display or use the commands below in the OctoPrint terminal.

M301 P20.12 I1.23 D82.41

To view your current settings use M503.