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

    Accelerometer Usage

    Scheduled Pinned Locked Moved
    Beta Firmware
    25
    191
    19.9k
    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.
    • CCS86undefined
      CCS86
      last edited by

      @dc42

      All re-wired with short jumpers... same issue.

      390a8b54-0ad1-4f41-b8b9-272f3e06a684-image.png

      bb5e2919-9a4e-4e1c-a654-55c1d8840c30-image.png

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

        @ccs86 please connect all the jumpers to the appropriate pins on top of the temperature daughter 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

        CCS86undefined 1 Reply Last reply Reply Quote 0
        • CCS86undefined
          CCS86 @dc42
          last edited by

          @dc42 said in Accelerometer Usage:

          @ccs86 please connect all the jumpers to the appropriate pins on top of the temperature daughter board.

          I would need that pinout, since it does not match the mainboard pinout.

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

            @ccs86 the pilot is the same as on the main board except for TWCK and TWD.

            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

            CCS86undefined 1 Reply Last reply Reply Quote 0
            • CCS86undefined
              CCS86 @dc42
              last edited by

              @dc42 said in Accelerometer Usage:

              @ccs86 the pilot is the same as on the main board except for TWCK and TWD.

              @dc42 Do I have this right? The error persists.

              96006ce7-966e-4a0a-a368-466bd7f9f1aa-image.png

              725b57ac-c64e-4509-b5de-41efebfcc385-image.png

              8ee28d37-5143-4019-aa9a-3bfb6dab1ebe-image.png

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

                @ccs86 I'll try that configuration here.

                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
                • dc42undefined
                  dc42 administrators @CCS86
                  last edited by dc42

                  @ccs86 this arrangement is working for me, using the following command:

                  m955 p0 c"twck0+twd0"

                  I tried without enabling the PT100 channels, and also after enabling both channels. I normally connect the 3.3V wire to the 3.3V pin on the accelerometer, but I tried connecting it to the accelerometer VIN pin to match your setup, and it still works.

                  2021-07-31 20.12.08.jpg

                  2021-07-31 20.12.34.jpg

                  2021-07-31 20.12.57.jpg

                  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

                  CCS86undefined 1 Reply Last reply Reply Quote 0
                  • CCS86undefined
                    CCS86 @dc42
                    last edited by

                    @dc42 Thank you.

                    I'm having trouble making out some of your wire colors. Is this correct?

                    b7f796ca-d331-43bf-b89e-6c8201b650ad-image.png

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

                      @ccs86 yes, the wiring is as you have indicated.

                      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

                      CCS86undefined 1 Reply Last reply Reply Quote 0
                      • CCS86undefined
                        CCS86 @dc42
                        last edited by CCS86

                        @dc42 said in Accelerometer Usage:

                        @ccs86 yes, the wiring is as you have indicated.

                        Thanks for sticking with me, I finally got it working! Not sure if it had more to do with connecting to both the main board and the daughterboard, or if I had made an error somewhere.

                        82ea3f7c-7a8e-40b5-8317-5fcc9dde411a-image.png

                        I am running into quite a few overflow errors now, but don't see the rhyme or reason. Reducing the collection call to one axis and 500 samples still reported overflows. But after adding the S parameter to the M955 command, I got it to log all 3 axis for 1000 samples without an issue. That M955 S parameter behaves differently than I expected:

                        ca493605-cedd-4acc-b0a1-4fd55f2aedbe-image.png

                        Sometimes I get overflow errors at 400 Hz, but not at 1344 Hz

                        ajdtreydundefined 1 Reply Last reply Reply Quote 0
                        • CCS86undefined
                          CCS86
                          last edited by

                          Also, is there anything I can do to reduce apparent noise in the accelerometer signal? These peaks seem like anomolies. This is with the printer at rest and steppers disabled. The peaks look very periodic.

                          07853afd-fc4a-4df7-8f47-bb229117de28-image.png

                          T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                          • T3P3Tonyundefined
                            T3P3Tony administrators @CCS86
                            last edited by

                            @ccs86 could those peaks be from your fan?

                            www.duet3d.com

                            CCS86undefined 1 Reply Last reply Reply Quote 0
                            • ajdtreydundefined
                              ajdtreyd @CCS86
                              last edited by

                              @ccs86

                              About the overflows - I was getting these at first. Turned out the write speed of my SD card was abysmal (0.8MB/s). I got a new SD card and all is good now.

                              Try running an SD read/write test ( M122 P104 S[file size in MB] ) and get a new card if write speeds are under 1.5MB/s

                              CCS86undefined 1 Reply Last reply Reply Quote 2
                              • CCS86undefined
                                CCS86 @ajdtreyd
                                last edited by

                                @ajdtreyd said in Accelerometer Usage:

                                @ccs86

                                About the overflows - I was getting these at first. Turned out the write speed of my SD card was abysmal (0.8MB/s). I got a new SD card and all is good now.

                                Try running an SD read/write test ( M122 P104 S[file size in MB] ) and get a new card if write speeds are under 1.5MB/s

                                Good call!

                                Not terrible, not amazing:

                                SD write speed for 5.0Mbyte file was 1.95Mbytes/sec
                                

                                I'll probably pop a new one in for good measure,

                                ajdtreydundefined 1 Reply Last reply Reply Quote 0
                                • CCS86undefined
                                  CCS86 @T3P3Tony
                                  last edited by CCS86

                                  @t3p3tony said in Accelerometer Usage:

                                  @ccs86 could those peaks be from your fan?

                                  All fans were off during this test.

                                  Interestingly, every single one of these peaks falls on an even 20 sample interval (#20, #40, #60, #80, #100, #120, etc).

                                  There are a few places (like #320) where the value appears normal.

                                  1330 Hz / 20 = 66.5 Hz. I'm not sure if that frequency coincides with anything computational on the main board.

                                  o_lampeundefined dc42undefined 2 Replies Last reply Reply Quote 0
                                  • o_lampeundefined
                                    o_lampe @CCS86
                                    last edited by

                                    @ccs86
                                    All the time reading about the accel sensorboard, I was worried about feeding the Vin pin with 3.3V.
                                    The sensorboard sure uses an LowDrop voltage regulator, but does it work reliable with such low voltage?
                                    @dc42 uses the 3V (out) pin to feed 3.3V backwards into the board, which makes more sense to me.

                                    Maybe worth trying to either feed 5V through Vin or in Davids way and repeat the test.

                                    CCS86undefined 1 Reply Last reply Reply Quote 1
                                    • CCS86undefined
                                      CCS86 @o_lampe
                                      last edited by

                                      @o_lampe said in Accelerometer Usage:

                                      @ccs86
                                      All the time reading about the accel sensorboard, I was worried about feeding the Vin pin with 3.3V.
                                      The sensorboard sure uses an LowDrop voltage regulator, but does it work reliable with such low voltage?
                                      @dc42 uses the 3V (out) pin to feed 3.3V backwards into the board, which makes more sense to me.

                                      Maybe worth trying to either feed 5V through Vin or in Davids way and repeat the test.

                                      They claim that this board will take a 3V-5V input. But, it's easy enough to test, so...

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

                                        @ccs86 said in Accelerometer Usage:

                                        Interestingly, every single one of these peaks falls on an even 20 sample interval (#20, #40, #60, #80, #100, #120, etc).

                                        I suspect it may be an undetected data overrun then. RRF tries to read 20 values at a time. The FIFO in the accelerometer is 32 values long, so this allows some leeway. Try capturing all three axes and see if it is the same on all of them.

                                        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

                                        CCS86undefined 1 Reply Last reply Reply Quote 0
                                        • CCS86undefined
                                          CCS86 @dc42
                                          last edited by

                                          @dc42 said in Accelerometer Usage:

                                          @ccs86 said in Accelerometer Usage:

                                          Interestingly, every single one of these peaks falls on an even 20 sample interval (#20, #40, #60, #80, #100, #120, etc).

                                          I suspect it may be an undetected data overrun then. RRF tries to read 20 values at a time. The FIFO in the accelerometer is 32 values long, so this allows some leeway. Try capturing all three axes and see if it is the same on all of them.

                                          I can confirm that X and Y also have these 20-sample peaks.

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

                                            @ccs86 what M955 and M956 parameters are you using? I will try the same parameters.

                                            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

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