Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Using Input Shaping. Any suggestions or advice??

    Scheduled Pinned Locked Moved
    General Discussion
    3
    7
    587
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tfjieldundefined
      tfjield
      last edited by tfjield

      I'm starting to look at input shaping (for the first time!), and I could use some guidance...

      I've attached the accelerometer (LIS3DH from adafruit) to the Duet2 WiFi, and it appears to be working properly. I configured it with M955 P0 C"spi.cs4+spi.cs3" I01 and I mounted it to my hot end with a zip tie (and some tape to avoid shorting the back).

      PXL_20220625_060946316.jpg
      PXL_20220625_060952556.jpg

      I'm able to collect data using the Input Shaping Plugin, v4.3.1-b1:
      7a048a4d-a09e-4313-a779-c4981eabcaf7-image.png

      This is with XY maximum speeds set to 16000 mm/min and acceleration set to 3000 mm/sec^2.

      This is on a Modix Big-60, and the accelerometer is connected to the printhead, so there is no z-motion. But the big printhead bracket has a decent amount of movement around the y-axis, so I would expect to see some significant ringing along x, and I see see one peak around 27 Hz.

      Do these curves look right? (Why all the z-axis data? Is this just a byproduct of the FFT without any strong frequency components?)

      Turning on ZVDD at a 27 Hz center frequency (arbitrary choice, and the white checkmark next to the center frequency entry is fun!) gets me this:
      e4b5ad13-9736-4481-b496-a827b5c2b504-image.png

      So it seems like it's working, right? Any advise or suggestions? I haven't tried printing any ringing tests, yet.

      chickenwomanundefined 1 Reply Last reply Reply Quote 0
      • oliofundefined
        oliof
        last edited by

        I'd try to add strain relief to the wires as close to the board as possible. Also make sure that you've configured the right orientation of the sensor.

        On a CoreXY system, divergent graphs for X and Y are an indicator that the belts aren't equally tensioned. You could try loosening Y tension or increasing X tension a bit to see if it helps.

        <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

        oliofundefined 1 Reply Last reply Reply Quote 0
        • oliofundefined
          oliof @oliof
          last edited by

          oh also, use two zip ties to fasten the board, one is effectively a lever.

          <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

          tfjieldundefined 1 Reply Last reply Reply Quote 0
          • tfjieldundefined
            tfjield @oliof
            last edited by

            @oliof Thank you! Great idea about the wires; I didn't think of that. I'll add some strain relief to minimize any artifact they might be introducing.

            I don't think the x and y being different on this machine means much. In my first photos you can see 4 silver screw heads. Those are the only attachments to the y-axis rail, so that whole head can twist around the y-axis forward and backwards (so the hot end oscillates in the x-direction). There's a bit less play rotating around the x-axis.

            But the belts could be contributing. There is one y-axis belt and two x-axis belts, and I know the y tension is higher than the two x's.

            1 Reply Last reply Reply Quote 0
            • oliofundefined
              oliof
              last edited by

              Some variance in the vibration peaks don't matter much due to the damping factor of the IS algorithms. You should measure your second head too to make sure that two X belts have about the same tension as well.

              <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

              1 Reply Last reply Reply Quote 0
              • chickenwomanundefined
                chickenwoman @tfjield
                last edited by

                @tfjield this is off topic but what wire did you use on your Modix and what length? I have a Big 60 and have tried several different types of wire and cant get it to work.

                tfjieldundefined 1 Reply Last reply Reply Quote 0
                • tfjieldundefined
                  tfjield @chickenwoman
                  last edited by tfjield

                  @chickenwoman said in Using Input Shaping. Any suggestions or advice??:

                  @tfjield this is off topic but what wire did you use on your Modix and what length? I have a Big 60 and have tried several different types of wire and cant get it to work.

                  The first time I tried I used an old, unshielded network cable and it wouldn't recognize the accelerometer. Then I went with a USB cable.

                  I followed this guide:
                  https://forum.duet3d.com/topic/22878/software-package-3-3beta3-released/68?_=1624809172098

                  I purchased this USB cable from Amazon:
                  https://smile.amazon.com/dp/B014RWATK2

                  I left the cable at about 5 feet / 1.5 meters. There are two shields inside wrapped around two different pairs, and a shield around the whole thing. I attached all three shields together, and connected it to one of the ground points on the Duet boards. (I have the DueX5, so I used one of the grounds on one of the 5 endstop connectors.)

                  I use a PT100 daughterboard, and the daughterboard moves CS3 and CS4 from pins 7 and 9 to pins 3 and 1, respectively. So my CS connects to pin 1 and INT connects to pin 3.

                  EDIT: Here are some pics of my connection. I didn't have a dual inline plug that took crimp connections for the Duet side so I made one with the connectors that I had.

                  ee0ab1d7-ee9e-43a5-97dd-b0af4d850763-image.png
                  633244bf-8312-4683-bf66-d2669ced8806-image.png
                  7d83f86b-879a-4fdc-9c37-005c4229cd63-image.png

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA