Jump to content

Klipper in a duet2 wifi


Maurici

Recommended Posts

On 4/28/2023 at 6:48 PM, linuxguygary said:

Just to be clear,   Is there no method to connect the Paneldue using the connection s on the Duet board?   So the only way is connected to the R-pi  via GPIO  or Serial TTY adapter as Nero3D shows his video?

This is, so far..  correct!

Link to comment
Share on other sites

  • 2 weeks later...

Hi everyone,

just came across this topic, i just want to share my experience with a Duet3 mini that was collecting dust for ages, i successfully and easily flashed the board with Klipper and even connected it to my stealthburner running CanBus, it's delicious!! Working like a charme.

Attached is the compiled firmware (canbus) which works as normal as well if you want to connect the toolhead in a standard way.

Just run "  ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0 " rather than  "ls -l /dev/serial/by-id/" to find the board ID.

You will need Bossa flash programmer to flash the board with a .bin file, for the life of me, i wasn't able to convert the .bin file in UF2 for the drag and drop as much as i tried.

Maybe someone more capable than me will.

PS. the Processor chosen for the Duet3 mini is not the recommended, i used the SAM54, which will give the CanBus option to be available.

Cheers.

DUET3 Mini Klipper Canbus.jpg

SAM_54.bin

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
  • 7 months later...
  • 2 weeks later...

Been beating my face against this for hours now, my pi cannot seem to see the Duet 2 board anymore.  I fallowed the instructions and at first it worked, but now:


Ellie@raspberrypi:~ $ ls /dev/serial/by-id/*
ls: cannot access '/dev/serial/by-id/*': No such file or directory

I can install firmware using BOSSA, so I went through steps to Make menuconfig and Make, grabbed the file and flashed it directly from my PC with BOSSA and I still have no luck.  I have tried a few images on the pi and I have tried two different pis.  I know the cable works because it connects from the PC to the Duet 2.  

Im open to suggestions.  

Turns out it was the freaking cable.... Idk how, it worked from the PC to the Duet, but not from the Pi to the Duet.  

Edited by TheJoe90
Link to comment
Share on other sites

5 hours ago, TheJoe90 said:

Turns out it was the freaking cable.... Idk how, it worked from the PC to the Duet, but not from the Pi to the Duet.  

I had a similar problem reprogramming the PanelDue to work with Klipper. The USB I have between the pi and Duet wouldn't let my PC see the PanelDue, but a different cable worked. 

What printer is this for out of curiosity? 

Link to comment
Share on other sites

1 hour ago, MrSprinklz said:

I had a similar problem reprogramming the PanelDue to work with Klipper. The USB I have between the pi and Duet wouldn't let my PC see the PanelDue, but a different cable worked. 

What printer is this for out of curiosity? 

 

That strange cable issue cost me HOURS. I knew it worked for data lol, so it had to be the pi or the duet right? Wrong. 

This is an old Folgertech FT-5 I bought used and modified. 

I have Klipper working now but I need to setup the printer config file. Trying to figure out the MCU Pinout is difficult, it seems like everything I find links to a site that is down now. Don't suppose you still have it?

I tried the two example configs but they were giving me issues, so far only the heated bed and extruder heaters are working. 

Finishing the config is this morning's project =]

 

Link to comment
Share on other sites

On 3/15/2024 at 11:16 AM, TheJoe90 said:

That strange cable issue cost me HOURS. I knew it worked for data lol, so it had to be the pi or the duet right? Wrong. 

This is an old Folgertech FT-5 I bought used and modified. 

I have Klipper working now but I need to setup the printer config file. Trying to figure out the MCU Pinout is difficult, it seems like everything I find links to a site that is down now. Don't suppose you still have it?

I tried the two example configs but they were giving me issues, so far only the heated bed and extruder heaters are working. 

Finishing the config is this morning's project =]

If you manage to get a good file made for the FT-5 I just happen to have acquired one about 2 weeks ago I am doing the same thing with. if your still has the standard xy motion system any you get  a  good config file going it would be helpful to me as mine happens to have a duet 2 and for the life of me after I got the z moving without binding I came to another Issue of insane over extrusion, and since I cant access the octopi setup that is on the pi it came with and whatever codes I enter into the console refuse to save and transfer into a print I decide it was getting a change to a firmware that i can just adjust the config files for directly without having to use g code or re-flash. 

Link to comment
Share on other sites

11 hours ago, DragonfireFX said:

If you manage to get a good file made for the FT-5 I just happen to have acquired one about 2 weeks ago I am doing the same thing with. if your still has the standard xy motion system any you get  a  good config file going it would be helpful to me as mine happens to have a duet 2 and for the life of me after I got the z moving without binding I came to another Issue of insane over extrusion, and since I cant access the octopi setup that is on the pi it came with and whatever codes I enter into the console refuse to save and transfer into a print I decide it was getting a change to a firmware that i can just adjust the config files for directly without having to use g code or re-flash. 

# This file is an example config file for cartesian style printers.# One may c - Pastebin.com

My macros are still a work in progress, but I hope this saves you some time!  I dont really know what I am doing, so that config is MESSY.  

Got the Paneldue, bltouch, adaptive mesh, and improved cooling working.  Setting this machine up for a less technical friend, so Im trying to make it as user friendly as possible =]

Waiting on the Pi Cam, need to reverse the cooling and the BLtouch or make a spacer for the X endstop, and for now I am powering the PI off the hookup that is intended for the PanelDue, but that is causing the PI to complain about low voltage.  Just a few things left to finetune.  

Link to comment
Share on other sites

On 3/15/2024 at 12:16 PM, TheJoe90 said:

This is an old Folgertech FT-5 I bought used and modified. 

Ah, I am working with a Modix Big-60 V4. Very different machine.

On 3/15/2024 at 12:16 PM, TheJoe90 said:

I have Klipper working now but I need to setup the printer config file. Trying to figure out the MCU Pinout is difficult, it seems like everything I find links to a site that is down now. Don't suppose you still have it?

I tried the two example configs but they were giving me issues, so far only the heated bed and extruder heaters are working. 

Finishing the config is this morning's project =]

I had to splice about 3 configs together along with some rewiring of endstops and such to get everything working on mine. A few months later I was trying to update the pi when my SD card got corrupted and I lost all of my work. I got new klipper config files from a group of Modix users on Facebook and it's back up and running. I just need to retune PA/EM/speeds

Link to comment
Share on other sites

On 3/18/2024 at 11:23 AM, MrSprinklz said:

Ah, I am working with a Modix Big-60 V4. Very different machine.

I had to splice about 3 configs together along with some rewiring of endstops and such to get everything working on mine. A few months later I was trying to update the pi when my SD card got corrupted and I lost all of my work. I got new klipper config files from a group of Modix users on Facebook and it's back up and running. I just need to retune PA/EM/speeds

I've been backing things up religiously now lol. 

 

How did you decide to power the pi off of the duet? I used some GPIO jumpers to go from the paneldue power to the GPIO pins on the pi but I'm getting low voltage warnings. 

Link to comment
Share on other sites

1 hour ago, TheJoe90 said:

I've been backing things up religiously now lol. 

I setup the klipper github backup macro to avoid this problem in the future.

1 hour ago, TheJoe90 said:

How did you decide to power the pi off of the duet? I used some GPIO jumpers to go from the paneldue power to the GPIO pins on the pi but I'm getting low voltage warnings. 

I'm not 😅 I have a pi wall plug supply for power. You could also get a small 5V PSU like the Meanwell RS-25-5 or the 5V Buck Converter off the Voron V0 BOM if you want to avoid the low voltage errors

Link to comment
Share on other sites

On 3/18/2024 at 11:23 AM, MrSprinklz said:

Ah, I am working with a Modix Big-60 V4. Very different machine.

I had to splice about 3 configs together along with some rewiring of endstops and such to get everything working on mine. A few months later I was trying to update the pi when my SD card got corrupted and I lost all of my work. I got new klipper config files from a group of Modix users on Facebook and it's back up and running. I just need to retune PA/EM/speeds

Honestly, I agree this is an absolutely crappy situation.   If I was to do this, I would definitely do an install, get it to a baseline running situation and make a baseline backup of the sd card on a different computer, then do the optimizations and if it’s good and gives the results you are wishing then make another backup.     That way you can get back up and running if your sd cards should corrupt within an hour vs trying to finger it all out from scratch again.       

Link to comment
Share on other sites

19 hours ago, Marty said:

Honestly, I agree this is an absolutely crappy situation.   If I was to do this, I would definitely do an install, get it to a baseline running situation and make a baseline backup of the sd card on a different computer, then do the optimizations and if it’s good and gives the results you are wishing then make another backup.     That way you can get back up and running if your sd cards should corrupt within an hour vs trying to finger it all out from scratch again.       

I learned my lesson, I now have a backup saved both to github and my local computer.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
On 3/18/2024 at 2:23 PM, MrSprinklz said:

Ah, I am working with a Modix Big-60 V4. Very different machine.

I had to splice about 3 configs together along with some rewiring of endstops and such to get everything working on mine. A few months later I was trying to update the pi when my SD card got corrupted and I lost all of my work. I got new klipper config files from a group of Modix users on Facebook and it's back up and running. I just need to retune PA/EM/speeds

@MrSprinklz How has the Modix V4 conversion gone? I assume no IDEX? We have the exact machine here at work and the duet has been causing nothing but problems for us in terms of wifi connection (mainly) and endstop issues. 

Regards, 

Edited by Fickert
  • Like 1
Link to comment
Share on other sites

6 hours ago, Fickert said:

How has the Modix V4 conversion gone? I assume no IDEX? We have the exact machine here at work and the duet has been causing nothing but problems for us in terms of wifi connection (mainly) and endstop issues. 

The conversion has been fine, no IDEX, and no endstop problems. I did have to change where some things were plugged in on the Duet boards, lost auto z-offset capability (at least for now, haven't looked into it really), and I had issues getting the paneldue to the correct firmware revision to work with klipper. My main issue is z-offset, but I think I just need to delete the current one and do PROBE_CALIBRATE over again. I had the same issue on my 2.4 and that fixed it. Otherwise, it runs pretty well. I use QGL for bed levelling like a reverse Voron 2.4, you could use bed tilt like a 4 screw trident.

Link to comment
Share on other sites

Anybody tried to flash klipper to the duet2 using new Raspbian 12? Or, still need to do it using raspbian 10?Anybody tried to flash klipper to the duet2 using new Raspbian 12? Or, still need to do it using raspbian 10?

 

Link to comment
Share on other sites

4 hours ago, apak said:

Anybody tried to flash klipper to the duet2 using new Raspbian 12? Or, still need to do it using raspbian 10?Anybody tried to flash klipper to the duet2 using new Raspbian 12? Or, still need to do it using raspbian 10?

On 3/4/2024 at 1:03 PM, MrSprinklz said:

Update for March 2024: This now works with Raspbian 12 (Bookworm), otherwise same procedure.

^^^^^ Raspbian 12 works just fine

 

Link to comment
Share on other sites

  • 3 months later...
On 2/15/2023 at 5:55 PM, Maurici said:

so. If you are like me, back in 2020 you were hearing stuff about klipper, and something called speedboat race... however was buggy and lacking features. So, you wanted to walk away from marlin, and the option was a duet with RRF.

You went all the lenghts to learn RRF, and you installed a brand new duet2 wifi with a 7 inch panel due, put your printer running and you have lived happily ever since.... Since you ran klipper in a dodgy 30 quid board with an obsolete raspberry just to try.

Then you discovered imput shaper with accelerometres, you discovered KAMP, you discovered an actual usefull pressure advance, intuitive macros, klipperscreen... the whole 7 yards.

But... you had like 200 quid in a posh board with multiple TMCs controllers, all the bells and 2660 drivers and so... therefore you stay commited to RRF. 

till you deciede that your main printer HAS to move to klipper.

And you find out that mainsail, and the latest raspian OS have a bug that won´t allow you to flash your board. After doing all ok in the right way and flashing it, the USB serial comms port will dissapear and will semibrick your board.

Well. Not anymore.

Step 1.

Take a fresh SD. Don´t use a previous raspian distro or whatever... format it.

Install Raspian LITE 10 BUSTER (legacy).

This is a very basic raspian install. Remember to habitlitate ssh in raspiimager.

Step 2.

Open putty (or whatever command line you use for linux).

Instal git.

for that you will need to update the system.

"""sudo apt update"""

Let run the updates.

"""sudo apt -get install git -y"""

Step3.

Then instal KIauh.

"""

cd ~

git clone https://github.com/th33xitus/kiauh.git

./kiauh/kiauh.sh

"""

Instal only 1 instance of Klipper with kiauh.

Install only 1 instance of moonraker with kiauh.

Save and exit.

This will leave you with a very basic and old version of raspian running klipper and moonraker.

Time to flash.

Step 4

Jump reset pins for 3 seconds. Press reset button (if available)

check connection with the board

ls /dev/serial/by-id/*

copy your serial.

"""cd klipper"""

"""Make menuconfig"""

Setup mainmenuconfig as follows.

https://miro.medium.com/max/700/1*B0B_bbL9J5m7Pd4AaEb3Rg.png

Exit and save.

""" make"""

"""sudo service klipper stop"""

"""make flash FLASH_DEVICE=/dev/serial/by-id/usb-03eb_6124-if0""" (replace here for your serial ID)

After this you should see the following.

#

******Erase flash

Done in 4.376 seconds
Write 25340 bytes to flash (50 pages)
[==============================] 100% (50/50 pages)
Done in 0.382 seconds
Verify 25340 bytes of flash
[==============================] 100% (50/50 pages)
Verify successful
Done in 0.382 seconds
Device reconnect on /dev/serial/by-path/platform-3f980000.usb-usb-0:1.2:1.0y
*****
#

"""Sudo service klipper start."""

Your Serial will have change so check it again and copy it.

step 5

go back to kiauh
"""./kiauh/kiauh.sh"""

Install mainsail.

Step 6.

Go to mainsail trough your webrowser and copy your serial in the printer.cfg file.

don´t modify printer CFfile yet other than including new MCU dev serial.

Check connection. Ideally all should work no... so, go to your machine settings and update/upgrade all your packages.

Start setting up your printer.cfg, the github page works well as starting point.

RESOURCES:

Flash step:  (after instaling the lite version of raspian and klipper and moonraker trough kiahu)

Kiahu tutorial. 

To reuse your panneldue, follow Nero´s tutorial.

Super glad my video helped. I am a3dp . I have images with the newer disteo working and also a workaround . Mainsailos has two issues one is it compiles bad samd images and some builds have the usb issue . If youbhave usb issue you wont see the board from the start . The worst part of the bad image is sometimes it defaults bed heater on while sitting bricked . Anyway if anyone needs help feel free to reach out . Advanced3dprinting.com

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

I am considering transitioning from RRF to Klipper as I am using a  Duet2 WiFi, which is slowly aging out. Since I have no notion about Klipper or "klipperizing" a controller, which would be the procedure to restore the original RRF functionality if I decide to go back to pure RRF for any reason? I know this is a trivial question, and that is why is was not addressed in this thread, but it would help me in making up my decision.

Thanks

 

Link to comment
Share on other sites

7 hours ago, Refused said:

I am considering transitioning from RRF to Klipper as I am using a  Duet2 WiFi, which is slowly aging out. Since I have no notion about Klipper or "klipperizing" a controller, which would be the procedure to restore the original RRF functionality if I decide to go back to pure RRF for any reason? I know this is a trivial question, and that is why is was not addressed in this thread, but it would help me in making up my decision.

Thanks

I suppose the easiest would be to keep the original SSD with RRF on it and flash a new SSD for use with Klipper.  Then erase the duet firmware and flash the duet board with Klipper. I found some instructions on the process here. There are also several programs to back up an existing SSD. If you then want to switch back to RRF, all you need to do is reflash the duet board with the firmware.

But, I do not know the duet boards, someone else may be more knowledgeable.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...