3D Printer PID Tuning with OctoPrint
What you’ll need
- A 3D Printer
What’s PID tuning?
Improving the printer’s temperature control.
New hot end, age, etc. Printer doesn’t seem to be able to hold a consistent temperature while printing.
These were the original PID values on my Maker Select Plus. You can retrieve these values from the display on the printer.
- Open OctoPrint
- Go to the Terminal tab
- Check all of the Suppress message checkboxes
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.
- 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
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.
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 M500
- M301 — Command to set PID values
- P20.12 — Your Kp value
- I1.23 — Your Ki value
- D82.41 — Your Kd value
- M500 — Command to save settings
To view your current settings use M503.