• 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
    o_lampe @jbergene
    last edited by o_lampe 18 Aug 2021, 05:58

    @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

    undefined 1 Reply Last reply 18 Aug 2021, 07:49 Reply Quote 3
    • undefined
      jbergene @o_lampe
      last edited by 18 Aug 2021, 07:49

      @o_lampe thank you:)

      1 Reply Last reply Reply Quote 0
      • undefined
        tekkydave @gloomyandy
        last edited by tekkydave 22 Aug 2021, 08:20

        @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

        undefined undefined 2 Replies Last reply 22 Aug 2021, 08:45 Reply Quote 0
        • undefined
          gloomyandy @tekkydave
          last edited by 22 Aug 2021, 08:45

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

          undefined 1 Reply Last reply 22 Aug 2021, 10:00 Reply Quote 0
          • undefined
            tekkydave @gloomyandy
            last edited by 22 Aug 2021, 10:00

            @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

            undefined 1 Reply Last reply 22 Aug 2021, 12:18 Reply Quote 0
            • undefined
              gloomyandy @tekkydave
              last edited by 22 Aug 2021, 12:18

              @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.#

              undefined 1 Reply Last reply 22 Aug 2021, 12:57 Reply Quote 0
              • undefined
                tekkydave @gloomyandy
                last edited by 22 Aug 2021, 12:57

                @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
                • undefined
                  Blacksheep99 @tekkydave
                  last edited by Blacksheep99 22 Aug 2021, 20:59

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

                  undefined 1 Reply Last reply 22 Aug 2021, 21:10 Reply Quote 0
                  • undefined
                    tekkydave @Blacksheep99
                    last edited by 22 Aug 2021, 21:10

                    @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
                    • undefined
                      tecno
                      last edited by 23 Aug 2021, 11:13

                      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
                      • undefined
                        jay_s_uk
                        last edited by 23 Aug 2021, 11:16

                        @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

                        undefined 1 Reply Last reply 23 Aug 2021, 11:19 Reply Quote 0
                        • undefined
                          tecno @jay_s_uk
                          last edited by 23 Aug 2021, 11:19

                          @jay_s_uk

                          Yes its my good old Chiron 😉

                          Will try to see what I get here.

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

                            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

                            undefined 1 Reply Last reply 23 Aug 2021, 12:52 Reply Quote 0
                            • undefined
                              tekkydave @tecno
                              last edited by 23 Aug 2021, 12:52

                              @tecno Yes 60.

                              0 = +X, 1 = +Y, 2 = +Z, 4 = -X, 5 = -Y, 6 = -Z.

                              the chip's z will be pointing in printer's -z dir = 6
                              the chip's x will be pointing in printer's +x dir = 0

                              ~ 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

                              undefined 1 Reply Last reply 23 Aug 2021, 13:58 Reply Quote 1
                              • undefined
                                tecno @tekkydave
                                last edited by 23 Aug 2021, 13:58

                                @tekkydave
                                Thanks, just want to be sure.

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  tekkydave
                                  last edited by 27 Aug 2021, 13:43

                                  I have finally got my hands on a LIS3DSH. I ordered it from the link supplied above by @dc42

                                  https://www.ebay.co.uk/itm/272706183865

                                  Note the 'DSH' on the chip 🙂

                                  2021-08-27 14.04.08_crop.jpg

                                  And in DWC:

                                  Screenshot from 2021-08-27 14-13-37.png

                                  ~ 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
                                  • undefined
                                    Blacksheep99
                                    last edited by 28 Aug 2021, 14:35

                                    I got mine hooked up to the Maestro. Seems to be working. I've had some overruns so need to look at that. I'm not sure what to do with the data from the graphs as yet but reading it seems documentation is coming and the plugin will be updated to support 3.4b3 soon.

                                    Does it matter where on the print head gantry I place the sensor? To test I just taped in on top of the extruder assembly.

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      tekkydave
                                      last edited by 28 Aug 2021, 18:43

                                      @blacksheep99 I have mine mounted on the back plate of the extruder mount. It would benefit from being rigidly mounted rather than taped.
                                      Screenshot_20210828-194214_Gallery.jpg

                                      ~ 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

                                      undefined 1 Reply Last reply 28 Aug 2021, 19:17 Reply Quote 0
                                      • undefined
                                        Blacksheep99 @tekkydave
                                        last edited by 28 Aug 2021, 19:17

                                        @tekkydave thanks. The tape is just while I know it works. I should be able to design and print a mount for it.

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          jbarros
                                          last edited by jbarros 9 Jan 2021, 12:19 31 Aug 2021, 22:13

                                          I'm trying to connect accelerometers to my boards and on a 6HC and a Mini 5+ I'm unable to detect it.
                                          Tried 3 accelerometers 2x LIS3DSH and 1x LIS3DH and 2 cables, one I built with 100mm and a short version with dupond cables.

                                          Wasn't it supposed to receive some message with failure or success?
                                          Ex:

                                          Error: M955: Accelerometer not found on specified port

                                          I get nothing when entering:

                                          M955 P0 C"io2.out+io2.in"
                                          

                                          9b76177a-8bfe-42df-9e8b-d45693e4a549-image.png

                                          Firmware: RepRapFirmware for Duet 3 Mini 5+ 3.4.0beta3 (2021-08-24)

                                          undefined 1 Reply Last reply 2 Sept 2021, 00:28 Reply Quote 0
                                          175 out of 191
                                          • First post
                                            175/191
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA