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

    Duet3-1LC accelerometer doesn't work in 3.4 (M956)

    Scheduled Pinned Locked Moved
    Firmware developers
    3
    13
    592
    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.
    • Megamannenundefined
      Megamannen
      last edited by

      Works in 3.3.0, doesn't work in 3.4.0

      M955 I14 P121.0
      
      G91
      G1 X-50
      G4 S2
      M956 P121.0 S1000 A0 
      G4 P10
      G1 X50 F20000
      G90
      
      Error: Failed to start accelerometer data collection: INT1 error
      
      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @Megamannen
        last edited by

        @megamannen can you post an output of M122 B121?

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        Megamannenundefined 1 Reply Last reply Reply Quote 0
        • Megamannenundefined
          Megamannen @jay_s_uk
          last edited by Megamannen

          M122 B121
          Diagnostics for board 121:
          Duet TOOL1LC rev 1.1 or later firmware version 3.4.0 (2022-03-15 09:00:04)
          Bootloader ID: SAMC21 bootloader version 2.3 (2021-01-26b1)
          All averaging filters OK
          Never used RAM 2624, free system stack 88 words
          Tasks: Move(notifyWait,0.0%,153) HEAT(notifyWait,0.4%,111) CanAsync(notifyWait,0.0%,65) CanRecv(notifyWait,0.0%,76) CanClock(notifyWait,0.0%,65) ACCEL(notifyWait,0.0%,27) TMC(notifyWait,3.0%,67) MAIN(running,91.7%,351) IDLE(ready,0.0%,26) AIN(delaying,4.9%,142), total 100.0%
          Last reset 00:06:07 ago, cause: software
          Last software reset data not available
          Driver 0: pos 0, 690.0 steps/mm,standstill, SG min 0, read errors 0, write errors 0, ifcnt 32, reads 48625, writes 5, timeouts 0, DMA errors 0, CC errors 0, steps req 0 done 0
          Moves scheduled 0, completed 0, in progress 0, hiccups 0, step errors 0, maxPrep 0, maxOverdue 0, maxInc 0, mcErrs 0, gcmErrs 0
          Peak sync jitter -5/6, peak Rx sync delay 211, resyncs 0/0, no step interrupt scheduled
          VIN voltage: min 24.4, current 24.4, max 24.4
          MCU temperature: min 38.2C, current 38.5C, max 38.6C
          Last sensors broadcast 0x00000002 found 1 78 ticks ago, 0 ordering errs, loop time 0
          CAN messages queued 7246, send timeouts 0, received 3270, lost 0, free buffers 37, min 37, error reg 0
          dup 0, oos 0/0/0/0, bm 0, wbm 0, rxMotionDelay 0
          Accelerometer: LIS3DH, status: 00, INT1 error!
          I2C bus errors 0, naks 0, other errors 0
          
          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @Megamannen
            last edited by

            @megamannen does it have a diode on the underside of the board need the edge? It's been added after manufacture so should be easy to spot

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            Megamannenundefined 1 Reply Last reply Reply Quote 0
            • Megamannenundefined
              Megamannen @jay_s_uk
              last edited by

              @jay_s_uk I don't think so, didn't see any components on the underside. Which edge? It's currently mounted and a bit difficult to look at the underside.

              But how does it explain why it works in 3.3 and not in 3.4?

              jay_s_ukundefined dc42undefined 2 Replies Last reply Reply Quote 0
              • jay_s_ukundefined
                jay_s_uk @Megamannen
                last edited by

                @megamannen it's on the bottom left of this image
                46c11cd0-7837-4e44-a734-a3a895c24663-image.png
                It has something to do with the INT pin but I don't know why it would work with 3.3 and not with 3.4

                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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

                  @megamannen are you certain that the accelerometer is able to collect data using RRF 3.3? In RRF 3.4 we added an extra check to help diagnose a situation in which the accelerometer appeared to be working but didn't collect data when the interrupt signal was missing.

                  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

                  Megamannenundefined 1 Reply Last reply Reply Quote 0
                  • Megamannenundefined
                    Megamannen @jay_s_uk
                    last edited by

                    @jay_s_uk I will double check, but I got a file with numbers in it, let me get back to you with a file

                    1 Reply Last reply Reply Quote 0
                    • Megamannenundefined
                      Megamannen @dc42
                      last edited by Megamannen

                      @dc42
                      I got a file with numbers in v3.3, but it feels like it ends badly

                      (whole file: x.csv )

                      Sample,X,Y,Z
                      0,0.00,0.09,1.00
                      1,0.00,0.09,1.00
                      2,-0.02,0.02,0.98
                      3,-0.02,0.02,0.98
                      4,-0.02,0.02,0.98
                      5,-0.02,0.02,0.98
                      6,-0.06,0.08,1.00
                      .....
                      .....
                      661,0.11,0.03,1.09
                      662,0.11,0.03,1.09
                      663,0.11,0.03,1.09
                      664,0.08,0.22,1.02
                      Received mismatched data
                      

                      @jay_s_uk
                      I think I identified the correct corner, it was easy to photograph for me. It's missing the diode, right?

                      b96f92d1-0b4a-4769-a3f4-e3bd691cff3a-image.png

                      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                      • jay_s_ukundefined
                        jay_s_uk @Megamannen
                        last edited by

                        @megamannen looks like it's missing. One for @Phaedrux or @dc42
                        When and where did you buy it?

                        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                        Megamannenundefined 1 Reply Last reply Reply Quote 0
                        • Megamannenundefined
                          Megamannen @jay_s_uk
                          last edited by

                          @jay_s_uk
                          Bought it at 2022-03-09 from your official reseller https://hobby-store.pl/

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

                            @megamannen is it a revision 1.1 tool board? If so then I'm sorry, it is indeed missing the diode, which provokes the error message when you run RRF 3.4 on it. Please email warranty@duet3d.com and include a link to this thread.

                            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

                            Megamannenundefined 1 Reply Last reply Reply Quote 0
                            • Megamannenundefined
                              Megamannen @dc42
                              last edited by

                              @dc42
                              Yeah, v1.1

                              No problem, you guys found the issue in no-time, will contact support ☎

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