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

    Accelerometer on duet2wifi + duex5 expansion

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    4
    11
    1.0k
    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.
    • MikeSundefined
      MikeS
      last edited by MikeS

      Hi all,
      i'm struggling getting LIS3DH working on my setup (duet2+duex5). I connected the accelerometer on the daughter board connector of the duex5. These are the cross wiring i made with a cat5 cable:

      2394dbf7-a22e-4a4e-899b-216e935dc316-immagine.png

      On webui i get:
      M955 P0 C"spi.cs5+spi.cs6"
      Error: M955: Accelerometer not found on specified port

      Cable is barely long enough to reach the bottom of the printer to the toolhead not crossing power or motor cables. Am i doing something wrong? thank you.undefined

      SIamundefined 1 Reply Last reply Reply Quote 0
      • SIamundefined
        SIam @MikeS
        last edited by

        @mikes you can try this https://forum.duet3d.com/topic/23559/accelerometer-usage/28?_=1625386438940

        or my solution with an usb3 Cable https://forum.duet3d.com/topic/22878/software-package-3-3beta3-released/68?_=1624809172098

        Hypercube-Evolution-Hybrid, Piezo Orion, Orbiter
        Duet WiFi 1.02 or later + DueX5
        RepRapFirmware for Duet 2 WiFi/Ethernet 3.4.0beta4 (2021-09-27 11:30:36)
        Duet WiFi Server: 1.26
        Duet Web Control 3.4.0beta4 (2021-09-27)

        1 Reply Last reply Reply Quote 0
        • MikeSundefined
          MikeS
          last edited by MikeS

          @siam So 1k resistor did not fix it. My wiring is correct? is it possibile to use the daughterboard connection on the duex? if so i will try changing the cable with an usb3 one.

          Also i bought this type of board

          c8792409-fa4a-4a43-9ee6-68bc2161c755-immagine.png

          is that ok?

          Edit: Switched to USB3 cable and connected as your post but didn't help...same behaviour as before. I can't try on Duet daughterboard connection because i have a PT100 sensor for extruder wired to a non-official PT100 board (wired with dupont)

          Edit2: Also tried to disconnect the PT100 board on CS1 and connect the accelerometer on CS1 and CS2 but without luck...also with 1k resistor in series with SDO pin at accelerometer end. Here's a photo of one end of the wiring..the other is the same without the 1k resistor:
          15be2998-cdf2-4d83-8639-eba2ac3a27c2-immagine.png

          dc42undefined felekundefined 2 Replies Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @MikeS
            last edited by

            @mikes please post a photo of the Duet end of the wiring too.

            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

            MikeSundefined 1 Reply Last reply Reply Quote 0
            • MikeSundefined
              MikeS @dc42
              last edited by

              @dc42 sorry for the delay but the board is under the printer and i need some help for moving it.
              Wirings are not tidy as i would but they seems ok to me. Also the accelerometer now is connected to CS1/CS2 on duet2wifi, no need to print at the moment so i disconnected PT100 and remove it's gcode in config.g

              20210709_195714.jpg 20210709_195724.jpg 20210709_195740.jpg

              1 Reply Last reply Reply Quote 0
              • felekundefined
                felek @MikeS
                last edited by

                @mikes
                I also bought this board from Aliexpress and I wasn't able to run it. After investigation I realized that it is LIS3DSH chip which has different registers than LIS3DH.

                AFAIK RRF3 doesn't support LIS3DSH right now.

                Take a look on the chip. There is DSH instead of DH.

                MikeSundefined 1 Reply Last reply Reply Quote 1
                • MikeSundefined
                  MikeS @felek
                  last edited by MikeS

                  @felek thanks for the feedback. Actually i did the same mistake and had to buy the correct one from local amazon (it) .Just looked at the chip and it actually really says DSH instead of DH. Damn!

                  20210709_214935.jpg

                  20210709_215145.jpg

                  20210709_215204.jpg

                  @dc42 thanks for the help. Any chance that this DSH version will be implemented in the future?

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

                    @mikes I have a LIS3DSH board already and I do plan to add support for it, but it isn't the priority right now.

                    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

                    MikeSundefined 1 Reply Last reply Reply Quote 0
                    • MikeSundefined
                      MikeS @dc42
                      last edited by

                      @dc42 thanks David. We'll wait patiently. In the mean time input shaping will be debugged and stable to try it. If you add support for that accelerometer i'll do my part and test it.
                      Thanks for your hard work!

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

                        @mikes I now have my LIS3DSH accelerometer working with RRF. Support for it will be included in a forthcoming RRF 3.4beta release.

                        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

                        MikeSundefined 1 Reply Last reply Reply Quote 1
                        • MikeSundefined
                          MikeS @dc42
                          last edited by

                          Awesome! In the meantime i did some maintenance to my printer and tuned it better i can. Going to print some gcode and retry them with IS on.
                          One more time thank you!

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