• 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
    DIY-O-Sphere @StaticRed
    last edited by DIY-O-Sphere 6 Dec 2021, 17:25 12 Jun 2021, 17:17

    This post is deleted!
    undefined 1 Reply Last reply 12 Jun 2021, 17:18 Reply Quote 0
    • undefined
      StaticRed @DIY-O-Sphere
      last edited by 12 Jun 2021, 17:18

      @diy-o-sphere Thanks a lot man, i will try it out. I have another version of the Lis3DH sensor, stemm qt. It just has 2 ports on the side, not sure if it will effect anything, but i dont think so.

      undefined 1 Reply Last reply 12 Jun 2021, 17:55 Reply Quote 0
      • undefined
        DIY-O-Sphere @StaticRed
        last edited by DIY-O-Sphere 6 Dec 2021, 17:56 12 Jun 2021, 17:55

        @staticred

        Sorry, had to delete my previous post. Now I noticed that you have connected the wires to the temp dautherboard. That looks right to me.

        undefined 1 Reply Last reply 12 Jun 2021, 18:30 Reply Quote 0
        • undefined
          StaticRed @DIY-O-Sphere
          last edited by 12 Jun 2021, 18:30

          @diy-o-sphere Ok it now it works,

          Accelerometer 0:0 with orientation 20 samples at 1344Hz with 10-bit resolution

          It worked until i tried to run a test. Then DWC timed out, and now im getting no connection anymore. Same wiring. Really weird.

          undefined 1 Reply Last reply 12 Jun 2021, 20:28 Reply Quote 0
          • undefined
            dc42 administrators @StaticRed
            last edited by 12 Jun 2021, 20:28

            @staticred said in Accelerometer Usage:

            @diy-o-sphere Ok it now it works,

            Accelerometer 0:0 with orientation 20 samples at 1344Hz with 10-bit resolution

            It worked until i tried to run a test. Then DWC timed out, and now im getting no connection anymore. Same wiring. Really weird.

            That suggests that something is wrong with the interrupt input. Check the connection between INT0 on the LIS3DH and io0.in, and perhaps try using a different IO port.

            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 13 Jun 2021, 09:39 Reply Quote 0
            • undefined
              StaticRed @dc42
              last edited by 13 Jun 2021, 09:39

              @dc42 Nope no chance. I wired it to io1. Same thing. I tested all connections with a multimeter and they work. But sadly my board cant build up a connection to the accelerometer. Is there something like a debug mode, which may teaches me more about what exactly the problem is?

              undefined 1 Reply Last reply 13 Jun 2021, 09:42 Reply Quote -1
              • undefined
                StaticRed @StaticRed
                last edited by 13 Jun 2021, 09:42

                @staticred seems like it still did record some data at some point.
                aa562860-14d7-4554-9ac1-8924487b9324-image.png

                But it does not make sense that that is the z axis. Because the board is mounted flat on the toolhead. Really strange

                undefined 1 Reply Last reply 13 Jun 2021, 09:50 Reply Quote 0
                • undefined
                  dc42 administrators @StaticRed
                  last edited by dc42 13 Jun 2021, 09:50

                  @staticred I will re-test accelerometer with Duet 3 Mini later today or tomorrow.

                  What did the raw data look like, before you clicked Analyse?

                  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 13 Jun 2021, 09:54 Reply Quote 0
                  • undefined
                    StaticRed @dc42
                    last edited by 13 Jun 2021, 09:54

                    @dc42 Thank you alot!
                    2718ce0e-d153-4dd6-9cea-48819629d1f4-image.png
                    This is what the raw data looked like

                    undefined 2 Replies Last reply 14 Jun 2021, 13:43 Reply Quote 0
                    • undefined
                      dc42 administrators @StaticRed
                      last edited by dc42 14 Jun 2021, 13:43

                      @staticred the raw data looks OK except for the spikes and drops, assuming that you collected that data while the machine was stationary. My guess is that those spikes/drops were where the firmware was unable to extract the data from the accelerometer fast enough. You can check this by looking at the end of the .csv file to see if there is a message about this. I think the DWC accelerometer plugin may report it too. See the notes at https://duet3d.dozuki.com/Wiki/Accelerometers#Section_Retrieving_the_data to see what you can do about it; or just try re-running it a few times to see if you can get a clean run.

                      The analysis isn't valid if the data contains dropouts. To get a useful analysis you need to do a suitable move while the data is being collected as described at https://duet3d.dozuki.com/Wiki/Accelerometers#Section_Using_accelerometers.

                      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
                        dc42 administrators @StaticRed
                        last edited by 14 Jun 2021, 14:02

                        @staticred I just connected a LIS3DH board to my Duet 3 Mini5+ WiFi and it is working as expected. I used connector IO2 to connect the CS and INT lines.

                        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 14 Jun 2021, 17:06 Reply Quote 0
                        • undefined
                          StaticRed @dc42
                          last edited by 14 Jun 2021, 17:06

                          @dc42 thank you for all the infos. I will tomorrow (after upgrading to my new orbiter extruder) solder all the wires to the lis3DH and also make proper connections. Maybe just a faulty cable caused it.

                          undefined 1 Reply Last reply 2 Jul 2021, 19:08 Reply Quote 0
                          • undefined
                            dc42 administrators @StaticRed
                            last edited by dc42 7 Feb 2021, 19:32 2 Jul 2021, 19:08

                            For anyone having problems getting an SPI-connected accelerometer to work:

                            I have found that capacitive coupling between the SDO and CS signals in the cable can cause a glitch on CS when the accelerometer replied to a read register request, and this glitch stops the accelerometer sending any more data. This is especially likely if those two signals, which use adjacent pins on the Adafruit LIS3DH board, use adjacent conductors in a flat cable. I was able to work around this by putting a 1K resistor in series with SDO at the accelerometer end of the cable.

                            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 Jul 2021, 12:55 Reply Quote 0
                            • undefined
                              Ducati87
                              last edited by 2 Jul 2021, 19:23

                              I'm having an issue with the connection. I used a CAT7 ethernet cable but nothing works. Every time I try to launch the command, the accelerator is not found. Any suggest about which cable I should use? Thankt you.

                              undefined undefined 2 Replies Last reply 2 Jul 2021, 19:27 Reply Quote 0
                              • undefined
                                SIam @Ducati87
                                last edited by 2 Jul 2021, 19:27

                                @ducati87 I use a USB3 cable and have no problems since then
                                https://forum.duet3d.com/topic/22878/software-package-3-3beta3-released/68?_=1624809172098

                                Hypercube-Evolution-Hybrid, Piezo Orion, Orbiter
                                Duet WiFi 1.02 or later + DueX5
                                RepRapFirmware for Duet 2 WiFi/Ethernet 3.4.0beta4 (2021-09-27 11:30:36)
                                Duet WiFi Server: 1.26
                                Duet Web Control 3.4.0beta4 (2021-09-27)

                                undefined 1 Reply Last reply 2 Jul 2021, 19:29 Reply Quote 0
                                • undefined
                                  Ducati87 @SIam
                                  last edited by 2 Jul 2021, 19:29

                                  @siam Thank you Slam, I will try it 🙂

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    dc42 administrators @Ducati87
                                    last edited by 2 Jul 2021, 19:32

                                    @ducati87 said in Accelerometer Usage:

                                    I'm having an issue with the connection. I used a CAT7 ethernet cable but nothing works. Every time I try to launch the command, the accelerator is not found. Any suggest about which cable I should use? Thankt you.

                                    See my reply immediately before your post.

                                    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 Jul 2021, 19:37 Reply Quote 0
                                    • undefined
                                      Ducati87 @dc42
                                      last edited by 2 Jul 2021, 19:37

                                      @dc42 what do you mean for "in series with SDO at the accelerometer end of the cable"?

                                      undefined 1 Reply Last reply 2 Jul 2021, 19:39 Reply Quote 0
                                      • undefined
                                        dc42 administrators @Ducati87
                                        last edited by 2 Jul 2021, 19:39

                                        @ducati87 I mean connect the resistor between the SDO pin of the accelerometer board and the wire that goes to MISO on the Duet, instead of connecting the wire directly to the SDO pin.

                                        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 2 Jul 2021, 19:40 Reply Quote 1
                                        • undefined
                                          Ducati87 @dc42
                                          last edited by 2 Jul 2021, 19:40

                                          @dc42 perfect thank you!

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