synthread / Klippventurer

Klipper for FlashForge printers.
GNU Affero General Public License v3.0
39 stars 4 forks source link

Support for Adventurer 5m/ 5m Pro. #21

Open mBlinkii opened 8 months ago

mBlinkii commented 8 months ago

Hello, will there also be a manual for the Adventurer 5m/ 5m Pro. can you get any help with this? I have a 5m and can help/ test.

The-Synthax commented 8 months ago

Hey there!

We do plan on supporting the 5M (and Pro) eventually, but the current focus is full feature support for the Adventurer 3. Due to the similarity between these machines and the other Adventurers, once the 3 is fully supported, supporting the others won't take nearly as long.

As for how you can help, watch this repo and/or join our Discord for when we start testing on 5M. I won't be able to afford one for a while to port the project to, but the machine does run a custom fork of Klipper from the factory as far as I know, and there is another project working on bringing fully open firmware to the 5M/Pro here https://github.com/xblax/flashforge_adm5_klipper_mod

mBlinkii commented 8 months ago

Yes, I already knew about the mod, but the AD5M hardware is too weak for more functions. That's why I wanted to connect an RPI to the hardware.

I think I will follow these instructions and give it a try. https://github.com/g992/flashforge-ad5m-5mpro-research/blob/main/upgrades/klipper_on_ext_cpu.md

The-Synthax commented 8 months ago

Yes, I already knew about the mod, but the AD5M hardware is too weak for more functions. That's why I wanted to connect an RPI to the hardware.

I think I will follow these instructions and give it a try. https://github.com/g992/flashforge-ad5m-5mpro-research/blob/main/upgrades/klipper_on_ext_cpu.md

These instructions are incredibly similar to the method currently published here for the 3, so should work okay enough on the 5M. The only issue with this method is that you lose the any functions that rely on the CPU, which on the 3 includes the screen, camera, USB, filament runout sensor, and speaker/buzzer. Since the CPU is incredibly similar to the 4, our easy installer for the 4 will work on the 5m with almost no modification.

I had theorized that the CPU and RAM onboard the 5 couldn't handle much more than basic functionality, but didn't have any solid evidence of that. What limitations are you running into with the onboard Klipper?

mBlinkii commented 8 months ago

Currently it is still a very early version, KlipperScreen does not work reliably, the camera does not always work.

For example Obico or Mobileraker. I think that will be too much for the hardware.

The-Synthax commented 8 months ago

Seeing as it only has 128MB of RAM, I'm really surprised it can handle both Klippy and KlipperScreen at the same time. We're working on a firmware for Adventurer 3 that acts as a server to forward all the necessary interfaces to a Raspberry Pi or other Klippy host computer. Both ARM and MIPS builds of it will release simultaneously, so Adventurer 5M should be able to run it as well as the 3 and 4. It won't have support initially for driving the screen from the Pi, but is planned.

mBlinkii commented 8 months ago

Seeing as it only has 128MB of RAM, I'm really surprised it can handle both Klippy and KlipperScreen at the same time. We're working on a firmware for Adventurer 3 that acts as a server to forward all the necessary interfaces to a Raspberry Pi or other Klippy host computer. Both ARM and MIPS builds of it will release simultaneously, so Adventurer 5M should be able to run it as well as the 3 and 4. It won't have support initially for driving the screen from the Pi, but is planned.

That sounds very good, the internal display does not necessarily have to work. i would probably connect a display to the pi and use it.

The-Synthax commented 8 months ago

That sounds very good, the internal display does not necessarily have to work. i would probably connect a display to the pi and use it.

With the right adapter you could even drive the original display directly from a Pi. Figuring out how to make it work might be more effort than it's worth though. At the very least the 5M should have the horsepower to act as a network display for the RPi and will likely have no problem streaming the camera feed too.

I'd like to get it in public hands ASAP, but we're putting a lot of effort into the installer's reliability, reversibility, and general safety net to try to improve the chances that if something does go wrong, you don't need to be a Linux guru or IT professional to fix the printer's OS, it'll just give you an error and fail gracefully back to stock firmware. We also have one major bug right now plaguing the actual printing part of it, but that one shouldn't be too hard to resolve. Aiming for initial release this week or next for Adventurer 3 at least, but we'll try to have at least partial support for 4 and 5M as well to let people start experimenting.

mBlinkii commented 8 months ago

I'm really looking forward to it, I've been waiting with the hardware mod. I will be using a larger display as I find it too small for Klipper Screen. The UI is too small to use it properly. I think for such a small display you would have to develop a custom UI.

I am ready to test it on the 5M. I don't have any problems with it if something goes wrong. I will know how to help myself.

xblax commented 8 months ago

I'd like to get it in public hands ASAP, but we're putting a lot of effort into the installer's reliability, reversibility, and general safety net to try to improve the chances that if something does go wrong, you don't need to be a Linux guru or IT professional to fix the printer's OS, it'll just give you an error and fail gracefully back to stock firmware.

You may want to have look at the install script that I wrote for the other mod mentioned here, in case you also use a chroot based approach: https://github.com/xblax/flashforge_adm5_klipper_mod/blob/master/device_files/install/flashforge_init.sh https://github.com/xblax/flashforge_adm5_klipper_mod/blob/master/build_overlay/common/etc/init/S00klipper_mod

It is pretty fail-safe. Only the mod files / chroot are copied to printer and then a single init script is installed into the "host" linux system.

In general you might find some of the reverse engineered things, like the functions of the load cell tare mechanism or MCU boot code helpful if you plan to add support for the 5M to your mod.