• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    OwenD @Diamondback
    last edited by 30 Apr 2021, 23:06

    @diamondback
    I was using 9 core shielded
    https://www.altronics.com.au/p/w2712-9-core-shielded-data-cable/

    I'm about to try some CAT5 data cable (4 x twisted pairs)
    I'll report back.

    undefined 1 Reply Last reply 30 Apr 2021, 23:09 Reply Quote 0
    • undefined
      Diamondback @OwenD
      last edited by Diamondback 30 Apr 2021, 23:09

      @owend Ok, I tried single twisted pairs first, ie basically the inner part of CAT 5 cable without any shielding, and that didn't work for me. The USB cable is both twisted and shielded multiple times, I connected all the shielding to GND as well.

      1 Reply Last reply Reply Quote 0
      • undefined
        OwenD
        last edited by OwenD 30 Apr 2021, 23:43

        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 🙄

        undefined undefined 2 Replies Last reply 30 Apr 2021, 23:54 Reply Quote 0
        • undefined
          Diamondback @OwenD
          last edited by 30 Apr 2021, 23:54

          @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
          • undefined
            zapta @OwenD
            last edited by 1 May 2021, 01:27

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

            undefined 1 Reply Last reply 1 May 2021, 01:31 Reply Quote 0
            • undefined
              OwenD @zapta
              last edited by 1 May 2021, 01:31

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

              undefined 1 Reply Last reply 1 May 2021, 04:15 Reply Quote 0
              • undefined
                zapta @OwenD
                last edited by 1 May 2021, 04:15

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

                undefined 1 Reply Last reply 1 May 2021, 08:09 Reply Quote 0
                • undefined
                  dc42 administrators @zapta
                  last edited by 1 May 2021, 08:09

                  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
                  • undefined
                    clownsrache
                    last edited by clownsrache 5 Jan 2021, 13:57 1 May 2021, 13:56

                    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

                    undefined 1 Reply Last reply 1 May 2021, 14:08 Reply Quote 0
                    • undefined
                      dc42 administrators @clownsrache
                      last edited by 1 May 2021, 14:08

                      @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

                      undefined 1 Reply Last reply 1 May 2021, 14:09 Reply Quote 0
                      • undefined
                        dc42 administrators @dc42
                        last edited by 1 May 2021, 14:09

                        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
                        • undefined
                          tekstyle @Diamondback
                          last edited by 30 Jul 2021, 06:07

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

                          undefined undefined 2 Replies Last reply 30 Jul 2021, 06:37 Reply Quote 0
                          • undefined
                            dc42 administrators @tekstyle
                            last edited by 30 Jul 2021, 06:37

                            @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
                            • undefined
                              Diamondback @tekstyle
                              last edited by 30 Jul 2021, 08:25

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

                              undefined 1 Reply Last reply 15 Aug 2021, 07:51 Reply Quote 0
                              • undefined
                                tekstyle @Diamondback
                                last edited by tekstyle 15 Aug 2021, 07:51

                                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