Welcome! Log In Create A New Profile

Advanced

PID Autotune

Posted by Taannoo 
PID Autotune
December 29, 2023 12:38PM
Maybe I am blind, but I cannot find any setting to turn on the controller fan when any PID Autotuning is running aside from manually setting via M710.

It would be nice to have that due to my bed heater MOSFET is residing inside the controller box with a fan plugged into the controller fan output.

Edited 1 time(s). Last edit at 12/29/2023 12:40PM by Taannoo.
Re: PID Autotune
December 29, 2023 04:05PM
CONTROLLER_FAN_PIN is turned on automatically when bed mosfets or stepper drivers are enabled.
Re: PID Autotune
December 29, 2023 06:09PM
The Hotend fan is not coming on either. I tried to get it to work as per your other post about it.

The default auto E0 temp is 65. I let the hotend cook at 90 for 5 mins. No hotend fan.

I will cook the bed to see if the controller fan comes on. My PS fan comes on, but that is not controlled by Marlin.
Re: PID Autotune
December 29, 2023 06:22PM
Okay. The controller fan did come on when I set the bed to 40 and it started heating.

But the controller fan never cam on during PID autotune.

I set the hotend to 100.... There is no hotend fan coming on. I will wire that to a full time 24V if that doesn't work.

This SKR 3 has 3 user controlled fans, yet I can only control 2 of them and the other doesn't work.

I can get F0 port to work if I set the Hotend fan to FAN1_PIN.
I can get F1 port to work if I set the Hotend fan to FAN0_PIN.

So, the ports, wiring, and the fans all work. This is a software issue.

Is there an Auto min temp that I am not aware of?

I am going to update to Today's build and see if this has been resolved in the last 2 weeks.
Re: PID Autotune
December 29, 2023 06:28PM
FAN0_PIN is always part cooling fan, gcode controlled by M106/M107

hotend fan is E0_AUTO_FAN_PIN, this cannot be set to FAN0_PIN Is not gcode controllable.will activate when extruder 0 tempature is > EXTRUDER_AUTO_FAN_TEMPERATURE

Edited 2 time(s). Last edit at 12/29/2023 06:30PM by Dust.
Re: PID Autotune
December 29, 2023 06:58PM
[marlinfw.org]

"Turn on one of the fans and set its speed. If no fan index is given, the print cooling fan is selected. The fan speed applies to the next block added to the planner, so it will not take effect until previous moves in the planner are done. Under manual control with an idle machine, M106 will change the fan speed immediately."

If it only controls the part fan, then why is there an index option? Wasn't it intended to work?

If the printer is idle and the temps are 0, I should be able to control all fans that are controllable. Just like the controller fan, I can turn it on at will and whatever speed I want, not temperature dependant.

Why am I not allow to test the hotend fan with M106 F1 S255?

F0 should be E0's fan. But instead, it's F1?

Just like T0 is E0's TC... not T1.

Okay, I just compiled with:
/**
 * Extruder cooling fans
 *
 * Extruder auto fans automatically turn on when their extruders'
 * temperatures go above EXTRUDER_AUTO_FAN_TEMPERATURE.
 *
 * Your board's pins file specifies the recommended pins. Override those here
 * or set to -1 to disable completely.
 *
 * Multiple extruders can be assigned to the same pin in which case
 * the fan will turn on when any selected extruder is above the threshold.
 */
#define E0_AUTO_FAN_PIN FAN0_PIN
#define E1_AUTO_FAN_PIN -1
#define E2_AUTO_FAN_PIN -1
#define E3_AUTO_FAN_PIN -1
#define E4_AUTO_FAN_PIN -1
#define E5_AUTO_FAN_PIN -1
#define E6_AUTO_FAN_PIN -1
#define E7_AUTO_FAN_PIN -1
#define CHAMBER_AUTO_FAN_PIN -1
#define COOLER_AUTO_FAN_PIN -1

#define EXTRUDER_AUTO_FAN_TEMPERATURE 65
#define EXTRUDER_AUTO_FAN_SPEED 255   // 255 == full speed
#define CHAMBER_AUTO_FAN_TEMPERATURE 30
#define CHAMBER_AUTO_FAN_SPEED 255
#define COOLER_AUTO_FAN_TEMPERATURE 18
#define COOLER_AUTO_FAN_SPEED 255

And I cannot control part or hotend fan.

This should not be an option if it cannot be changed.
Re: PID Autotune
December 29, 2023 07:30PM
I just set CONTROLLER_FAN_PIN FAN1_PIN and M710 now controls my part fan.
I cannot control Extruder fan or the controller fan.

I now set E0_AUTO_FAN_PIN FAN2_PIN compiled just fine.
Controlling part fan as F0 is good.
Controlling the controller fan as F1 is not working.
Controlling the extruder fan as the controller fan is not working.

Take-a-way.... M106 P1 doesn't work.
Controller fan will need to be set to manual when tuning the bed PID.
And the Hotend will just have to melt past the heatbreak during PID autotune.

Edited 1 time(s). Last edit at 12/29/2023 07:31PM by Taannoo.
Re: PID Autotune
December 29, 2023 07:44PM
you must be using old code for E0_AUTO_FAN_PIN FAN0_PIN to build, there is code in place to stop you doing that


#if PIN_EXISTS(E0_AUTO_FAN) && E0_AUTO_FAN_PIN == FAN0_PIN
      #error "You cannot set E0_AUTO_FAN_PIN equal to FAN0_PIN."
Re: PID Autotune
December 29, 2023 07:53PM
#define CONFIGURATION_H_VERSION 02010300

#define STRING_DISTRIBUTION_DATE "2023-12-12"

Yup. smiling smiley

It's ancient.
Attachments:
open | download - Configuration.h (133.7 KB)
open | download - Configuration_adv.h (184.8 KB)
open | download - Version.h (2.5 KB)
Re: PID Autotune
December 29, 2023 08:36PM
Just downloaded and installed:
STRING_DISTRIBUTION_DATE "2023-12-30"

CONFIGURATION_H_VERSION 02010300

The version number is the same. This caught me off guard and caused me to triple check everything.

That is funny! I set this:
#define E0_AUTO_FAN_PIN FAN1_PIN
And, it says I have too many fans assigned!!
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:994:4: error: #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
When
#define NUM_M106_FANS 1
Can't really be expected to be set to zero.

I will put it back.
Re: PID Autotune
December 29, 2023 08:37PM
Verbose mode can be enabled via `-v, --verbose` option
Generating config.ini ...
Copying variant MARLIN_H723VG to framework directory...
CONFIGURATION: [docs.platformio.org]
PLATFORM: ST STM32 (15.4.1) > STM32H723VG (564k RAM. 1024k Flash)
HARDWARE: STM32H723VGT6 550MHz, 564KB RAM, 1MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32 @ 4.20200.221104 (2.2.0)
 - framework-cmsis @ 2.50700.210515 (5.7.0)
 - toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> [bit.ly]
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 16 compatible libraries
Scanning dependencies...
Dependency Graph
|-- TMCStepper @ 0.7.3
|-- Adafruit NeoPixel @ 1.8.7
|-- U8glib-HAL @ 0.5.4
|-- SlowSoftI2CMaster @ 1.0.0
|-- SlowSoftWire @ 0.0.0+20231229182611
|-- IWatchdog @ 1.0.0
|-- SPI @ 1.0
|-- EEPROM @ 2.0.1
|-- SoftwareSerial @ 1.0
|-- Wire @ 1.0
|-- Servo @ 1.1.2
Building in release mode
Compiling .pio\build\STM32H723VG_btt\src\src\HAL\STM32\HAL.cpp.o
Compiling .pio\build\STM32H723VG_btt\src\src\HAL\STM32\HAL_SPI.cpp.o
Compiling .pio\build\STM32H723VG_btt\src\src\HAL\STM32\HardwareSerial.cpp.o
Compiling .pio\build\STM32H723VG_btt\src\src\HAL\STM32\MarlinSPI.cpp.o
Compiling .pio\build\STM32H723VG_btt\src\src\HAL\STM32\MarlinSerial.cpp.o
Compiling .pio\build\STM32H723VG_btt\src\src\HAL\STM32\MinSerial.cpp.o
Compiling .pio\build\STM32H723VG_btt\src\src\HAL\STM32\Servo.cpp.o
Compiling .pio\build\STM32H723VG_btt\src\src\HAL\STM32\eeprom_bl24cxx.cpp.o
Compiling .pio\build\STM32H723VG_btt\src\src\HAL\STM32\eeprom_flash.cpp.o
Compiling .pio\build\STM32H723VG_btt\src\src\HAL\STM32\eeprom_if_iic.cpp.o
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,
                 from Marlin\src\HAL\STM32\HAL.cpp:26:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:994:4: error: #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
  994 |   #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
      |    ^~~~~
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,
                 from Marlin\src\HAL\STM32\HAL_SPI.cpp:26:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:994:4: error: #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
  994 |   #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
      |    ^~~~~
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,
                 from Marlin\src\HAL\STM32\HardwareSerial.cpp:32:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:994:4: error: #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
  994 |   #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
      |    ^~~~~
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,
                 from Marlin\src\HAL\STM32\Servo.cpp:26:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:994:4: error: #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
  994 |   #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
      |    ^~~~~
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,
                 from Marlin\src\HAL\STM32\MarlinSerial.cpp:27:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:994:4: error: #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
  994 |   #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
      |    ^~~~~
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,
                 from Marlin\src\HAL\STM32\eeprom_bl24cxx.cpp:32:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:994:4: error: #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
  994 |   #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
      |    ^~~~~
*** [.pio\build\STM32H723VG_btt\src\src\HAL\STM32\HAL.cpp.o] Error 1
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,
                 from Marlin\src\HAL\STM32\eeprom_flash.cpp:26:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:994:4: error: #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
  994 |   #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
      |    ^~~~~
