• 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
    StaticRed
    last edited by 5 Jun 2021, 13:59

    So i updated successfully to 3.3RC3 and DWC seems to work just fine. I connected a LIS3DH from Adafruit (Stemma QT Version) and hooked it up the board. The problem i have is, if i try to read data, it says accelerometer not found. So im not sure if i connected it correctly. Im using a Duet 3 Mini 5 plus. I connected it like this this

    TEMP Daughterboard
    spi2.M0SI -> SDA
    spi2.MIS0 -> SDO
    spi2.sck -> SCL
    in0.in -> INT
    in0.out -> CS
    3.3v -> VCC
    GND -> GND

    is set it up like this:
    M955 P100 C"io0.out+io0.in"

    not sure if i have to say in which spi i have to connect it, but i did not read about it in the docu.

    undefined 1 Reply Last reply 5 Jun 2021, 14:25 Reply Quote 0
    • undefined
      dc42 administrators @StaticRed
      last edited by 5 Jun 2021, 14:25

      @staticred the wiring sounds correct. Use P0 not P100.

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

        @dc42 if i use P0 instead of P100 my DWC will time out and it wont post anything to the console sadly.

        undefined 2 Replies Last reply 6 Jun 2021, 07:05 Reply Quote 0
        • undefined
          dc42 administrators @StaticRed
          last edited by 6 Jun 2021, 07:05

          @staticred could it be that the INT wire isn't connected?

          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 10 Jun 2021, 08:11

            @staticred did you get the accelerometer working?

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

              @dc42 said in Accelerometer Usage:

              @staticred did you get the accelerometer working?

              so i redo the howl wiring, and its pretty secure now on the board. At first it was pretty bad, but now its solid. I now used P100 instead of P0, but still getting accelerometer not found. All cables are connected as meant above.

              undefined 1 Reply Last reply 12 Jun 2021, 12:52 Reply Quote 0
              • undefined
                StaticRed @StaticRed
                last edited by 12 Jun 2021, 12:52

                @staticred Sorry meant i used P0 for the accelerometer and gcode.

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

                  @staticred can you confirm that you do not have a PanelDue connected? The PanelDue port is shared with IO0.

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

                    @dc42 Sure nothing else is connected to the board. Just the normal stuff like fans motors heaters

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      StaticRed @dc42
                      last edited by 12 Jun 2021, 16:04

                      @dc42 okay so i rechecked every wire, seems to be all fine. I think its just something about wrong gcode, nothing more.

                      Maybe my config.g can help? https://just-paste.it/SqW7DwJd1j

                      GCode im using just to try the accelerometer

                      M956 P0 S1000 A0

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

                        @staticred
                        If you paste

                        M955 P0  C"io0.out+io0.in"
                        

                        to the DWC gcode input box, what is the replied message?

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

                          @diy-o-sphere Error: M955: Accelerometer not found on specified port

                          undefined 1 Reply Last reply 12 Jun 2021, 16:59 Reply Quote 0
                          • undefined
                            StaticRed @StaticRed
                            last edited by 12 Jun 2021, 16:59

                            @staticred https://imgur.com/a/p3jq7Oh this is how i hooked it up

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

                              @staticred

                              I remember that I also had strange readings in the beginning, but the sensor still worked and was found with the M955 command. I have also plugged it to Io0. But I have connected all wires to the paneldue port.

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

                                @staticred
                                That is my wiring

                                f63ed4a3-277c-4793-b62f-293a51c42ad3-grafik.png

                                1 Reply Last reply Reply Quote 0
                                • 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
                                          6 out of 191
                                          • First post
                                            6/191
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA