Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Accelerometer Usage

    Beta Firmware
    25
    191
    6810
    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.
    • Phaedrux
      Phaedrux Moderator @tekstyle last edited by

      @tekstyle See here: https://duet3d.dozuki.com/Wiki/Accelerometers

      Having the accelerometer is just the first step. You will need to do some test movements to get readings and then analyze them to determine which frequencies are needed to use with the input shaper.

      Z-Bot CoreXY Build | Thingiverse Profile

      oliof tekstyle 2 Replies Last reply Reply Quote 0
      • jbergene
        jbergene @tekstyle last edited by jbergene

        @tekstyle thats smart! i will try that 😄

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

          @phaedrux the documentation currently lacks the two crucial sentences, how to find out the dominant frequency of an axis ... but the InputShaping plugin will solve this eventually (-:

          <>Creality CR-20 IDEX Duet3 mini 5+<>RatRig V-Minion SKR RRF 1.1<>

          CCS86 1 Reply Last reply Reply Quote 1
          • jbergene
            jbergene @dc42 last edited by jbergene

            @dc42 IMG_20210817_190011.jpg

            8937
            c3H
            0KK1F?

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

              @oliof said in Accelerometer Usage:

              @phaedrux the documentation currently lacks the two crucial sentences, how to find out the dominant frequency of an axis ... but the InputShaping plugin will solve this eventually (-:

              This feature is barely in beta form. You can't really expect comprehensive documentation at this point.

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

                I am not expecting comprehensive documentation at this point. As I wrote I am looking forward to the eventual solution via the InputShaping plugin.

                <>Creality CR-20 IDEX Duet3 mini 5+<>RatRig V-Minion SKR RRF 1.1<>

                1 Reply Last reply Reply Quote 0
                • tekstyle
                  tekstyle @Phaedrux last edited by

                  @phaedrux i have the accelerometer plugin. i was able to visual the graph for all 3 axis. i just dont know what to look for as the link provided isnt clear on how to interpret the data to figure out which hz to use. or i am just not understanding the content.

                  Phaedrux 1 Reply Last reply Reply Quote 0
                  • Phaedrux
                    Phaedrux Moderator @tekstyle last edited by Phaedrux

                    @tekstyle No you're right. That part is coming and hopefully will be more automated by the plugin to suggest what it should tune out, among other things.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    tekstyle 1 Reply Last reply Reply Quote 0
                    • tekstyle
                      tekstyle @Phaedrux last edited by

                      @phaedrux oh ok. i'll wait for that in the meantime. Thank you.

                      1 Reply Last reply Reply Quote 0
                      • o_lampe
                        o_lampe @jbergene last edited by

                        @jbergene
                        mine says "DSH" clearly, not sure what a DH should show? Anyone?

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

                          18.8.2021, 07:37:18 M955 P0
                          Accelerometer 0 type LIS3DH with orientation 20 samples at 1344Hz with 10-bit resolution, SPI frequency 2000000

                          PXL_20210818_054059932~2.jpg

                          <>Creality CR-20 IDEX Duet3 mini 5+<>RatRig V-Minion SKR RRF 1.1<>

                          1 Reply Last reply Reply Quote 0
                          • jbergene
                            jbergene @o_lampe last edited by

                            @o_lampe Yeah 😕 maybe ill just try the DSH that arrived yesterday. that one says
                            2304 - DSH - YP3HC"

                            Do you know the orientation of the purple LISD3DSH board? X Y Z
                            I cant find that information anywhere2021-08-18 07_42_02-FNY2jF2qeWGBwKnk.huge (675×1200).png

                            o_lampe 1 Reply Last reply Reply Quote 0
                            • o_lampe
                              o_lampe @jbergene last edited by o_lampe

                              @jbergene
                              lis3dsh_pinout.jpg

                              According to this picture

                              • positive X goes to the right
                              • positive Y goes to the back
                              • positive Z goes up

                              lis3dsh_XY.jpg

                              jbergene 1 Reply Last reply Reply Quote 3
                              • jbergene
                                jbergene @o_lampe last edited by

                                @o_lampe thank you:)

                                1 Reply Last reply Reply Quote 0
                                • tekkydave
                                  tekkydave @gloomyandy last edited by tekkydave

                                  @gloomyandy I bought one from that seller. The board seems to indicate a LIS3DSH but the chip has 3CH on it which is a LIS3DH. Have you connected it up & what does the Duet report?

                                  I bought two boards from different sellers. One should be a LIS3DH and the other a LIS3DSH. They look identical to me and both have 3CH on the chip.
                                  The only difference is one has OED26 after the 3CH and the other OED27.
                                  I have only connected the OED26 to the Duet so far.

                                  2021-08-19 14.21.37.jpg

                                  They both look like this on the back:

                                  2021-08-21 16.32.15.jpg

                                  I'm assuming that the Duet will report the correct chip.

                                  Edit: I have soldered a connector to the other one (OED27) and tested it with the Duet. Also get same message as the other one

                                  Accelerometer 0 type LIS3DH with orientation 14 samples at 1344Hz with 10-bit resolution, SPI frequency 2000000
                                  

                                  Hmmmpphhh!

                                  Edit:
                                  Further tests connecting the device to an Arduino confirm it is a LIS3DH as it returns device id = 51 (0x33). So despite it being advertised as a LIS3DSH and the pcb indicating that it is - well it isn't. So be careful when buying these folks and check the code on the chip:
                                  3CH = LIS3DH
                                  DSH = LIS3DSH

                                  I have ordered another one from the link given by @dc42 above. Let's see what turns up 🙂

                                  ~ tekkydave ~
                                  D-Bot: 300x300mm | Duet WiFi + Duex2 | 3 independent z motors | X,Y & Z linear rails | E3D Titan Aero + V6 | Precision Piezo z-probe
                                  FreeCAD, PrusaSlicer

                                  gloomyandy Blacksheep99 2 Replies Last reply Reply Quote 0
                                  • gloomyandy
                                    gloomyandy @tekkydave last edited by

                                    @tekkydave Mine is marked C3H OED27. Not had chance to try it yet.

                                    tekkydave 1 Reply Last reply Reply Quote 0
                                    • tekkydave
                                      tekkydave @gloomyandy last edited by

                                      @gloomyandy It is a LIS3DH then. I have just run some tests connecting one up to an Arduino. I can only get it to communicate using an LIS3DH library.

                                      ~ tekkydave ~
                                      D-Bot: 300x300mm | Duet WiFi + Duex2 | 3 independent z motors | X,Y & Z linear rails | E3D Titan Aero + V6 | Precision Piezo z-probe
                                      FreeCAD, PrusaSlicer

                                      gloomyandy 1 Reply Last reply Reply Quote 0
                                      • gloomyandy
                                        gloomyandy @tekkydave last edited by

                                        @tekkydave Have just tested mine and RRF 3.4 seems to think it is a LIS3DH, which is a pain as I really wanted a LIS3DSH to test with (I look after the RRF STM32/LPC port). Oh well looks like I need to try and order from a different supplier.#

                                        tekkydave 1 Reply Last reply Reply Quote 0
                                        • tekkydave
                                          tekkydave @gloomyandy last edited by

                                          @gloomyandy 😞

                                          ~ tekkydave ~
                                          D-Bot: 300x300mm | Duet WiFi + Duex2 | 3 independent z motors | X,Y & Z linear rails | E3D Titan Aero + V6 | Precision Piezo z-probe
                                          FreeCAD, PrusaSlicer

                                          1 Reply Last reply Reply Quote 0
                                          • Blacksheep99
                                            Blacksheep99 @tekkydave last edited by Blacksheep99

                                            @tekkydave said in Accelerometer Usage:

                                            @gloomyandy I bought one from that seller. The board seems to indicate a LIS3DSH but the chip has 3CH on it which is a LIS3DH. Have you connected it up & what does the Duet report?

                                            I bought two boards from different sellers. One should be a LIS3DH and the other a LIS3DSH. They look identical to me and both have 3CH on the chip.
                                            The only difference is one has OED26 after the 3CH and the other OED27.
                                            I have only connected the OED26 to the Duet so far.

                                            2021-08-19 14.21.37.jpg

                                            They both look like this on the back:

                                            2021-08-21 16.32.15.jpg

                                            I'm assuming that the Duet will report the correct chip.

                                            Edit: I have soldered a connector to the other one (OED27) and tested it with the Duet. Also get same message as the other one

                                            Accelerometer 0 type LIS3DH with orientation 14 samples at 1344Hz with 10-bit resolution, SPI frequency 2000000
                                            

                                            Hmmmpphhh!

                                            Edit:
                                            Further tests connecting the device to an Arduino confirm it is a LIS3DH as it returns device id = 51 (0x33). So despite it being advertised as a LIS3DSH and the pcb indicating that it is - well it isn't. So be careful when buying these folks and check the code on the chip:
                                            3CH = LIS3DH
                                            DSH = LIS3DSH

                                            I have ordered another one from the link given by @dc42 above. Let's see what turns up 🙂

                                            I ordered one from the seller DC42 linked to and this is what I received.

                                            IMG_9375.jpg

                                            tekkydave 1 Reply Last reply Reply Quote 0
                                            • tekkydave
                                              tekkydave @Blacksheep99 last edited by

                                              @blacksheep99 should be a LIS3DSH from the chip id of DSH.

                                              ~ tekkydave ~
                                              D-Bot: 300x300mm | Duet WiFi + Duex2 | 3 independent z motors | X,Y & Z linear rails | E3D Titan Aero + V6 | Precision Piezo z-probe
                                              FreeCAD, PrusaSlicer

                                              1 Reply Last reply Reply Quote 1
                                              • tecno
                                                tecno last edited by

                                                Got my 2 today from UK and they show up as:

                                                M955 P0 C"io3.out+io3.in"
                                                Accelerometer 0:0 type LIS3DSH with orientation 20 samples at 1600Hz with 16-bit resolution, SPI frequency 2000000

                                                So what do I need to do next to get started? I have one for X and Z and the other for Y only.

                                                1 Reply Last reply Reply Quote 0
                                                • jay_s_uk
                                                  jay_s_uk last edited by

                                                  @tecno if you have a bedslinger, then yes.
                                                  and then use the input shaper plugin to record the results

                                                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                                  tecno 1 Reply Last reply Reply Quote 0
                                                  • tecno
                                                    tecno @jay_s_uk last edited by

                                                    @jay_s_uk

                                                    Yes its my good old Chiron 😉

                                                    Will try to see what I get here.

                                                    tecno 1 Reply Last reply Reply Quote 0
                                                    • tecno
                                                      tecno @tecno last edited by

                                                      Re ORIENTATION

                                                      DSC_0782.JPG

                                                      As i see this is orientation I20, right?

                                                      If I flip the board so VCC will be to the right upside down is the orientation then I60 ?

                                                      How do handle this in config.g ? 2 lines ?

                                                      M955 P0 I20 C"io3.out+io3.in" ;active
                                                      ;M955 P0 I60 C"io3.out+io3.in" ; not active

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