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

    Is there a way to debug accelerometer connection issues?

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    7
    27
    2.1k
    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.
    • OwenDundefined
      OwenD
      last edited by OwenD

      Success!
      For me a piece pf CAT5E cable worked.
      I'm reasonable confident the connections on the first cable are sound.
      Perhaps a better choice would be the USB cables suggested or maybe CAT6 shielded cables?

      Now I have some data...
      Just have to work out what to do with it 🙄

      Diamondbackundefined zaptaundefined 2 Replies Last reply Reply Quote 0
      • Diamondbackundefined
        Diamondback @OwenD
        last edited by

        @owend said in Is there a way to debug accelerometer connection issues?:

        Success!
        For me a piece pf CAT5E cable worked.
        I'm reasonable confident the connections on the first cable are sound.
        Perhaps a better choice would be the USB cables suggested or maybe CAT6 shielded cables?

        Now I have some data...
        Just have to work out what to do with it 🙄

        Awesome! 👏

        1 Reply Last reply Reply Quote 0
        • zaptaundefined
          zapta @OwenD
          last edited by

          @owend said in Is there a way to debug accelerometer connection issues?:

          Perhaps a better choice would be the USB cables suggested or maybe CAT6 shielded cables?

          An oscilloscope would allow you to look at the signals and see if they are missing or distorted.

          OwenDundefined 1 Reply Last reply Reply Quote 0
          • OwenDundefined
            OwenD @zapta
            last edited by

            @zapta said in Is there a way to debug accelerometer connection issues?:

            An oscilloscope would allow you to look at the signals and see if they are missing or distorted.

            True. But out of the reach of many of us.
            In my original post topic I was hoping that RRF could somehow self diagnose communication on each pin.
            It seems like it's going to be pretty critical to get cables just right for this to work.

            zaptaundefined 1 Reply Last reply Reply Quote 0
            • zaptaundefined
              zapta @OwenD
              last edited by

              @owend said in Is there a way to debug accelerometer connection issues?:

              True. But out of the reach of many of us.

              That's correct. Digital oscilloscope prices went down very significantly but it's still a significant amount of money.

              I was hoping that RRF could somehow self diagnose communication on each pin.

              Let's see if future generations of Duet boards will have an accelerometer connector that will work out of the box with the optional Duetcelerometer module. 😉

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

                I have made the accelerometer SPI clock frequency configurable and reduced the default from 4MHz to 2MHz. I expect this will make it easier to obtain a connection. These changes will be in RRF 3.3RC1.

                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
                • clownsracheundefined
                  clownsrache
                  last edited by clownsrache

                  What kind of issue do i have?

                  1.5.2021, 15:42:23: M955 P0 C"spi.cs2+spi.cs3": Accelerometer 0:0 with orientation 20 samples at 1344Hz with 10-bit resolution

                  M956 P124.0 S10 A0

                  1.5.2021, 15:45:43: M98 P"0:/macros/ACC": Error: Response timeout: CAN addr 124, req type 4014, RID=0

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

                    @clownsrache after sending that M955 command, what does M955 without parameters respond with?

                    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

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

                      RRF 3.3RC1 with configurable accelerometer SPI frequency is now available at https://github.com/Duet3D/RepRapFirmware/releases/tag/3.3RC1.

                      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
                      • tekstyleundefined
                        tekstyle @Diamondback
                        last edited by

                        @diamondback how would u use a USB cable? it only has 4 wires but we need 7 for the adafruit accelerometer

                        dc42undefined Diamondbackundefined 2 Replies Last reply Reply Quote 0
                        • dc42undefined
                          dc42 administrators @tekstyle
                          last edited by

                          @tekstyle I have had good results with ribbon cable, ensuring that the CS wire is not next to any other signal wires. See the images and description at https://duet3d.dozuki.com/Wiki/Accelerometers#Section_Direct_SPI_connection_to_a_Duet_main_board.

                          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
                          • Diamondbackundefined
                            Diamondback @tekstyle
                            last edited by

                            @tekstyle said in Is there a way to debug accelerometer connection issues?:

                            @diamondback how would u use a USB cable? it only has 4 wires but we need 7 for the adafruit accelerometer

                            Use an USB 3 cable 🙂 It has 8 wires.

                            tekstyleundefined 1 Reply Last reply Reply Quote 0
                            • tekstyleundefined
                              tekstyle @Diamondback
                              last edited by tekstyle

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