• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    T3P3Tony administrators @CCS86
    last edited by 1 Aug 2021, 18:02

    @ccs86 could those peaks be from your fan?

    www.duet3d.com

    undefined 1 Reply Last reply 2 Aug 2021, 02:14 Reply Quote 0
    • undefined
      ajdtreyd @CCS86
      last edited by 1 Aug 2021, 20:27

      @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

      undefined 1 Reply Last reply 2 Aug 2021, 01:56 Reply Quote 2
      • undefined
        CCS86 @ajdtreyd
        last edited by 2 Aug 2021, 01:56

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

        undefined 1 Reply Last reply 2 Aug 2021, 20:35 Reply Quote 0
        • undefined
          CCS86 @T3P3Tony
          last edited by CCS86 8 Feb 2021, 02:15 2 Aug 2021, 02:14

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

          undefined undefined 2 Replies Last reply 2 Aug 2021, 06:15 Reply Quote 0
          • undefined
            o_lampe @CCS86
            last edited by 2 Aug 2021, 06:15

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

            undefined 1 Reply Last reply 2 Aug 2021, 13:30 Reply Quote 1
            • undefined
              CCS86 @o_lampe
              last edited by 2 Aug 2021, 13:30

              @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
              • undefined
                dc42 administrators @CCS86
                last edited by dc42 8 Feb 2021, 14:46 2 Aug 2021, 14:46

                @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

                undefined 1 Reply Last reply 2 Aug 2021, 19:48 Reply Quote 0
                • undefined
                  CCS86 @dc42
                  last edited by 2 Aug 2021, 19:48

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

                  undefined 1 Reply Last reply 2 Aug 2021, 19:58 Reply Quote 0
                  • undefined
                    dc42 administrators @CCS86
                    last edited by 2 Aug 2021, 19:58

                    @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

                    undefined 1 Reply Last reply 2 Aug 2021, 20:26 Reply Quote 0
                    • undefined
                      CCS86 @dc42
                      last edited by 2 Aug 2021, 20:26

                      @dc42 said in Accelerometer Usage:

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

                      M955 P0 C"twck0+twd0"
                      
                      G1 X25 G4 S2 G1 X125 F20000 M400 M956 X P0 S1000 A0
                      
                      undefined 1 Reply Last reply 3 Aug 2021, 07:50 Reply Quote 0
                      • undefined
                        ajdtreyd @CCS86
                        last edited by 2 Aug 2021, 20:35

                        @ccs86

                        If you need to buy one, I can recommend the PNY EliteX U3 V30 64GB. It's getting 3.8-4Mb/s write speed in my Duet 2 Wifi. 😁

                        1 Reply Last reply Reply Quote 1
                        • undefined
                          dc42 administrators @CCS86
                          last edited by 3 Aug 2021, 07:50

                          @ccs86 I've run the accelerometer on my Maestro and the result is fairly clean:

                          b5009f59-1844-47f0-83b9-d0b75a5ddc9f-image.png

                          However, there are some small glitches on the Z reading and it looks like they may be at multiples of 20 samples. I'll try reading one less sample from the FIFO.

                          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 3 Aug 2021, 08:10 Reply Quote 0
                          • undefined
                            dc42 administrators @dc42
                            last edited by 3 Aug 2021, 08:10

                            Reading one less sample doesn't help. I can only assume that communicating with the accelerometer creates an electrical disturbance that slightly affects the reading.

                            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 3 Aug 2021, 13:17 Reply Quote 0
                            • undefined
                              CCS86 @dc42
                              last edited by 3 Aug 2021, 13:17

                              @dc42 said in Accelerometer Usage:

                              Reading one less sample doesn't help. I can only assume that communicating with the accelerometer creates an electrical disturbance that slightly affects the reading.

                              If you read only 10 samples at a time, do the peaks appear at that new interval?

                              undefined 1 Reply Last reply 3 Aug 2021, 13:27 Reply Quote 0
                              • undefined
                                dc42 administrators @CCS86
                                last edited by 3 Aug 2021, 13:27

                                @ccs86 said in Accelerometer Usage:

                                @dc42 said in Accelerometer Usage:

                                Reading one less sample doesn't help. I can only assume that communicating with the accelerometer creates an electrical disturbance that slightly affects the reading.

                                If you read only 10 samples at a time, do the peaks appear at that new interval?

                                I didn't try that. I did find that the LIS3DSH has smaller peaks are multiples of 20 samples than the LIS3DH.

                                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 undefined 2 Replies Last reply 3 Aug 2021, 14:19 Reply Quote 0
                                • undefined
                                  tecno @dc42
                                  last edited by 3 Aug 2021, 14:19

                                  @dc42

                                  Is this one up to the task?

                                  5b67abea-a9c0-4ce2-958e-37f0360a179e-image.png

                                  undefined 1 Reply Last reply 3 Aug 2021, 14:20 Reply Quote 0
                                  • undefined
                                    dc42 administrators @tecno
                                    last edited by 3 Aug 2021, 14:20

                                    @tecno yes, that's the LIS3DSH board that I tested 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 2 Replies Last reply 3 Aug 2021, 14:21 Reply Quote 0
                                    • undefined
                                      tecno @dc42
                                      last edited by 3 Aug 2021, 14:21

                                      @dc42

                                      Thanks !

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        Sotidii
                                        last edited by Sotidii 8 Apr 2021, 06:25 4 Aug 2021, 05:58

                                        G1 X-20 G4 S2 M956 P121.0 S1000 A0 G4 P10 G1 X50 F20000
                                        

                                        Error: M956: Accelerometer is already collecting data

                                        gives an error message

                                        Duet 3 3.4.0-b2
                                        DSF
                                        Tool Board 1.1

                                        undefined 1 Reply Last reply 4 Aug 2021, 08:23 Reply Quote 0
                                        • undefined
                                          dc42 administrators @Sotidii
                                          last edited by dc42 8 Apr 2021, 08:24 4 Aug 2021, 08:23

                                          @sotidii please send M115 B# where # is the CAN address of the tool board, to verify the tool board firmware version. There was a bug with similar symptoms in unofficial beta builds of the tool board, but it was fixed in the official beta release.

                                          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 4 Aug 2021, 08:37 Reply Quote 0
                                          94 out of 191
                                          • First post
                                            94/191
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA