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

Accelerometer data interpretation

Scheduled Pinned Locked Moved
Using Duet Controllers
5
21
1.8k
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.
  • undefined
    dc42 administrators @SilviuZ
    last edited by 5 Aug 2021, 20:17

    @silviuz you can also choose EI3 input shaping centred on a frequency between the X and Y ringing frequencies, which should be fairly effective at suppressing both.

    Duet WiFi hardware designer and firmware engineer
    Please do not ask me for Duet support via PM or email, use the forum
    http://www.escher3d.com, https://miscsolutions.wordpress.com

    undefined 1 Reply Last reply 5 Aug 2021, 21:03 Reply Quote 1
    • undefined
      SilviuZ @dc42
      last edited by 5 Aug 2021, 21:03

      @dc42 Thank you for your reply.
      I've tried 41HZ without a significant success.
      After a couple of ringhing towers I found that indeed "ei3" it's doing the best cancellation at 28HZ.
      I hope that in the future if it's possible..... to have implemented a automatic axis tuning similar like the Teknic Clearpath.
      Thank you again for your help.

      1 Reply Last reply Reply Quote 0
      • undefined
        MikeS @dc42
        last edited by MikeS 8 Jul 2021, 10:08 7 Aug 2021, 09:37

        @dc42 Sorry for the delay. I figured out that despite the chip is marked differently than the image on the datasheet, the axed are oriented in the same way. To test it i did statical reading while holding the accelerometers in different position and checking if the expected axes reported nearly 1g.

        Now that i have figured that out, here's the results of the previous macros before and after FFT:

        X AXIS:
        503a2433-59fa-40aa-9bab-19ef509606c9-immagine.png
        3ce2cb30-2bc9-470a-8c5d-1e989639b073-immagine.png

        Y AXIS:
        e410c6af-bdce-4ddf-9df4-f161079364b6-immagine.png
        08212721-771a-4e0e-8fa3-03192068eb88-immagine.png

        Edit:
        There's seems to be something wrong when selecting axes to be acquired with M956.
        If i don't specify axes, i get all the readings (but i don't know if they are in the correct order).
        If i specify X then i get readings
        I i specify Y i get all 0 values
        I i specify XY i get same values for X as only X and all 0 values for Y
        I i specify XYZ i get same results as nothing specified.

        Here's some graph:

        ONLY X
        e0bb1f59-4f98-4bf3-9be1-e74f6cfd7b5e-immagine.png

        ONLY Y
        751a986b-630f-4301-b460-fcfade4bc627-immagine.png

        X AND Y
        41ef22af-17ad-442a-946a-7a1fd5dc4bfe-immagine.png

        Code (changed axes just after M956)

        M593 P"none"
        G1 Y-50 G4 S2 G4 P10 G1 Y100 F20000 M400 M956 X P0 S1000 A0 F"test.csv"
        
        undefined 1 Reply Last reply 7 Aug 2021, 10:33 Reply Quote 0
        • undefined
          dc42 administrators @MikeS
          last edited by dc42 8 Jul 2021, 10:38 7 Aug 2021, 10:33

          @mikes said in Accelerometer data interpretation:

          There's seems to be something wrong when selecting axes to be acquired with M956.
          If i don't specify axes, i get all the readings (but i don't know if they are in the correct order).
          If i specify X then i get readings
          I i specify Y i get all 0 values
          I i specify XY i get same values for X as only X and all 0 values for Y
          I i specify XYZ i get same results as nothing specified.

          Thanks, I'll check it. It could be that incorrect values are stored in the .csv files, or the plugin is interpreting them the wrong way. Can you open the .csv files in the System tab of DWC and see if the data and column headings look OK?

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          undefined 1 Reply Last reply 7 Aug 2021, 11:25 Reply Quote 0
          • undefined
            MikeS @dc42
            last edited by 7 Aug 2021, 11:25

            @dc42 csv is displayed correctly as csv contains 0 for each row in Y axis.
            bc2ea66a-e0d4-4e8f-b3fc-9ec3411ee4d0-immagine.png

            undefined 2 Replies Last reply 7 Aug 2021, 12:04 Reply Quote 0
            • undefined
              dc42 administrators @MikeS
              last edited by 7 Aug 2021, 12:04

              @mikes thanks, the problem is in RRF then.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 0
              • undefined
                dc42 administrators @MikeS
                last edited by dc42 8 Aug 2021, 13:59 8 Aug 2021, 13:58

                @mikes this issue is now fixed in the source code. The fix will be included in the next beta.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                undefined 2 Replies Last reply 8 Aug 2021, 15:17 Reply Quote 0
                • undefined
                  MikeS @dc42
                  last edited by 8 Aug 2021, 15:17

                  @dc42 thank you David. Any chance to get a compiled binaries for Duet2wifi to test it out? Still have to test input shaping because i was not sure if the data was reliable... i saw resonance on Z axis for example while testing X or Y axis.

                  undefined 1 Reply Last reply 17 Aug 2021, 19:39 Reply Quote 0
                  • undefined
                    MikeS @dc42
                    last edited by MikeS 17 Aug 2021, 16:32

                    @dc42 just had 2 hours to play with a VM and managed to compile the source.

                    On the current source i can read correct data from X and Y axes (both together or alone) but Z axis is always reading -1.9995 as value. Also X Values is near -2 and it seems not correct to me. Shouldn't X and Y be near 0 and Z to -1 with a reading without moves?

                    6238a84b-026b-4077-9636-1b1c81dff014-immagine.png

                    UPDATE:
                    So i've looked at the changes you made in the latest version and came up with this fix:
                    054a956d-164e-4f8c-8aec-d3680ced6da9-immagine.png

                    I am not a programmer, but i've tested it and it seems that it has fixed it. Can you confirm?Maybe it's only another error that fixes my particular issue 😅

                    Nevermind all! I've looked more at C++ language and understood that in the for loop ++i has the same behaviour of i++ so that was not the fix. However now it seems to be working fine. I'll do more tests but it seems that there was something wrong with the accelerometers itself, returning wrong data...

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      dc42 administrators @MikeS
                      last edited by 17 Aug 2021, 19:39

                      @mikes said in Accelerometer data interpretation:

                      @dc42 thank you David. Any chance to get a compiled binaries for Duet2wifi to test it out? Still have to test input shaping because i was not sure if the data was reliable... i saw resonance on Z axis for example while testing X or Y axis.

                      The workaround is to always select all axes, which is the default.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

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