Have you tried the new marlin PID autotune option?
Cheers,
Len.
Have you tried the new marlin PID autotune option?
That's surprising. I was getting a +/- 2 C swing using bang bang and then I tried the autotune and it worked really well for me on my Mosaic. I ended up with these settings and a +/- 0.05 C swing:
That does sound odd. How many cycles did you let the M303 run for? I let it run ~5-6 cycles, and now my swing is +-0.2. Admittedly, I am using a MendelMax, but that really shouldn't affect things.
I've also had poor results with the marlin autotune. I've also noticed
that when you send a M301 to retrieve the current PID parameters, only
the proportional gain matches the value compiled in from
configuration.h. So are we supposed to compile in the numbers the
autotune gives us or..?
There are a few things I'm not sure about yet (haven't dug into the source)
- is the PID implementation interacting (proportional gain affects I & D)
- is the integral gain in repeats/min or min/repeat? kind of a big difference..
I've also had poor results with the marlin autotune. I've also noticed
that when you send a M301 to retrieve the current PID parameters, only
the proportional gain matches the value compiled in from
configuration.h. So are we supposed to compile in the numbers the
autotune gives us or..?
There are a few things I'm not sure about yet (haven't dug into the source)
- is the PID implementation interacting (proportional gain affects I & D)
- is the integral gain in repeats/min or min/repeat? kind of a big difference..
My issue is that, if I build and upload the firmware with:
#define DEFAULT_Kp 20
#define DEFAULT_Ki 0.3
#define DEFAULT_Kd 225
Then when I go online with the printer, I get:
>>>m301
SENDING:M301
ok p:20.00 i:2.29 d:29.49 c:0.13
So what is happening here? Do I ignore the firmware values and always
set the tuning parameters with M301?
My issue is that, if I build and upload the firmware with:#define DEFAULT_Kp 20
#define DEFAULT_Ki 0.3
#define DEFAULT_Kd 225
Then when I go online with the printer, I get:
>>>m301
SENDING:M301
ok p:20.00 i:2.29 d:29.49 c:0.13
So what is happening here? Do I ignore the firmware values and always
set the tuning parameters with M301?