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

    Accelerometer Usage

    Scheduled Pinned Locked Moved
    Beta Firmware
    25
    191
    19.9k
    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.
    • dc42undefined
      dc42 administrators @A Former User
      last edited by

      @94v0 I updated the accelerometer wiki page recently with details of the cables I used, which are 1m long and work with the Duet 3 Mini. I think the secret is to keep the CS wire away from the other signal wires.

      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
      • CCS86undefined
        CCS86 @dc42
        last edited by

        @dc42 said in Accelerometer Usage:

        @ccs86 said in Accelerometer Usage:

        Is there a reason that we can't set a specific sampling rate with the "S" parameter, as documented?

        The accelerometer chip only supports a few specific sampling rates. You can specify the S parameter and the firmware will pick the nearest available one. Send M955 P# where #is the accelerometer ID to find which one has been selected.

        It looks like the sensor does jump from:

        HR / normal (1.344 kHz);

        to

        Low-power mode (5.376 kHz)

        Have you tried that highest rate? I can't get RRF to go above the 1344 Hz

        dc42undefined 1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators @CCS86
          last edited by

          @ccs86 I haven't tried the higher sampling rate. My guess is that you won't be able to use that rate except for very short sampling times, without getting overrun errors. The resolution at that speed is only 8-bit, which may not be sufficient. The LIS3DSH does 1600Hz @ 16 bit resolution.

          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

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

            @dc42 said in Accelerometer Usage:

            @ccs86 I haven't tried the higher sampling rate. My guess is that you won't be able to use that rate except for very short sampling times, without getting overrun errors. The resolution at that speed is only 8-bit, which may not be sufficient. The LIS3DSH does 1600Hz @ 16 bit resolution.

            Cool. I actually was able to get some logs at 8-bit 5376 Hz. I'm not sure the loss in resolution is worth the increased sampling rate, with these low magnitude vibrations.

            Are we any closer to testing input shaper on Maestro hardware?

            1 Reply Last reply Reply Quote 0
            • A Former User?
              A Former User
              last edited by

              I'm a bit curious if these "LIS3DSH" boards being sold on aliexpress, ebay, adafruit and others are actually using a LIS3DSH. The chip is no longer manufactured, there's only a small number of them in stock on digikey and practically nowhere else and for much greater cost than the breakout boards are.

              dc42undefined o_lampeundefined 2 Replies Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators @A Former User
                last edited by

                @94v0 said in Accelerometer Usage:

                I'm a bit curious if these "LIS3DSH" boards being sold on aliexpress, ebay, adafruit and others are actually using a LIS3DSH. The chip is no longer manufactured, there's only a small number of them in stock on digikey and practically nowhere else and for much greater cost than the breakout boards are.

                The one I purchased definitely has a LIS3DSH on it.

                According to the ST web site, the chip is still being manufactured but only in response to volume orders. Worldway claims to have 10000 of them.

                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
                • Sotidiiundefined
                  Sotidii
                  last edited by

                  Duet 3 Mini 5+ (Mini5plus)
                  Sammy-C21

                  G1 X-50 G4 S2 M956 P124.0 S1000 A0 G4 P10 G1 X50 F3600

                  Error: M956: Accelerometer is already collecting data ((

                  1 Reply Last reply Reply Quote 0
                  • o_lampeundefined
                    o_lampe @A Former User
                    last edited by o_lampe

                    @94v0 said in Accelerometer Usage:

                    I'm a bit curious if these "LIS3DSH" boards being sold on aliexpress, ebay, adafruit and others are actually using a LIS3DSH. The chip is no longer manufactured, there's only a small number of them in stock on digikey and practically nowhere else and for much greater cost than the breakout boards are.

                    I ordered the last LIS3DSH board listed on ebay.de, will report what the label says when it arrives. In China you can still get them for less than 2$ each...

                    With all the wiring issues mentioned here and there, I want to point out (again) that there's a Blutooth version of the LIS3DH board....maybe an option for SBC users?

                    dc42undefined 1 Reply Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators @o_lampe
                      last edited by

                      There are still some LID3dSH board available in UK, e.g. https://www.ebay.co.uk/itm/272706183865.

                      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

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

                        I bought one from this listing: https://www.ebay.co.uk/itm/313603433596 came within a few days and seems to be a LID3dSH.

                        tekkydaveundefined 1 Reply Last reply Reply Quote 0
                        • jbergeneundefined
                          jbergene
                          last edited by jbergene

                          Hello
                          I have connected the Adafruit LIS3DH exactly as mentioned on the Accelerometer page, to my duet 2.

                          I Get "M955 P0 C"spi.cs4+spi.cs3"
                          Error: M955: Accelerometer not found on specified port"

                          I have tried switching MISO and MOSI, and Cs3 and cs4 ports to just check against myself.

                          I have also quadruple checked the wiring and its exactly the same. Wire length is 500mm. (bl touch extension wires)

                          However many images I see on this post is people have wired the VIN instead of 3v?

                          Web control, firwmare etc are all the latest beta 3.4.

                          2021-08-15 12_37_10-MessageCenterUI.png

                          DIY-O-Sphereundefined jbergeneundefined 2 Replies Last reply Reply Quote 0
                          • DIY-O-Sphereundefined
                            DIY-O-Sphere @jbergene
                            last edited by DIY-O-Sphere

                            @jbergene said in Accelerometer Usage:

                            M955 P0 C"spi.cs3+spi.cs4

                            I had a LIS3DH working with 3,3V
                            It seams that you have swaped in and out....
                            I also had that wrong with my first attempt....

                            M955 P0 C"spi.cs4+spi.cs3
                            

                            (UTC+1)

                            jbergeneundefined 1 Reply Last reply Reply Quote 0
                            • jbergeneundefined
                              jbergene @DIY-O-Sphere
                              last edited by

                              @diy-o-sphere ah sorry my bad, i have tried swapping this too without success. Just forgot to edit the text. my bad

                              DIY-O-Sphereundefined 1 Reply Last reply Reply Quote 0
                              • DIY-O-Sphereundefined
                                DIY-O-Sphere @jbergene
                                last edited by

                                @jbergene
                                My wiring is in this thread...just for double check...
                                https://forum.duet3d.com/topic/23559/accelerometer-usage/15

                                (UTC+1)

                                jbergeneundefined 1 Reply Last reply Reply Quote 0
                                • jbergeneundefined
                                  jbergene @DIY-O-Sphere
                                  last edited by jbergene

                                  @diy-o-sphere switched the wiring from the daughterboard pinouts to the Paneldue pinout with same results.

                                  DIY-O-Sphereundefined 1 Reply Last reply Reply Quote 0
                                  • DIY-O-Sphereundefined
                                    DIY-O-Sphere @jbergene
                                    last edited by

                                    @jbergene

                                    M955 P0 I61 C"io0.out+io0.in"               ; Define IO for accelerometer
                                    

                                    (UTC+1)

                                    jbergeneundefined 1 Reply Last reply Reply Quote 0
                                    • jbergeneundefined
                                      jbergene @DIY-O-Sphere
                                      last edited by

                                      @diy-o-sphere M955 P0 I61 C"io0.out+io0.in"
                                      Error: M955: Unknown pin name 'io0.out'

                                      DIY-O-Sphereundefined 1 Reply Last reply Reply Quote 0
                                      • DIY-O-Sphereundefined
                                        DIY-O-Sphere @jbergene
                                        last edited by

                                        @jbergene
                                        Sorry, thats for a Mini5+

                                        (UTC+1)

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

                                          @jbergene
                                          update

                                          it worked when removing the Paneldue and disabling paneldue in the config file.
                                          (still using Daughter board pins)

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

                                            @jbergene Now I get another issue and that is the Duet2 just reset every time I try to record. It some how manages to record something, but the CSV file is invalid.

                                            Duet also states that the LISD3H is aLIS3DSH which is incorrect. (the board have LIS3DH typed in on it)

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