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.
    • dc42undefined
      dc42 administrators @jay_s_uk
      last edited by

      @jay_s_uk said in Accelerometer Usage:

      @dc42 can an accelerometer be connected to a 3HC?

      Not yet, but I will probably add support for that at some point.

      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

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

        @dc42 ok thanks. Would be helpful as I currently run all my tools off a 3HC and that's where all my wiring goes back to. Its also on the opposite side of my printer to the 6HC.

        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

        1 Reply Last reply Reply Quote 0
        • CCS86undefined
          CCS86 @dc42
          last edited by

          @dc42 said in Accelerometer Usage:

          @ducati87 I can confirm that accelerometer support does work on the Maestro. I have update https://duet3d.dozuki.com/Wiki/Accelerometers to include a photo showing the wiring I used. The ribbon cable is 1m long.

          I also successfully ran an accelerometer using exp.pa21 and exp.pa22 for the CS and INT signals instead of TWD0 and TWCK0.

          Any ideas on what to try next?

          I am running:

          • CAT6 cable, less than 1m length.
          • CS is run on a conductor with an unused pair (CS on orange, nothing on orange/wht)
          • 1k resistor on SDO
          • CS >>> EXP_0
          • INT >>> EXP_1
          • M955 P0 C"exp.pa21+exp.pa22"

          Not found....

          b38b0819-272d-4948-a00e-8141e37e02e1-image.png

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

            @ccs86 try using the temp daughterboard connector instead of the 12864_EXP2 connector. If you have a temperature daughterboard installed, you can connect to the pins on top of it.

            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

            CCS86undefined 1 Reply Last reply Reply Quote 0
            • CCS86undefined
              CCS86 @dc42
              last edited by CCS86

              @dc42 said in Accelerometer Usage:

              @ccs86 try using the temp daughterboard connector instead of the 12864_EXP2 connector. If you have a temperature daughterboard installed, you can connect to the pins on top of it.

              I just tried like this and still get the not found error:

              M955 P0 C"twd0+twck0"

              (I assume that is a typo in your dozuki edit: Unknown pin name 'twcl0')

              (orange is CS... wht/grn is INT)
              fdc27cd1-5e60-432c-918e-028adafac891-image.png

              o_lampeundefined CCS86undefined 2 Replies Last reply Reply Quote 0
              • o_lampeundefined
                o_lampe @CCS86
                last edited by

                @ccs86
                do you have evidence that the accelerator board is OK?

                CCS86undefined 1 Reply Last reply Reply Quote 0
                • CCS86undefined
                  CCS86 @o_lampe
                  last edited by

                  @o_lampe said in Accelerometer Usage:

                  @ccs86
                  do you have evidence that the accelerator board is OK?

                  The green light comes on, so that's a start. I'm not sure what else I might be able to test with my multimeter.

                  1 Reply Last reply Reply Quote 0
                  • CCS86undefined
                    CCS86 @CCS86
                    last edited by

                    @ccs86 said in Accelerometer Usage:

                    @dc42 said in Accelerometer Usage:

                    @ccs86 try using the temp daughterboard connector instead of the 12864_EXP2 connector. If you have a temperature daughterboard installed, you can connect to the pins on top of it.

                    I just tried like this and still get the not found error:

                    M955 P0 C"twd0+twck0"

                    (I assume that is a typo in your dozuki edit: Unknown pin name 'twcl0')

                    (orange is CS... wht/grn is INT)
                    fdc27cd1-5e60-432c-918e-028adafac891-image.png

                    @dc42 Does this setup look correct? Any other ideas?

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

                      @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

                      CCS86undefined 1 Reply Last reply Reply Quote 0
                      • CCS86undefined
                        CCS86 @dc42
                        last edited by

                        @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

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

                          @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
                          • CCS86undefined
                            CCS86
                            last edited by

                            @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"?

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

                              @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

                              TheBasedDogeundefined CCS86undefined 2 Replies Last reply Reply Quote 0
                              • TheBasedDogeundefined
                                TheBasedDoge @dc42
                                last edited by TheBasedDoge

                                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

                                dc42undefined 1 Reply Last reply Reply Quote 0
                                • CCS86undefined
                                  CCS86 @dc42
                                  last edited by

                                  @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

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

                                    @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
                                    • dc42undefined
                                      dc42 administrators @CCS86
                                      last edited by

                                      @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

                                      CCS86undefined 1 Reply Last reply Reply Quote 0
                                      • CCS86undefined
                                        CCS86 @dc42
                                        last edited by

                                        @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
                                        • tekstyleundefined
                                          tekstyle @CCS86
                                          last edited by

                                          @ccs86

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

                                          CCS86undefined 1 Reply Last reply Reply Quote 0
                                          • CCS86undefined
                                            CCS86 @tekstyle
                                            last edited by

                                            @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
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA