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

    intermittent connection with LIS3DH accelerometer

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    5
    267
    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.
    • jim546undefined
      jim546
      last edited by jim546

      I've connected an LIS3DH to a duet Maestro running RepRapFirmware for Duet 2 Maestro version 3.3 (2021-06-15 21:47:01). When M955 P0 C"twd0+twck0" is sent about a quarter of the time it responds: Error: M955: Accelerometer not found on specified port.
      Most of the time it sends:
      M955 P0 C"twd0+twck0"
      Accelerometer 0 with orientation 20 samples at 1344Hz with 10-bit resolution
      After the accelerometer is connected, about half the time when an m956 command is run the printer soft resets.
      I checked the wiring for the int pin with a multi meter to verify it was connected to the proper location and had a stable connection.
      The wire is about 2.5 meters of cat 6 connected with DuPont connectors.
      m122.txt

      gloomyandyundefined dc42undefined 2 Replies Last reply Reply Quote 0
      • gloomyandyundefined
        gloomyandy @jim546
        last edited by

        @jim546 2.5m is relatively long for an SPI connection. You may have more luck using a USB3 cable with the various pairs wired as described here: https://forum.duet3d.com/topic/22878/software-package-3-3beta3-released/68?_=1624809172098 a number of people have reported things working with longish cable runs and this sort of connection.

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

          @jim546 said in intermittent connection with LIS3DH accelerometer:

          After the accelerometer is connected, about half the time when an m956 command is run the printer soft resets.

          That's not normal. Please provide a M122 report taken after the printer resets.

          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

          jim546undefined 1 Reply Last reply Reply Quote 0
          • jim546undefined
            jim546 @dc42
            last edited by

            @dc42 m122 2.txt

            1 Reply Last reply Reply Quote 0
            • jim546undefined
              jim546
              last edited by

              I re wired the connector using the twisted pairs as if I was using a usb3 cable and it seems to be working so far.
              I probably should document that the the first half of the cable is cat 6a and the second half is cat 7.
              Thanks for the help.

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