*** [.pio\build\STM32H723VG_btt\src\src\HAL\STM32\HAL_SPI.cpp.o] Error 1
In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:52,
                 from Marlin\src\HAL\STM32\eeprom_if_iic.cpp:32:
Marlin\src\HAL\STM32\../../inc/SanityCheck.h:994:4: error: #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
  994 |   #error "The selected board doesn't support enough user-controlled fans. Reduce NUM_M106_FANS."
      |    ^~~~~
*** [.pio\build\STM32H723VG_btt\src\src\HAL\STM32\MarlinSerial.cpp.o] Error 1
*** [.pio\build\STM32H723VG_btt\src\src\HAL\STM32\Servo.cpp.o] Error 1
*** [.pio\build\STM32H723VG_btt\src\src\HAL\STM32\HardwareSerial.cpp.o] Error 1
*** [.pio\build\STM32H723VG_btt\src\src\HAL\STM32\eeprom_bl24cxx.cpp.o] Error 1
*** [.pio\build\STM32H723VG_btt\src\src\HAL\STM32\eeprom_flash.cpp.o] Error 1
*** [.pio\build\STM32H723VG_btt\src\src\HAL\STM32\eeprom_if_iic.cpp.o] Error 1

(** Edit to cut out the successful build part of the log.)

Edited 1 time(s). Last edit at 12/30/2023 09:47AM by Taannoo.
Attachments:
open | download - Configuration.h (134.3 KB)
open | download - Configuration_adv.h (185.7 KB)
Re: PID Autotune
December 29, 2023 08:51PM
EXTRUDER_AUTO_FAN_TEMPERATURE 50

Still does not work. Is there a time delay? If so, how much time?

The Hotend fan does not come on when the set temp has been reached or surpassed.
Controller fan does come on when the bed starts heating.

Now, to try the PID autotunes again.

Edited 1 time(s). Last edit at 12/29/2023 08:53PM by Taannoo.
Re: PID Autotune
December 29, 2023 08:55PM
Started
M303 E-1 C8 S60

And the bed is getting hot.... even pulling 16A on my ammeter.....
Controller fan is not on.
Neopixel strip lit up though

I cannot turn on the fan after the autotune has started. All has to wait. There is no MOSFET cooling ATM.
There is also no temp display on the TFT.
But the temp is being displayed via OCTOPRINT.

Power supply fan just came on at PID cycle 5/8. So, that is some cooling.

Send: M303 E-1 C8 S60
Recv: //action:notification PID Autotune
Recv: PID Autotune start
Recv: //action:notification Heating...
[...]
Recv: //action:notification PID Cycles 0/8
[...]
Recv:  bias: 85 d: 85 min: 59.78 max: 60.23//action:notification PID Cycles 1/8
[...]
Recv:  bias: 74 d: 74 min: 59.78 max: 60.21//action:notification PID Cycles 2/8
[...]
Recv:  bias: 74 d: 74 min: 59.79 max: 60.17 Ku: 497.13 Tu: 21.44
Recv:  No overshoot
Recv:  Kp: 99.43 Ki: 9.28 Kd: 710.44
Recv: //action:notification PID Cycles 3/8
[...]
Recv:  bias: 77 d: 77 min: 59.80 max: 60.16 Ku: 544.29 Tu: 20.80
Recv:  No overshoot
Recv:  Kp: 108.86 Ki: 10.47 Kd: 754.61
Recv: //action:notification PID Cycles 4/8
[...]
Recv:  bias: 77 d: 77 min: 59.82 max: 60.18 Ku: 547.05 Tu: 20.63
Recv:  No overshoot
Recv:  Kp: 109.41 Ki: 10.60 Kd: 752.52
Recv: //action:notification PID Cycles 5/8
[...]
Recv:  bias: 77 d: 77 min: 59.82 max: 60.15 Ku: 606.40 Tu: 20.47
Recv:  No overshoot
Recv:  Kp: 121.28 Ki: 11.85 Kd: 827.61
Recv: //action:notification PID Cycles 6/8
[...]
Recv:  bias: 79 d: 79 min: 59.79 max: 60.16 Ku: 547.98 Tu: 20.64
Recv:  No overshoot
Recv:  Kp: 109.60 Ki: 10.62 Kd: 753.95
Recv: //action:notification PID Cycles 7/8
[...]
Recv:  bias: 79 d: 79 min: 59.82 max: 60.15 Ku: 610.54 Tu: 19.67
Recv:  No overshoot
Recv:  Kp: 122.11 Ki: 12.41 Kd: 800.78
Recv: //action:notification PID Cycles 8/8
Recv: PID Autotune finished! Put the last Kp, Ki and Kd constants from below into Configuration.h
Recv: //action:notification PID tuning done
Recv: #define DEFAULT_bedKp 122.11#define DEFAULT_bedKi 12.41#define DEFAULT_bedKd 800.78//action:notification BTT Kobra Max Ready.
Recv: ok P15 B7

So, the PID autotune completed successfully. The NEOPIXEL strip turned off and the controller fan came on. Wow... a little late, don't you think?
The autotune output format could use some formatting to match the program to be a nice copy and paste like it was in the past.

Putting everything on hold a little too soon?

Edited 5 time(s). Last edit at 12/29/2023 09:04PM by Taannoo.
Re: PID Autotune
December 30, 2023 01:53PM
What is interesting is that the temperature reports through serial show that the fan speed is commanded. But the fan does not come on.

Control
GCode Viewer
Terminal
Timelapse
[...]
Recv:  T:21.35 /0.00 (3935.00) B:20.87 /0.00 (3934.44) @:0 B@:0
[...]
Recv:  T:21.35 /0.00 (3935.00) B:20.93 /0.00 (3934.06) @:0 B@:0
Send: M303 E-1 C8 S60
Recv: //action:notification PID Autotune
Recv: PID Autotune start
Recv: //action:notification Heating...
Recv:  T:21.35 /0.00 (3935.00) B:20.91 /0.00 (3934.19) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:20.86 /0.00 (3934.50) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:20.99 /0.00 (3933.69) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:21.34 /0.00 (3931.44) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:21.80 /0.00 (3928.50) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:22.36 /0.00 (3924.88) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:23.07 /0.00 (3920.38) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:23.71 /0.00 (3916.25) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:24.31 /0.00 (3912.44) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:25.06 /0.00 (3907.50) @:0 B@:127
Recv:  T:21.33 /0.00 (3935.13) B:26.24 /0.00 (3897.06) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:26.97 /0.00 (3890.69) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:27.44 /0.00 (3886.56) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:27.89 /0.00 (3882.56) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:28.42 /0.00 (3877.88) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:28.86 /0.00 (3874.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:29.20 /0.00 (3871.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:29.20 /0.00 (3871.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:29.30 /0.00 (3870.13) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:29.76 /0.00 (3866.13) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:30.22 /0.00 (3861.88) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:30.58 /0.00 (3858.44) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:31.02 /0.00 (3854.19) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:31.39 /0.00 (3850.63) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:31.82 /0.00 (3846.56) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:32.24 /0.00 (3842.50) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:33.30 /0.00 (3832.31) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:33.77 /0.00 (3827.81) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:34.21 /0.00 (3823.63) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:34.57 /0.00 (3820.13) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:34.99 /0.00 (3816.13) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:35.32 /0.00 (3812.19) @:0 B@:127
Recv:  T:21.36 /0.00 (3934.94) B:35.63 /0.00 (3808.44) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:35.74 /0.00 (3807.06) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:35.76 /0.00 (3806.94) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:35.97 /0.00 (3804.38) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:36.32 /0.00 (3800.19) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:36.65 /0.00 (3796.19) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:37.02 /0.00 (3791.75) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:37.31 /0.00 (3788.25) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:37.72 /0.00 (3783.38) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:38.05 /0.00 (3779.44) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:38.67 /0.00 (3772.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:39.38 /0.00 (3763.50) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:39.81 /0.00 (3758.31) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:40.06 /0.00 (3755.13) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:40.40 /0.00 (3750.63) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:40.71 /0.00 (3746.31) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:40.95 /0.00 (3743.13) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:40.96 /0.00 (3743.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:41.06 /0.00 (3741.56) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:41.40 /0.00 (3736.50) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:41.75 /0.00 (3732.25) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:42.05 /0.00 (3727.63) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:42.36 /0.00 (3723.88) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:42.68 /0.00 (3718.63) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:43.02 /0.00 (3714.88) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:43.98 /0.00 (3701.88) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:44.35 /0.00 (3696.81) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:44.66 /0.00 (3692.69) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:44.98 /0.00 (3688.31) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:45.29 /0.00 (3683.63) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:45.58 /0.00 (3679.19) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:45.59 /0.00 (3679.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:45.64 /0.00 (3678.25) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:46.02 /0.00 (3672.56) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:46.30 /0.00 (3668.31) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:46.60 /0.00 (3663.75) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:46.92 /0.00 (3658.75) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:47.23 /0.00 (3654.13) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:47.53 /0.00 (3649.56) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:48.39 /0.00 (3636.50) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:48.66 /0.00 (3632.38) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:49.05 /0.00 (3626.44) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:49.35 /0.00 (3621.94) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:49.67 /0.00 (3617.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:49.80 /0.00 (3615.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:49.82 /0.00 (3614.69) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:50.05 /0.00 (3611.06) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:50.39 /0.00 (3605.06) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:50.65 /0.00 (3600.56) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:50.92 /0.00 (3595.81) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:51.18 /0.00 (3591.31) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:51.47 /0.00 (3586.06) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:52.21 /0.00 (3573.19) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:52.55 /0.00 (3567.19) @:0 B@:127
Recv:  T:21.38 /0.00 (3934.81) B:52.83 /0.00 (3562.13) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:53.12 /0.00 (3557.13) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:53.39 /0.00 (3552.25) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:53.47 /0.00 (3551.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:53.51 /0.00 (3550.19) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:53.80 /0.00 (3545.19) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:54.03 /0.00 (3541.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:54.35 /0.00 (3535.50) @:0 B@:127
Recv:  T:21.36 /0.00 (3934.94) B:54.63 /0.00 (3530.44) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:54.94 /0.00 (3525.06) @:0 B@:127
Recv:  T:21.37 /0.00 (3934.88) B:55.31 /0.00 (3518.13) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:55.89 /0.00 (3507.00) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:56.15 /0.00 (3501.88) @:0 B@:127
Recv:  T:21.36 /0.00 (3934.94) B:56.43 /0.00 (3496.63) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:56.68 /0.00 (3491.81) @:0 B@:127
Recv:  T:21.37 /0.00 (3934.88) B:56.92 /0.00 (3487.19) @:0 B@:127
Recv:  T:21.35 /0.00 (3935.00) B:56.93 /0.00 (3487.00) @:0 B@:127
Recv:  T:21.36 /0.00 (3934.94) B:57.07 /0.00 (3484.19) @:0 B@:127
Recv:  T:21.37 /0.00 (3934.88) B:57.29 /0.00 (3480.00) @:0 B@:127
Recv:  T:21.42 /0.00 (3934.50) B:57.60 /0.00 (3474.00) @:0 B@:127
Recv:  T:21.36 /0.00 (3934.94) B:57.83 /0.00 (3469.63) @:0 B@:127
Recv:  T:21.40 /0.00 (3934.69) B:58.13 /0.00 (3463.94) @:0 B@:127
Recv:  T:21.40 /0.00 (3934.69) B:58.37 /0.00 (3459.38) @:0 B@:127
Recv:  T:21.41 /0.00 (3934.63) B:59.10 /0.00 (3445.38) @:0 B@:127
Recv:  T:21.39 /0.00 (3934.75) B:59.32 /0.00 (3441.06) @:0 B@:127
Recv:  T:21.42 /0.00 (3934.56) B:59.62 /0.00 (3435.38) @:0 B@:127
Recv:  T:21.44 /0.00 (3934.38) B:59.85 /0.00 (3430.94) @:0 B@:127
Recv:  T:21.47 /0.00 (3934.19) B:60.12 /0.00 (3425.31) @:0 B@:0
Recv:  T:21.44 /0.00 (3934.38) B:60.23 /0.00 (3423.06) @:0 B@:0
Recv:  T:21.50 /0.00 (3934.00) B:60.23 /0.00 (3423.00) @:0 B@:0
Recv:  T:21.49 /0.00 (3934.06) B:60.23 /0.00 (3423.00) @:0 B@:0
Recv:  T:21.50 /0.00 (3934.00) B:60.23 /0.00 (3423.00) @:0 B@:0
Recv:  T:21.49 /0.00 (3934.06) B:60.23 /0.00 (3423.00) @:0 B@:0
Recv:  T:21.51 /0.00 (3933.94) B:60.23 /0.00 (3423.00) @:0 B@:0
Recv:  T:21.61 /0.00 (3933.25) B:60.20 /0.00 (3423.69) @:0 B@:0
Recv:  T:21.58 /0.00 (3933.50) B:60.05 /0.00 (3426.94) @:0 B@:0
Recv: //action:notification PID Cycles 0/8
Recv:  T:21.59 /0.00 (3933.38) B:59.92 /0.00 (3429.50) @:0 B@:127
Recv:  T:21.52 /0.00 (3933.88) B:59.81 /0.00 (3431.69) @:0 B@:127
Recv:  T:21.58 /0.00 (3933.44) B:59.80 /0.00 (3431.81) @:0 B@:127
Recv:  T:21.59 /0.00 (3933.38) B:59.90 /0.00 (3429.88) @:0 B@:127
Recv:  T:21.63 /0.00 (3933.13) B:60.08 /0.00 (3426.13) @:0 B@:0
Recv:  T:21.62 /0.00 (3933.19) B:60.22 /0.00 (3423.19) @:0 B@:0
Recv:  T:21.70 /0.00 (3932.69) B:60.23 /0.00 (3423.00) @:0 B@:0
Recv:  T:21.73 /0.00 (3932.44) B:60.23 /0.00 (3423.00) @:0 B@:0
Recv:  T:21.73 /0.00 (3932.50) B:60.23 /0.00 (3423.00) @:0 B@:0
Recv:  T:21.71 /0.00 (3932.63) B:60.22 /0.00 (3423.25) @:0 B@:0
Recv:  T:21.73 /0.00 (3932.50) B:60.16 /0.00 (3424.94) @:0 B@:0
Recv:  T:21.79 /0.00 (3932.06) B:60.01 /0.00 (3427.69) @:0 B@:0
Recv:  bias: 87 d: 87 min: 59.77 max: 60.23//action:notification PID Cycles 1/8
Recv:  T:21.87 /0.00 (3931.56) B:59.88 /0.00 (3430.25) @:0 B@:87
Recv:  T:21.79 /0.00 (3932.06) B:59.80 /0.00 (3431.75) @:0 B@:87
Recv:  T:21.77 /0.00 (3932.19) B:59.82 /0.00 (3431.50) @:0 B@:87
Recv:  T:21.88 /0.00 (3931.44) B:59.90 /0.00 (3429.94) @:0 B@:87
Recv:  T:21.82 /0.00 (3931.88) B:60.02 /0.00 (3427.63) @:0 B@:0
Recv:  T:21.84 /0.00 (3931.75) B:60.11 /0.00 (3425.69) @:0 B@:0
Recv:  T:21.89 /0.00 (3931.38) B:60.20 /0.00 (3423.69) @:0 B@:0
Recv:  T:21.84 /0.00 (3931.75) B:60.20 /0.00 (3423.69) @:0 B@:0
Recv:  T:21.90 /0.00 (3931.31) B:60.17 /0.00 (3424.31) @:0 B@:0
Recv:  T:21.90 /0.00 (3931.31) B:60.13 /0.00 (3425.19) @:0 B@:0
Recv:  bias: 78 d: 78 min: 59.79 max: 60.22//action:notification PID Cycles 2/8
Recv:  T:22.02 /0.00 (3930.56) B:60.03 /0.00 (3427.31) @:0 B@:78
Recv:  T:21.98 /0.00 (3930.81) B:59.92 /0.00 (3429.50) @:0 B@:78
Recv:  T:21.92 /0.00 (3931.19) B:59.81 /0.00 (3431.63) @:0 B@:78
Recv:  T:21.94 /0.00 (3931.06) B:59.86 /0.00 (3430.69) @:0 B@:78
Recv:  T:21.99 /0.00 (3930.75) B:59.91 /0.00 (3429.81) @:0 B@:78
Recv:  T:22.02 /0.00 (3930.56) B:60.01 /0.00 (3427.81) @:0 B@:0
Recv:  T:22.00 /0.00 (3930.69) B:60.10 /0.00 (3425.94) @:0 B@:0
Recv:  T:22.05 /0.00 (3930.31) B:60.15 /0.00 (3424.75) @:0 B@:0
Recv:  T:22.04 /0.00 (3930.38) B:60.16 /0.00 (3424.56) @:0 B@:0
Recv:  T:22.04 /0.00 (3930.38) B:60.10 /0.00 (3425.94) @:0 B@:0
Recv:  T:22.07 /0.00 (3930.19) B:60.02 /0.00 (3427.63) @:0 B@:0
Recv:  bias: 77 d: 77 min: 59.81 max: 60.17 Ku: 545.39 Tu: 20.47
Recv:  No overshoot
Recv:  Kp: 109.08 Ki: 10.66 Kd: 744.42
Recv: //action:notification PID Cycles 3/8
Recv:  T:22.04 /0.00 (3930.38) B:59.90 /0.00 (3429.88) @:0 B@:77
Recv:  T:22.06 /0.00 (3930.25) B:59.83 /0.00 (3431.25) @:0 B@:77
Recv:  T:22.11 /0.00 (3929.94) B:59.82 /0.00 (3431.44) @:0 B@:77
Recv:  T:22.11 /0.00 (3929.94) B:59.85 /0.00 (3430.94) @:0 B@:77
Recv:  T:22.13 /0.00 (3929.81) B:59.96 /0.00 (3428.81) @:0 B@:77
Recv:  T:22.15 /0.00 (3929.69) B:60.05 /0.00 (3427.00) @:0 B@:0
Recv:  T:22.15 /0.00 (3929.69) B:60.13 /0.00 (3425.19) @:0 B@:0
Recv:  T:22.21 /0.00 (3929.25) B:60.15 /0.00 (3424.75) @:0 B@:0
Recv:  T:22.17 /0.00 (3929.56) B:60.14 /0.00 (3425.06) @:0 B@:0
Recv:  T:22.23 /0.00 (3929.13) B:60.06 /0.00 (3426.63) @:0 B@:0
Recv:  bias: 78 d: 78 min: 59.78 max: 60.17 Ku: 510.37 Tu: 21.12
Recv:  No overshoot
Recv:  Kp: 102.07 Ki: 9.66 Kd: 718.70
Recv: //action:notification PID Cycles 4/8
Recv:  T:22.20 /0.00 (3929.31) B:59.98 /0.00 (3428.38) @:0 B@:78
Recv:  T:22.24 /0.00 (3929.06) B:59.86 /0.00 (3430.75) @:0 B@:78
Recv:  T:22.20 /0.00 (3929.31) B:59.85 /0.00 (3430.88) @:0 B@:78
Recv:  T:22.20 /0.00 (3929.31) B:59.81 /0.00 (3431.69) @:0 B@:78
Recv:  T:22.25 /0.00 (3929.00) B:59.91 /0.00 (3429.75) @:0 B@:78
Recv:  T:22.30 /0.00 (3928.69) B:59.98 /0.00 (3428.38) @:0 B@:0
Recv:  T:22.28 /0.00 (3928.81) B:60.10 /0.00 (3425.94) @:0 B@:0
Recv:  T:22.34 /0.00 (3928.38) B:60.11 /0.00 (3425.63) @:0 B@:0
Recv:  T:22.31 /0.00 (3928.63) B:60.08 /0.00 (3426.31) @:0 B@:0
Recv:  T:22.40 /0.00 (3928.00) B:60.02 /0.00 (3427.50) @:0 B@:0
Recv:  bias: 80 d: 80 min: 59.79 max: 60.12 Ku: 600.47 Tu: 19.51
Recv:  No overshoot
Recv:  Kp: 120.09 Ki: 12.31 Kd: 781.17
Recv: //action:notification PID Cycles 5/8
Recv:  T:22.33 /0.00 (3928.50) B:59.91 /0.00 (3429.69) @:0 B@:80
Recv:  T:22.38 /0.00 (3928.13) B:59.82 /0.00 (3431.38) @:0 B@:80
Recv:  T:22.39 /0.00 (3928.06) B:59.81 /0.00 (3431.56) @:0 B@:80
Recv:  T:22.41 /0.00 (3927.94) B:59.87 /0.00 (3430.50) @:0 B@:80
Recv:  T:22.36 /0.00 (3928.25) B:59.92 /0.00 (3429.50) @:0 B@:80
Recv:  T:22.46 /0.00 (3927.63) B:60.02 /0.00 (3427.50) @:0 B@:0
Recv:  T:22.41 /0.00 (3927.94) B:60.11 /0.00 (3425.69) @:0 B@:0
Recv:  T:22.43 /0.00 (3927.81) B:60.14 /0.00 (3425.00) @:0 B@:0
Recv:  T:22.45 /0.00 (3927.69) B:60.10 /0.00 (3425.81) @:0 B@:0
Recv:  T:22.45 /0.00 (3927.69) B:60.07 /0.00 (3426.50) @:0 B@:0
Recv:  bias: 82 d: 82 min: 59.80 max: 60.16 Ku: 573.88 Tu: 20.15
Recv:  No overshoot
Recv:  Kp: 114.78 Ki: 11.39 Kd: 771.02
Recv: //action:notification PID Cycles 6/8
Recv:  T:22.48 /0.00 (3927.50) B:59.99 /0.00 (3428.13) @:0 B@:82
Recv:  T:22.49 /0.00 (3927.38) B:59.86 /0.00 (3430.63) @:0 B@:82
Recv:  T:22.48 /0.00 (3927.44) B:59.80 /0.00 (3431.81) @:0 B@:82
Recv:  T:22.56 /0.00 (3926.94) B:59.84 /0.00 (3431.13) @:0 B@:82
Recv:  T:22.53 /0.00 (3927.13) B:59.91 /0.00 (3429.81) @:0 B@:82
Recv:  T:22.57 /0.00 (3926.88) B:60.04 /0.00 (3427.13) @:0 B@:0
Recv:  T:22.57 /0.00 (3926.88) B:60.11 /0.00 (3425.69) @:0 B@:0
Recv:  T:22.62 /0.00 (3926.50) B:60.15 /0.00 (3424.69) @:0 B@:0
Recv:  T:22.62 /0.00 (3926.50) B:60.16 /0.00 (3424.56) @:0 B@:0
Recv:  T:22.62 /0.00 (3926.50) B:60.07 /0.00 (3426.56) @:0 B@:0
Recv:  bias: 82 d: 82 min: 59.80 max: 60.17 Ku: 565.45 Tu: 20.64
Recv:  No overshoot
Recv:  Kp: 113.09 Ki: 10.96 Kd: 777.98
Recv: //action:notification PID Cycles 7/8
Recv:  T:22.64 /0.00 (3926.38) B:60.00 /0.00 (3428.00) @:0 B@:82
Recv:  T:22.63 /0.00 (3926.44) B:59.86 /0.00 (3430.69) @:0 B@:82
Recv:  T:22.66 /0.00 (3926.25) B:59.78 /0.00 (3432.19) @:0 B@:82
Recv:  T:22.66 /0.00 (3926.25) B:59.79 /0.00 (3431.94) @:0 B@:82
Recv:  T:22.65 /0.00 (3926.31) B:59.89 /0.00 (3430.06) @:0 B@:82
Recv:  T:22.68 /0.00 (3926.13) B:59.98 /0.00 (3428.44) @:0 B@:82
Recv:  T:22.68 /0.00 (3926.13) B:60.09 /0.00 (3426.13) @:0 B@:0
Recv:  T:22.70 /0.00 (3926.00) B:60.16 /0.00 (3424.44) @:0 B@:0
Recv:  T:22.72 /0.00 (3925.88) B:60.16 /0.00 (3424.31) @:0 B@:0
Recv:  T:22.72 /0.00 (3925.88) B:60.12 /0.00 (3425.38) @:0 B@:0
Recv:  T:22.75 /0.00 (3925.69) B:60.05 /0.00 (3427.13) @:0 B@:0
Recv:  bias: 83 d: 83 min: 59.78 max: 60.19 Ku: 520.36 Tu: 21.12
Recv:  No overshoot
Recv:  Kp: 104.07 Ki: 9.86 Kd: 732.56
Recv: //action:notification PID Cycles 8/8
Recv: PID Autotune finished! Put the last Kp, Ki and Kd constants from below into Configuration.h
Recv: //action:notification PID tuning done
Recv: #define DEFAULT_bedKp 104.07#define DEFAULT_bedKi 9.86#define DEFAULT_bedKd 732.56//action:notification BTT Kobra Max Ready.
Recv: ok P15 B7
Recv:  T:22.74 /0.00 (3925.75) B:60.00 /0.00 (3428.06) @:0 B@:83
[...]
Recv:  T:22.78 /0.00 (3925.44) B:59.87 /0.00 (3430.50) @:0 B@:0
[...]
Recv:  T:22.76 /0.00 (3925.63) B:59.75 /0.00 (3432.81) @:0 B@:0
[...]
Recv:  T:22.82 /0.00 (3925.19) B:59.60 /0.00 (3435.75) @:0 B@:0
[...]

Or does that last bit of info, "B@:xxx" mean something else?

I modified this:
SString<100> s(F(" E@:"), getHeaterPower((heater_id_t)target_extruder));
To get this result:
Recv:  T:23.81 /0.00 (3917.50) B:25.50 /0.00 (3903.56) E@:0 B@:0
[...]
Recv:  T:23.81 /0.00 (3917.50) B:25.50 /0.00 (3903.63) E@:0 B@:0
[...]
Recv:  T:23.80 /0.00 (3917.56) B:25.49 /0.00 (3903.69) E@:0 B@:0

What is up with this?
TERN_(SINGLENOZZLE, if (fan < EXTRUDERS) fan = 0); // Always fan 0 for SINGLENOZZLE E fan

I was told that is always F1.

Edited 3 time(s). Last edit at 12/30/2023 07:20PM by Taannoo.
Re: PID Autotune
December 30, 2023 02:04PM
Wow...this rabbit hole is getting deeper and deeper.

#define PID_FAN_SCALING, then I loose control of the controller fan.

//#define PID_FAN_SCALING, then I get control of the controller fan again.


Can't we have the same for the hotend fan?

Got the PID_FAN_SCALING to work. The default numbers were so low that the fan didn't move.
I will experiment with other numbers later.

Edited 1 time(s). Last edit at 12/30/2023 02:26PM by Taannoo.
Re: PID Autotune
December 30, 2023 06:33PM
See Temperature::print_heater_states

s.append(" B@:", getHeaterPower(H_BED));

B@ is bed heaterpower (the raw PWM value) (note this is shifted 1 bit, right, 127 is full pwm.)

Edited 1 time(s). Last edit at 12/30/2023 06:47PM by Dust.
Re: PID Autotune
December 30, 2023 07:19PM
Quote
Dust
See Temperature::print_heater_states

s.append(" B@:", getHeaterPower(H_BED));

B@ is bed heaterpower (the raw PWM value) (note this is shifted 1 bit, right, 127 is full pwm.)

That is not the Bed fan output also? Okay.

Edited 1 time(s). Last edit at 12/30/2023 07:21PM by Taannoo.
Re: PID Autotune
December 30, 2023 07:22PM
Well, like I said, since it doesn't work like it should, I will tackle it a different way and wait for this to be fixed.

I do not need to melt things due to absolutely little to no cooling during tuning.

Thanks for your help Dust.

Edited 1 time(s). Last edit at 12/30/2023 07:23PM by Taannoo.
Re: PID Autotune
December 30, 2023 10:33PM
I am going to kick Anycubic in the nuts. The fans they put in the hotend are direction protected. Wire them up backwards and they do not work.

My part cooling fans were wired correctly and the E0 fan was not.

I now have the E0 (F1) fan is working as it should. It does come on with the temp at or above the setpoint.

My controller fan on the other hand is not so lucky. It works just fine from the screen, from M106 commands, but not the PID autotune.

Now, I am going to start a test print and see if the controller fan comes on during a print.
Re: PID Autotune
December 31, 2023 01:39AM
All DC fans have polarity... this is normal.

Edited 1 time(s). Last edit at 12/31/2023 01:40AM by Dust.
Re: PID Autotune
December 31, 2023 09:06AM
Maybe a new normal. They used to run backwards if they were hooked up backwards.

Anyway... I touted the probe wizard being better than me. Well, that was premature. It is printing 3mm above the bed.

Found that I have to set the home offset after every flash. There is no place to set this in the configs.

Edited 1 time(s). Last edit at 01/02/2024 04:09AM by Taannoo.
Sorry, only registered users may post in this forum.

Click here to login