• 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
    dc42 administrators @CCS86
    last edited by dc42 27 Jul 2021, 16:26

    @ccs86 said in Accelerometer Usage:

    Does this setup look correct? Any other ideas?

    No, it isn't correct. If the PT100 board was not there, it might be correct. However, the PT100 board does not route TWD0 and TWCK0 straight through, it routes them to the CS2 and CS1 positions on the top connector, so that if you stack another daughterboard on top, it will use TWCK0 and TWD0 instead of CS1 and CS2.

    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 27 Jul 2021, 18:53 Reply Quote 0
    • undefined
      CCS86 @dc42
      last edited by 27 Jul 2021, 18:53

      @dc42 said in Accelerometer Usage:

      @ccs86 said in Accelerometer Usage:

      Does this setup look correct? Any other ideas?

      No, it isn't correct. If the PT100 board was not there, it might be correct. However, the PT100 board does not route TWD0 and TWCK0 straight through, it routes them to the CS2 and CS1 positions on the top connector, so that if you stack another daughterboard on top, it will use TWCK0 and TWD0 instead of CS1 and CS2.

      Like this then?

      M955 P0 C"twd0+twck0"

      ec6f20ae-0514-4a6c-a1b3-f203fe5e1118-image.png

      undefined 1 Reply Last reply 27 Jul 2021, 18:55 Reply Quote 0
      • undefined
        dc42 administrators @CCS86
        last edited by dc42 27 Jul 2021, 18:55

        @ccs86 that looks better. Alternatively, connect all the accelerometer wires to the connector on top of the PT100 board.

        Edit: I think you may have the orange and dashed green wires crossed.

        I can test that configuration when my bench system is free again.

        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
          CCS86
          last edited by 27 Jul 2021, 19:47

          @dc42 said in Accelerometer Usage:

          @ccs86 that looks better. Alternatively, connect all the accelerometer wires to the connector on top of the PT100 board.

          Edit: I think you may have the orange and dashed green wires crossed.

          I can test that configuration when my bench system is free again.

          Do you have a complete pinout for the installed daughterboard? I wasn't able to find one on the wiki.

          When you say "crossed", do you just mean mis-matched to the M955 P0 C"twd0+twck0"?

          So I could physically swap the wires, or update to M955 P0 C"twck0+twd0"?

          undefined 1 Reply Last reply 27 Jul 2021, 19:48 Reply Quote 0
          • undefined
            dc42 administrators @CCS86
            last edited by 27 Jul 2021, 19:48

            @ccs86 said in Accelerometer Usage:

            So I could physically swap the wires, or update to M955 P0 C"twck0+twd0"?

            yes.

            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 27 Jul 2021, 21:05 Reply Quote 0
            • undefined
              TheBasedDoge @dc42
              last edited by TheBasedDoge 27 Jul 2021, 21:05

              I am trying to setup the Adafruit LIS3DH Accelerometer with no luck so far. I have the Duet2 Wifi. I think that it is connected, light is on, and i didn't get an error in the log for it not being able to connect, but I am not getting any data. I am getting a drive error in the log:

              Untitled.png

              undefined 1 Reply Last reply 28 Jul 2021, 06:32 Reply Quote 0
              • undefined
                CCS86 @dc42
                last edited by 27 Jul 2021, 23:28

                @dc42 said in Accelerometer Usage:

                @ccs86 said in Accelerometer Usage:

                So I could physically swap the wires, or update to M955 P0 C"twck0+twd0"?

                yes.

                740fec49-4d0e-4185-b59a-ae88cda0d353-image.png

                undefined 1 Reply Last reply 28 Jul 2021, 06:37 Reply Quote 0
                • undefined
                  dc42 administrators @TheBasedDoge
                  last edited by 28 Jul 2021, 06:32

                  @thebaseddoge use P0 in your M956 command (same as in your M955 command), not P124.0.

                  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 1
                  • undefined
                    dc42 administrators @CCS86
                    last edited by 28 Jul 2021, 06:37

                    @ccs86 it's probably a wiring issue. A few days go I updated the wiring instructions at https://duet3d.dozuki.com/Wiki/Accelerometers#Section_Direct_SPI_connection_to_a_Duet_main_board. The first photo in that section is the 1m long cable that I used successfully to connect the Adafruit board to the Maestro.

                    You might like to try connecting the accelerometer to the Duet first using short jumper wires. When you have that working, you can try the same connections with a longer cable, taking care to keep the CS wire away from the other signal wires.

                    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 28 Jul 2021, 16:37 Reply Quote 0
                    • undefined
                      CCS86 @dc42
                      last edited by 28 Jul 2021, 16:37

                      @dc42 said in Accelerometer Usage:

                      @ccs86 it's probably a wiring issue. A few days go I updated the wiring instructions at https://duet3d.dozuki.com/Wiki/Accelerometers#Section_Direct_SPI_connection_to_a_Duet_main_board. The first photo in that section is the 1m long cable that I used successfully to connect the Adafruit board to the Maestro.

                      You might like to try connecting the accelerometer to the Duet first using short jumper wires. When you have that working, you can try the same connections with a longer cable, taking care to keep the CS wire away from the other signal wires.

                      Could you tell us what wires are considered signal wires?

                      I can try short jumpers, but I feel very good about my wiring. This was a fresh piece of CAT6 off the spool, all terminals crimped with a proper tool (EDM jaws), and it is the minimum length needed (shorter than 1 m).

                      Is the 1k resistor still benefiting my setup?

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        tekstyle @CCS86
                        last edited by 30 Jul 2021, 18:11

                        @ccs86

                        is there any reason to use VIN instead of the 3V pin on the LIs3DH module?

                        undefined 1 Reply Last reply 30 Jul 2021, 18:16 Reply Quote 0
                        • undefined
                          CCS86 @tekstyle
                          last edited by 30 Jul 2021, 18:16

                          @tekstyle said in Accelerometer Usage:

                          @ccs86

                          is there any reason to use VIN instead of the 3V pin on the LIs3DH module?

                          Yes, because that is a 3V output.

                          The V_in pin can take a 3-5V input.

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            CCS86
                            last edited by 30 Jul 2021, 18:18

                            @dc42

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

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

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

                            undefined 1 Reply Last reply 30 Jul 2021, 20:52 Reply Quote 0
                            • undefined
                              dc42 administrators @CCS86
                              last edited by 30 Jul 2021, 20:52

                              @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

                              undefined 1 Reply Last reply 31 Jul 2021, 00:41 Reply Quote 0
                              • undefined
                                CCS86 @dc42
                                last edited by 31 Jul 2021, 00:41

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

                                undefined 1 Reply Last reply 31 Jul 2021, 05:37 Reply Quote 0
                                • undefined
                                  dc42 administrators @CCS86
                                  last edited by 31 Jul 2021, 05:37

                                  @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

                                  undefined 1 Reply Last reply 31 Jul 2021, 18:37 Reply Quote 0
                                  • undefined
                                    CCS86 @dc42
                                    last edited by 31 Jul 2021, 18:37

                                    @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

                                    undefined 2 Replies Last reply 31 Jul 2021, 18:49 Reply Quote 0
                                    • undefined
                                      dc42 administrators @CCS86
                                      last edited by 31 Jul 2021, 18:49

                                      @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
                                      • undefined
                                        dc42 administrators @CCS86
                                        last edited by dc42 31 Jul 2021, 19:18

                                        @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

                                        undefined 1 Reply Last reply 31 Jul 2021, 20:49 Reply Quote 0
                                        • undefined
                                          CCS86 @dc42
                                          last edited by 31 Jul 2021, 20:49

                                          @dc42 Thank you.

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

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

                                          undefined 1 Reply Last reply 1 Aug 2021, 07:41 Reply Quote 0
                                          71 out of 191
                                          • First post
                                            71/191
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA