User Tools

Site Tools


pid_autotune

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pid_autotune [2016/09/15 15:26]
Matthew Upp
pid_autotune [2018/01/30 18:35] (current)
Matthew Upp
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-===== PID Autotune =====+====== PID Autotune ​======
  
-//PID Autotune with cycle support working for Motion firmware 22+//+----
  
-==== M303 Run PID tuning ====+//See [[g-code#​sending_g-code|Sending G-code]] for more information on how to send the commands below.//
  
-**Hot end usage**+//PID Autotune with cycle support working for Motion firmware V22+// 
 + 
 + 
 +===== M303 Run PID tuning ===== 
 + 
 +---- 
 + 
 +==== Hot end usage ====
 <​code>​ <​code>​
-M303 S<​temperature>​ C<​cycles>​+M303 S<​temperature>​ C<#cycles>
  
 Example: Example:
 +M106 S204 ; turn on hotend fan to 80%
 M303 S210 C15 M303 S210 C15
 +M500 ; save the generated PID values to EEPROM
 </​code>​ </​code>​
  
-The above command will heat the nozzle and cycle around the target temperature 15 times (C15) at the given temperature (S210) and return the average values for P I and D.+<wrap hi>//​Note:​ Change the temperature (S value) to the temperature you anticipate using.//</​wrap>​ \\ 
 +The above command will heat the nozzle and cycle around the target temperature 15 times (C15) at the given temperature (S210) and return the average values for PIand D. \\ 
 +Proceed to  
 +[[pid_autotune#​m301_set_pid_parameters|M301 Set PID parameters]] below
  
-**Bed usage** ​(not sure this works or if cycles works for the bed)+**Bed usage**
 <​code>​ <​code>​
-M303 P1 S<​temperature>​+M303 E-1 S<​temperature> C<#cycle>
  
 Example: Example:
-M303 P1 S60+M303 E-1 S60 C5
 </​code>​ </​code>​
 \\ \\
  
 +----
  
 ==== M301 Set PID parameters ==== ==== M301 Set PID parameters ====
-Enter the values ​returned ​using M301+Enter the values ​received after running [[pid_autotune#​m303_run_pid_tuning|M303]] ​using M301 command \\ 
 +<wrap hi>Newer firmware versions set the PID values returned by Autotune automatically. \\ 
 +The users must store the values to EEPROM with command "​**M500**"</​wrap>​ \\
 <​code>​ <​code>​
-M301 P<Kp value> I<Ki value> ​K<Kd value>+M301 P<Kp value> I<Ki value> ​D<Kd value>
  
 Example: Example:
-M301 P20 I0.02 D250+M301 P20 I0.02 D250   ;Set new PID values 
 +M500                  ;Save EEPROM 
 +Reboot printer to complete the process 
 +</​code>​ 
 + 
 + 
 +==== M304 Set PID parameters - Bed ==== 
 +Enter the values received after running [[pid_autotune#​m303_run_pid_tuning|M303]] using M304 command 
 +<​code>​ 
 +M304 P<Kp value> I<Ki value> D<Kd value> 
 + 
 +Example: 
 +M304 P10 I0.02 D305.4 ​ ;Set new PID values 
 +M500                   ;Save EEPROM 
 +Reboot printer to complete the process
 </​code>​ </​code>​
  
Line 40: Line 69:
 [[http://​reprap.org/​wiki/​G-code#​M303:​_Run_PID_tuning]] \\ [[http://​reprap.org/​wiki/​G-code#​M303:​_Run_PID_tuning]] \\
 [[http://​reprap.org/​wiki/​G-code#​M301:​_Set_PID_parameters]] \\ [[http://​reprap.org/​wiki/​G-code#​M301:​_Set_PID_parameters]] \\
 +[[http://​reprap.org/​wiki/​G-code#​M304:​_Set_PID_parameters_-_Bed]] \\
 \\ \\
  
Line 49: Line 79:
 **Use Ethan Anderson'​s PID settings for Motion firmware version 20 & lower** ​ [[pid_tuning_ea|PID Tuning E. Anderson]] **Use Ethan Anderson'​s PID settings for Motion firmware version 20 & lower** ​ [[pid_tuning_ea|PID Tuning E. Anderson]]
  
-M303 PID Autotune ​should be working (not very well though) ​in the latest firmware which is 18.37 (1.8)+Motion Controller Firmware version 18 fixed the lose of connection bug with command ​M303 (PID Autotune). \\ 
 +Autotune does not work well in version ​18 or 20Version 22 and higher have more accurate default PID values and command M303 returns much better values as long as you run through enough cycles and run it with the temperature you are trying to maintain.
  
-"Note: Firmware ​1.7 (17and below may cause reset upon M303 commandUpdate ​firmware ​will solve this bug."+Note: Motion Controller ​Firmware ​version ​17 and below, issuing command M303 may cause reset and/or loose connection which will require the printer to be powered off and back onMotion Controller ​firmware ​version 18 fixed this bug.
 M303 S190 Autotune PID value for extruder at 190C.\\ M303 S190 Autotune PID value for extruder at 190C.\\
-M301 Manually set PID parameters P I and D.\\ +M301 Manually set PID parameters P I and D. \\ 
-M500 Save parameters to eeprom. +M500 Save parameters to EEPROM.
- +
- +
-//Source: http://​wiki.malyansys.com/​doku.php?​id=tune_pid//​+
  
  
-**NOTES:** 
-  * <​del>​PID Autotune cycles is not working yet. The next firmware release should include cycle support for PID Autotune.</​del>​ PID Tuning cycle support has been added since Motion version 22 
pid_autotune.1473953172.txt.gz · Last modified: 2016/09/15 15:26 by Matthew Upp