• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    dc42 administrators @CCS86
    last edited by 11 Aug 2021, 14:42

    @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

    undefined 1 Reply Last reply 12 Aug 2021, 01:50 Reply Quote 0
    • undefined
      CCS86 @dc42
      last edited by 12 Aug 2021, 01:50

      @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
        last edited by 12 Aug 2021, 10:34

        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.

        undefined undefined 2 Replies Last reply 13 Aug 2021, 16:01 Reply Quote 0
        • undefined
          dc42 administrators @A Former User
          last edited by 13 Aug 2021, 16:01

          @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
          • undefined
            Sotidii
            last edited by 14 Aug 2021, 07:29

            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
            • undefined
              o_lampe @A Former User
              last edited by o_lampe 14 Aug 2021, 07:56

              @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?

              undefined 1 Reply Last reply 14 Aug 2021, 08:40 Reply Quote 0
              • undefined
                dc42 administrators @o_lampe
                last edited by 14 Aug 2021, 08:40

                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

                undefined 1 Reply Last reply 14 Aug 2021, 12:16 Reply Quote 0
                • undefined
                  gloomyandy @dc42
                  last edited by 14 Aug 2021, 12:16

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

                  undefined 1 Reply Last reply 22 Aug 2021, 08:20 Reply Quote 0
                  • undefined
                    jbergene
                    last edited by jbergene 15 Aug 2021, 10:51

                    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

                    undefined undefined 2 Replies Last reply 15 Aug 2021, 11:06 Reply Quote 0
                    • undefined
                      DIY-O-Sphere @jbergene
                      last edited by DIY-O-Sphere 15 Aug 2021, 11:06

                      @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)

                      undefined 1 Reply Last reply 15 Aug 2021, 11:07 Reply Quote 0
                      • undefined
                        jbergene @DIY-O-Sphere
                        last edited by 15 Aug 2021, 11:07

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

                        undefined 1 Reply Last reply 15 Aug 2021, 11:10 Reply Quote 0
                        • undefined
                          DIY-O-Sphere @jbergene
                          last edited by 15 Aug 2021, 11:10

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

                          (UTC+1)

                          undefined 1 Reply Last reply 15 Aug 2021, 11:21 Reply Quote 0
                          • undefined
                            jbergene @DIY-O-Sphere
                            last edited by jbergene 15 Aug 2021, 11:21

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

                            undefined 1 Reply Last reply 15 Aug 2021, 11:23 Reply Quote 0
                            • undefined
                              DIY-O-Sphere @jbergene
                              last edited by 15 Aug 2021, 11:23

                              @jbergene

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

                              (UTC+1)

                              undefined 1 Reply Last reply 15 Aug 2021, 11:25 Reply Quote 0
                              • undefined
                                jbergene @DIY-O-Sphere
                                last edited by 15 Aug 2021, 11:25

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

                                undefined 1 Reply Last reply 15 Aug 2021, 11:26 Reply Quote 0
                                • undefined
                                  DIY-O-Sphere @jbergene
                                  last edited by 15 Aug 2021, 11:26

                                  @jbergene
                                  Sorry, thats for a Mini5+

                                  (UTC+1)

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    jbergene @jbergene
                                    last edited by jbergene 15 Aug 2021, 11:46

                                    @jbergene
                                    update

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

                                    undefined 1 Reply Last reply 15 Aug 2021, 12:26 Reply Quote 0
                                    • undefined
                                      jbergene @jbergene
                                      last edited by 15 Aug 2021, 12:26

                                      @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)

                                      undefined 1 Reply Last reply 15 Aug 2021, 18:12 Reply Quote 0
                                      • undefined
                                        Phaedrux Moderator @jbergene
                                        last edited by Phaedrux 15 Aug 2021, 18:12

                                        @jbergene said in Accelerometer Usage:

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

                                        Photo of the board?

                                        And can you send M115 to report the specific firmware version?

                                        Z-Bot CoreXY Build | Thingiverse Profile

                                        undefined 1 Reply Last reply 16 Aug 2021, 18:57 Reply Quote 0
                                        • undefined
                                          oliof
                                          last edited by 16 Aug 2021, 06:51

                                          @dc42 how'd you do InputShaping for IDEX machines? In independent head mode, I guess I can set the InputShaping for each head in tpre#.g, but what about copy mode / mirror mode? I guess to keep with the program, the task here is to build the IDEX machine so a common InputShaping setup for X and U is viable?

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

                                          undefined 1 Reply Last reply 16 Aug 2021, 07:34 Reply Quote 0
                                          139 out of 191
                                          • First post
                                            139/191
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA