Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors and stuck printer on MPC #13

Open
systemerror-codenotfound opened this issue Nov 26, 2023 · 8 comments
Open

Errors and stuck printer on MPC #13

systemerror-codenotfound opened this issue Nov 26, 2023 · 8 comments

Comments

@systemerror-codenotfound
Copy link

systemerror-codenotfound commented Nov 26, 2023

Hi,

I just flashed the firmware on my Genius Pro using STM32CubeProgrammer and after that i flashed the TFT firmware over a sd card (AT-GP-fil-lev)

It works, but there are some "problems"

If i try to make a PID (this doesn't work, it's disabled on firmware) from console.
Also MPC autotune from the TFT the printer stucks on "busy processing, please wait" and it doesn't doo nothing at all, i tried letting the printer 1 hour and it was stuck on the same.

The LED change to red and never works.

IF i try to launch the calibration from console it isn't starting

Send: M306 T
Recv: M306 E0 P40.00 C16.70 R0.2200 A0.0680 F0.0970 H0.0056
Recv: ok P15 B31

But it should no?
https://marlinfw.org/docs/features/model_predictive_control.html

I tried the BED PID and that looks fine (it got stuck first time but it worked after that)

Also when doing the auto level (ABL) it's using 120ºC on the hotend only?

@Dave811
Copy link
Owner

Dave811 commented Nov 26, 2023

I will have a look but the biggest problem is, that I am now using klipper, if I find something I can bring out an update, but I can't test it myself.

PID for the Nozzle should be disabled, because it should use MPC, because it should be more accurate.

On ABL when the Nozzle gets hotter, it could let the nozzle to leak some filament. If you only do ABL without printing, then you wouldn't need a heated nozzle, but if you do a ABL before printing, the time to start the print should be reduced.

I will look at the config for MPC

In my memory, the led displays the heating procedure. It should start white or green and if it is red all components should be hot.

@Dave811
Copy link
Owner

Dave811 commented Nov 26, 2023

Did you reset the flash after you flashed it?

@systemerror-codenotfound
Copy link
Author

Did you reset the flash after you flashed it?

HI,

Yes, i made a M502 + M500 right after flashing

@systemerror-codenotfound
Copy link
Author

For the TFT i used 01-MKS_TFT28_NEW_GENIUS.27.x.bin but with the 3 options it booted
03-MKS_TFT28_V4.0.27.x.bin and also with 02-MKS_TFT28_V3.0.27.x.bin

@Dave811
Copy link
Owner

Dave811 commented Nov 26, 2023

With that I am not as experienced...
I assumed that only one firmware works. Do you have the problems with both versions of the firmware, or did you only test it with the other one.

The MPC should work on both not, if you can't get it to work even with the console.
In this github repo is the Marlin configuration file. If you have experience with it, you can have a look if I made a mistake.
I will have only time at the evening :/

@Dave811
Copy link
Owner

Dave811 commented Nov 26, 2023

Do you know how to build the firmware?
Because #define MPC_AUTOTUNE this line is commented out. So if you would clone my Marlin version from my github repo https://github.com/Dave811/Marlin-Artillery and checkout SW2
you then only need to change these settings in Marlin/Configuration.h:

  • #define X_BED_SIZE 220
  • #define Y_BED_SIZE 220
  • #define Z_MAX_POS 250
  • #define X_MIN_POS 0
  • #define Y_MIN_POS 0
  • #define CUSTOM_MACHINE_NAME "Genius Pro"
  • and remove the comment from this line #define MPC_AUTOTUNE

@systemerror-codenotfound
Copy link
Author

Hi

So i think it's done

I actually added 2 more lines that looked nice to have?

#define MPC_EDIT_MENU // Add MPC editing to the "Advanced Settings" menu. (~1300 bytes of flash)
#define MPC_AUTOTUNE_MENU // Add MPC auto-tuning to the "Advanced Settings" menu. (~350 bytes of flash)

But i guess it won't appear on the genius screen?
firmware.zip

I didn't flashed it yet

@ffpp2003
Copy link

I did what @Dave811 said, on my own cloned repo, and after flashing, mpc autotune started working. This issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants