Notifications
Clear all

Prusa Mini - PID Tuning?  

  RSS
Ahand59
(@ahand59)
Active Member
Prusa Mini - PID Tuning?

I've been looking for a while and am of the belief the Mini does not support PID tuning that can be saved to the EEPROM. I have checked the Calibration selection on the printer and nothing says PID. There is one selection that seems to support a test to make sure it's working, but nothing about PID tuning. Is this another of those things that has been locked out, due to concern about someone breaking the printer by using your own Marlin settings?

Posted : 26/01/2021 5:12 am
Turro75
(@turro75)
Estimable Member
RE: Prusa Mini - PID Tuning?

simply add the M301 command with right values in the start gcode within the slicer or octoprint.

no way for the bed, autotune is enabled only for hotend

Posted : 26/01/2021 9:47 pm
Rick
 Rick
(@rick-2)
Active Member
RE: Prusa Mini - PID Tuning?

This post is very high in Google's results, so here is all the info I needed to PID-tune my Mini. Run this stuff from Pronterface, record the results, and add the gcode at the top of Printer Settings->Start G-code. I have a few mods, so my PIDs are way off Prusa's, and may be worse than the default for your printer!

-Extruder-
M301; view current values
M303 E0 S230 C10; 10 cycles at 230C
M301 P17 I1.5 D47.5; my measured PIDs!!!

 -Bed-
M304; view current values
M303 E-2 S70 C10; 10 cycles at 70C
M304 P44 I3.6 D360; my measured PIDs!!!

Posted : 04/12/2021 9:39 am
You, and liked
ViM
 ViM
(@vim)
Member
RE: Prusa Mini - PID Tuning?

I tried to run a PID tune on my Mini+, via pronterface, but I don't understand why it does not work

M301 works fine, and report the current setting

I can drive the printer from my PC, set temps, extrude ...etc

but M303 command is reported as "unknowm"

Every webpage about this seams to be using the same code (sometimes temp or cycle differs, but allways with M303)

 

>>> M301

SENDING:M301

echo: p:7.00 i:0.50 d:45.00 c:0.01

 

>>> M303 E0 S230 C10

SENDING:M303 E0 S230 C10

echo:Unknown command: "M303 E0 S230 C10"

 

Can someone please help me understand why?

I was planning a Hotend upgrade, but it seams a bad idea if I'm not able to get a new PID value in my Startup Gcode 😥 

Happy owner of a Prusa Mini+ (with Bontech extruder and heatbreak);)

Posted : 23/09/2023 3:22 pm
alex3D liked
alex3D
(@alex3d-2)
Member
RE: Prusa Mini - PID Tuning?

I am experiencing the same issue

Posted : 09/11/2023 2:32 am
Mr Slingman
(@mr-slingman)
Active Member
RE: Prusa Mini - PID Tuning?

What kind of cable are you using to connect from your computer to the Mini?

Posted : 11/11/2023 6:32 pm
MrSyNRG
(@mrsynrg)
Active Member
RE: Prusa Mini - PID Tuning?

I am having the same issue as well. I was able to read the current pid values with the m301 command but when trying the m303 it returns unknown command. Anybody have any idea how to fix this?

Posted : 26/11/2023 3:44 am
imurfathersimba
(@imurfathersimba)
Active Member
RE: Prusa Mini - PID Tuning?

It seems like this does not work anymore with the new 5.1.0 firmware upgrade. Any idea on how to get this working?

Posted : 26/11/2023 10:38 pm
MrSyNRG
(@mrsynrg)
Active Member
RE: Prusa Mini - PID Tuning?

After some digging i guess that the mini doesn't allow this command after all, and doesn't need it as it's running some custom algorithm that should be fine among all hotends/conditions etc so a pid tune isn't necessary

Posted : 26/11/2023 10:43 pm
imurfathersimba
(@imurfathersimba)
Active Member
RE:

The thing is, I was able to do it about a year ago. I keep getting errors when trying to heat my hotend to 270 for a cold pull. I looked around and it said that it might be because the pid tuning is off, which makes sense since I have a slice engineering copperhead. I should create a separate post for error.

This post was modified 1 year ago by imurfathersimba
Posted : 27/11/2023 12:51 am
PHabermehl
(@phabermehl)
Eminent Member
RE: Prusa Mini - PID Tuning?

Just uncomment the according line in "include/marlin/Configuration_MINI_adv.h"

/**
 * Enable PID autotune
 **/
#define PID_AUTOTUNE

and M303 will work again.

But beware, if the behaviour of your hotend is different from the Prusa, you might have to touch the hotend monitoring, too.

Changing hardware means: if the software still works, the hardware makes no difference, and if the hardware makes a difference, you have to adapt the software.

Of course you might run into a memory shortage. The Mini has a rather small EPROM so this might be the reason why some unneeded code was removed.

Finally, I would recommend to apply the PID tuning values to the firmware so you don't have to use M301 in your GCode and can print universal code without altering.

Good luck

Peter

Posted : 07/12/2023 1:11 pm
imurfathersimba
(@imurfathersimba)
Active Member
RE: Prusa Mini - PID Tuning?

Thank you for the information. I will test my printer with the new hardware I got (my thermistor and heater wires broke) without making any PID changes and see if it still works before messing around too much with the software. 

Posted : 07/12/2023 3:48 pm
Rat_Patrol
(@rat_patrol)
Trusted Member
RE: Prusa Mini - PID Tuning?

I'm having an issue where a revo with 0.6 ObXidian is giving thermal runaway errors. I tried a PID tune since I plan on running this nozzle a lot (and would just tune for the 0.4 brass and have the proper PID values in the start gcode for that profile), but I'm having the same "unknown command" issue.

 

I'm understanding it is due to the input shaper FW. Is there a workaround other than compiling your own FW?

Posted : 11/12/2023 5:36 pm
bmorgenthaler
(@bmorgenthaler)
Eminent Member
RE: Prusa Mini - PID Tuning?

So M303 isn't available but M301 still is, a possibility is to revert to older firmware, run the PID tune there and get the numbers, then upgrade your firmware and put the new numbers in your gcode.  Though I don't know if any of the logic for the PID calcs hav changed in the newest FW with InputShaping.

Posted by: @rat_patrol

I'm having an issue where a revo with 0.6 ObXidian is giving thermal runaway errors. I tried a PID tune since I plan on running this nozzle a lot (and would just tune for the 0.4 brass and have the proper PID values in the start gcode for that profile), but I'm having the same "unknown command" issue.

 

I'm understanding it is due to the input shaper FW. Is there a workaround other than compiling your own FW?

 

MINI+ with FW:4.3.3, Bondtech IFS Extruder, drilled out PC4-M8 couplers, 1 piece Capricorn bowden.

Posted : 11/12/2023 5:54 pm
PHabermehl
(@phabermehl)
Eminent Member
RE: Prusa Mini - PID Tuning?

The PID controller structure was massively changed so it doesn't make sense.

I've reverted (most of) the changes and re-enabled M303 in the SW. So I'd say there's no way around building a custom SW.

Posted by: @bmorgenthaler

So M303 isn't available but M301 still is, a possibility is to revert to older firmware, run the PID tune there and get the numbers, then upgrade your firmware and put the new numbers in your gcode.  Though I don't know if any of the logic for the PID calcs hav changed in the newest FW with InputShaping

Posted : 11/12/2023 7:20 pm
Share: