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

    Can a LIS3DH be installed on a duet 3mini 5+ ran from a duetPI?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    6
    16
    691
    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.
    • RatRig0331undefined
      RatRig0331
      last edited by

      I have my LIS3DH wired up to my duet 3 mini 5+ Using the recommended io3 port for in/out and temp daughterboard port and every time I send a m955 p0 c”io3.out+io3.in” I always get a message accelerometer not found error

      I checked all my wires with a meter to check my crimps and they all make good contacts from the LIS3DH chip to the motherboard plug ends

      I don’t know if it makes a difference but I am running from a rasPi with duetPI

      Diagnostics
      Board: Duet 3 Mini 5+ (Mini5plus)
      DSF Version: 3.4.0
      Firmware: RepRapFirmware for Duet 3 Mini 5+ 3.3 (2021-06-15)

      dc42undefined chrishammundefined 2 Replies Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        It should be supported in SBC mode as well in 3.4

        https://docs.duet3d.com/en/User_manual/Connecting_hardware/Sensors_Accelerometer

        Z-Bot CoreXY Build | Thingiverse Profile

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

          @ratrig0331 the most common reason for accelerometers not working with the Duet 3 Mini (other than wiring errors) is that the wire carrying the CS signal is picking up interference from one of the other 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

          RatRig0331undefined 1 Reply Last reply Reply Quote 0
          • RatRig0331undefined
            RatRig0331 @dc42
            last edited by

            @dc42 I just rewired the run with shielded foil and bonded cable wire, all the connections are good and still the same results

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

              @ratrig0331 please post photos of both ends of your wiring. How long is the cable?

              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

              RatRig0331undefined 1 Reply Last reply Reply Quote 0
              • chrishammundefined
                chrishamm administrators @RatRig0331
                last edited by

                @ratrig0331 You should use equal RRF and DSF versions so it's better to upgrade the firmware once using M997 before you continue. In order to get my LIS3DH working, I had to add a 1k resistor to the accelerometer end of SDO as well.

                Duet software engineer

                dc42undefined RatRig0331undefined 2 Replies Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators @chrishamm
                  last edited by

                  A small capacitor (100 to 500pF?) connected between the CS and ground pins of the LIS module might work 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

                  RatRig0331undefined 1 Reply Last reply Reply Quote 0
                  • RatRig0331undefined
                    RatRig0331 @chrishamm
                    last edited by

                    @chrishamm

                    3/31/2022, 10:40:32 AM M997
                    Error: Operation has been cancelled

                    1 Reply Last reply Reply Quote 0
                    • RatRig0331undefined
                      RatRig0331 @dc42
                      last edited by

                      @dc42 the cable run is 75inches long, I’ll take pics tonight and post them as soon as I figure out how to make them URL’s

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

                        @ratrig0331 the long cable is probably the problem. I only tested up to 1 metre.

                        You could try reducing the SPI data rate, for example to 1MHz by including Q1000000 in the M955 command.

                        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

                        RatRig0331undefined 3 Replies Last reply Reply Quote 0
                        • RatRig0331undefined
                          RatRig0331 @dc42
                          last edited by

                          @dc42 I’ll give that a shot when I get home to at the “q” value, I can’t go much shorter than 75 inches my set up is a 500x500x500 xy core printer

                          gloomyandyundefined jay_s_ukundefined 2 Replies Last reply Reply Quote 0
                          • gloomyandyundefined
                            gloomyandy @RatRig0331
                            last edited by

                            @ratrig0331 Some folks have reported using up to 3m connections when using a USB3.0 style cable. See: https://forum.duet3d.com/topic/22878/software-package-3-3beta3-released/57?_=1624809172098 This seemed to work well when other cables (like cat5) did not.

                            1 Reply Last reply Reply Quote 1
                            • jay_s_ukundefined
                              jay_s_uk @RatRig0331
                              last edited by

                              @ratrig0331 I run a 2.7m USB3 cable quite happily

                              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

                              1 Reply Last reply Reply Quote 0
                              • RatRig0331undefined
                                RatRig0331 @dc42
                                last edited by

                                @dc42 tryed the m955 p0 c”io3.out+io3.in” q1000000 and same result I ordered a set of “pf” sizes100-10000 off Amazon for $7usd due in this Saturday so I will give that a try

                                1 Reply Last reply Reply Quote 0
                                • RatRig0331undefined
                                  RatRig0331 @dc42
                                  last edited by

                                  @dc42 my new multimeter can in today, my lines still show good connection from the duet to the chip I’m also getting the following on the chip side

                                  G to vcc 3.296v
                                  G to scl 1.815v
                                  G to sda 3.296v
                                  G to sdo 2.661v
                                  G to cs 3.296v
                                  G to int1 3.283v

                                  1 Reply Last reply Reply Quote 0
                                  • RatRig0331undefined
                                    RatRig0331 @dc42
                                    last edited by

                                    @dc42 looks like I was fighting a bad chip the first one was no good the second one I tryed was no good and than the third one lit it’s little beacon of the success led right off the bat and the duet found it, however is it normal if I send the m955 p0 c”io3.out+io3.in” over and over it will find it than the next it won’t, than once more it will find it than if I send it once mor it won’t

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