Tips for autotuning a very large heated chamber?
-
@droftarts Looking at the console, it takes exactly 30 minutes before giving this error. At that point the temperature has risen to 121C. The temperature is still increasing, just not fast enough for the firmware.
I can try starting with the PID values from the chamber alone, increase the dead time, and try PID tuning again.
Yes I think if this process works, I'll have to make a macro or something that will heat the chamber and then separate the bed so it's temp can drop to the chamber temp.
-
@droftarts the 30 minute time limit makes sense, I expect I will need a lot longer than that just due to the amount of air, and thermal mass of the bed + the inner walls of the chamber.
I'll give your suggestions a shot and post an update. It's tough to say how long I'll need, I'm trying to do the calculations to find the heat capacity of the entire system and my heat losses. Perhaps the time to heat limit could be a user parameter? We've actually been trying to compile the firmware ourselves, but we're not very familiar with compiling for arm32 and it's been a challenge to get it to compile without errors.
-
@p8blr I've raised a feature request to add a parameter to override the default timeout: https://github.com/Duet3D/RepRapFirmware/issues/948
That doesn't help you immediately, though!We've actually been trying to compile the firmware ourselves, but we're not very familiar with compiling for arm32 and it's been a challenge to get it to compile without errors.
I've asked @dc42 for information on what needs changing in the firmware to change the timeout. If you are having trouble compiling, post a new thread with the errors you are getting. I assume you have seen this page? https://github.com/Duet3D/RepRapFirmware/wiki/Building-RepRapFirmware
Ian
-
@droftarts I'll have to get back to you on the compiling errors, but yes we're using that page as a guide.
On a different note, I attempted to autotune to 60C today, it hit that temperature very quickly, but got stuck in phase 3 and DWC stopped working. Refreshing the page gets to the "connecting" page but that's it. I've tried different phones/PCs but all get stuck at connecting. This has happened a lot before, but I figured it was a normal bug, but now I've noticed that it's correlating with me combining the heaters. It messes it up to the point that when I reboot the printer, that it won't connect again until I pull out the sd card, modify config.g and then start it up again.
Both versions of my config.g are over 2000 characters so I'm just attaching them
workingconfig.g
brokenconfig.g
DriveSetup.g
startup.g
daemon.gI should also note that I'm running a raspberry pi 4 in sbc mode with a fast 32gb samsung evo card, and I'm on release candidate 2 (same issue with 1)
-
@p8blr Can you press F12 or open the dev tools in your browser session and check for potential errors in the console? If nothing shows up there, can you please check the duetcontrolserver log? See the section about
journalctl
in https://github.com/Duet3D/DuetSoftwareFramework/wiki/SBC-Setup-Guide#increasing-log-level.It doesn't look like DSF loses connection to the Duet so I suspect something else is going on.
-
@chrishamm I'll have to put that code back and run a PID autotune again, I'll get back to you with an update.
-
@chrishamm I changed the settings and restarted and got the error, I didn't even have to autotune.
journalctl -u duetcontrolserver -f
Also I should mention that putty freezes up very frequently when this error happens.
-
@p8blr If PuTTY freezes as well that probably means the Pi stops working at some point. In that case I'd rather check the electronics again. Are you operating the Pi from the Duet's 5V rail? If yes, consider removing the 5V -> SBC jumper and hook up the Pi to an external 5V PSU.
-
@chrishamm I'm powering the pi via a usb C supply. My suspicion is that because the freezing happens at a regular pace, perhaps it has to do with the daemon.g. Is that possible?
-
@p8blr I need the full DuetControlServer log to answer that. Your excerpt didn't show anything significant.
-
@chrishamm How do I generate that?
-
@p8blr
journalctl -u duetcontrolserver --no-pager -b
-
-
-
@chrishamm I can, I'll get back to you on it...
-
@chrishamm So far I'm not getting any more issues connecting to the web interface with the heaters combined now, just errors that the DWC versions don't match.
-
@p8blr have you refreshed page? this bites me on occasion on upgrades!
-
@T3P3Tony refreshing the page seems to work fine. I know what you mean though, sometimes before when I refreshed the page it wouldn't reconnect.
-
@p8blr yep if DWC is upgraded the page needs to be refreshed before it's upgraded in the version you browser is displaying!
-