• 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
    tecno @tecno
    last edited by 23 Aug 2021, 12:15

    Re ORIENTATION

    DSC_0782.JPG

    As i see this is orientation I20, right?

    If I flip the board so VCC will be to the right upside down is the orientation then I60 ?

    How do handle this in config.g ? 2 lines ?

    M955 P0 I20 C"io3.out+io3.in" ;active
    ;M955 P0 I60 C"io3.out+io3.in" ; not active

    undefined 1 Reply Last reply 23 Aug 2021, 12:52 Reply Quote 0
    • undefined
      tekkydave @tecno
      last edited by 23 Aug 2021, 12:52

      @tecno Yes 60.

      0 = +X, 1 = +Y, 2 = +Z, 4 = -X, 5 = -Y, 6 = -Z.

      the chip's z will be pointing in printer's -z dir = 6
      the chip's x will be pointing in printer's +x dir = 0

      ~ tekkydave ~
      D-Bot: 300x300mm | Duet WiFi + Duex2 | 3 independent z motors | X,Y & Z linear rails | E3D Titan Aero + V6 | Precision Piezo z-probe
      FreeCAD, PrusaSlicer

      undefined 1 Reply Last reply 23 Aug 2021, 13:58 Reply Quote 1
      • undefined
        tecno @tekkydave
        last edited by 23 Aug 2021, 13:58

        @tekkydave
        Thanks, just want to be sure.

        1 Reply Last reply Reply Quote 0
        • undefined
          tekkydave
          last edited by 27 Aug 2021, 13:43

          I have finally got my hands on a LIS3DSH. I ordered it from the link supplied above by @dc42

          https://www.ebay.co.uk/itm/272706183865

          Note the 'DSH' on the chip 🙂

          2021-08-27 14.04.08_crop.jpg

          And in DWC:

          Screenshot from 2021-08-27 14-13-37.png

          ~ tekkydave ~
          D-Bot: 300x300mm | Duet WiFi + Duex2 | 3 independent z motors | X,Y & Z linear rails | E3D Titan Aero + V6 | Precision Piezo z-probe
          FreeCAD, PrusaSlicer

          1 Reply Last reply Reply Quote 1
          • undefined
            Blacksheep99
            last edited by 28 Aug 2021, 14:35

            I got mine hooked up to the Maestro. Seems to be working. I've had some overruns so need to look at that. I'm not sure what to do with the data from the graphs as yet but reading it seems documentation is coming and the plugin will be updated to support 3.4b3 soon.

            Does it matter where on the print head gantry I place the sensor? To test I just taped in on top of the extruder assembly.

            1 Reply Last reply Reply Quote 0
            • undefined
              tekkydave
              last edited by 28 Aug 2021, 18:43

              @blacksheep99 I have mine mounted on the back plate of the extruder mount. It would benefit from being rigidly mounted rather than taped.
              Screenshot_20210828-194214_Gallery.jpg

              ~ tekkydave ~
              D-Bot: 300x300mm | Duet WiFi + Duex2 | 3 independent z motors | X,Y & Z linear rails | E3D Titan Aero + V6 | Precision Piezo z-probe
              FreeCAD, PrusaSlicer

              undefined 1 Reply Last reply 28 Aug 2021, 19:17 Reply Quote 0
              • undefined
                Blacksheep99 @tekkydave
                last edited by 28 Aug 2021, 19:17

                @tekkydave thanks. The tape is just while I know it works. I should be able to design and print a mount for it.

                1 Reply Last reply Reply Quote 0
                • undefined
                  jbarros
                  last edited by jbarros 9 Jan 2021, 12:19 31 Aug 2021, 22:13

                  I'm trying to connect accelerometers to my boards and on a 6HC and a Mini 5+ I'm unable to detect it.
                  Tried 3 accelerometers 2x LIS3DSH and 1x LIS3DH and 2 cables, one I built with 100mm and a short version with dupond cables.

                  Wasn't it supposed to receive some message with failure or success?
                  Ex:

                  Error: M955: Accelerometer not found on specified port

                  I get nothing when entering:

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

                  9b76177a-8bfe-42df-9e8b-d45693e4a549-image.png

                  Firmware: RepRapFirmware for Duet 3 Mini 5+ 3.4.0beta3 (2021-08-24)

                  undefined 1 Reply Last reply 2 Sept 2021, 00:28 Reply Quote 0
                  • undefined
                    GeneRisi
                    last edited by GeneRisi 9 Jan 2021, 03:04 1 Sept 2021, 00:33

                    FWIW, twisted pair wiring is designed to use both wires in the pair. The signals we are carryng are not differential, so try connecting the "other" wire in the pair to ground at both ends of the wiring. You might find that it cleans up the signal quite a bit. I am using CAT5 unshielded cable for both the accelerometer and the Paneldue serial link without any issues (as far as I can tell)

                    1 Reply Last reply Reply Quote 1
                    • undefined
                      jbarros @jbarros
                      last edited by 2 Sept 2021, 00:28

                      @jbarros said in Accelerometer Usage:

                      I'm trying to connect accelerometers to my boards and on a 6HC and a Mini 5+ I'm unable to detect it.
                      Tried 3 accelerometers 2x LIS3DSH and 1x LIS3DH and 2 cables, one I built with 100mm and a short version with dupond cables.

                      Wasn't it supposed to receive some message with failure or success?
                      Ex:

                      Error: M955: Accelerometer not found on specified port

                      I get nothing when entering:

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

                      9b76177a-8bfe-42df-9e8b-d45693e4a549-image.png

                      Firmware: RepRapFirmware for Duet 3 Mini 5+ 3.4.0beta3 (2021-08-24)

                      @dc42

                      I decided to test with 3.3 and I got an answer:

                      M955 P0 C"io2.out+io2.in"
                      Accelerometer 0:0 with orientation 20 samples at 1344Hz with 10-bit resolution

                      I was not getting a response on 3.4b3, either good or bad from M955 but I didn't actually check if data collection was working which it is, so it's just the missing response from M955 that's whacked 🙂

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        dc42 administrators
                        last edited by 2 Sept 2021, 07:47

                        @jbarros I'm glad you solved it. The M955 command no longer returns a response if it is successful, just like most other G- and M-code configuration commands

                        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 Sept 2021, 11:37 Reply Quote 0
                        • undefined
                          jbarros @dc42
                          last edited by 2 Sept 2021, 11:37

                          @dc42 said in Accelerometer Usage:

                          @jbarros I'm glad you solved it. The M955 command no longer returns a response if it is successful, just like most other G- and M-code configuration commands

                          Thanks, I was unaware of that.
                          What is the rationale behind this change?

                          undefined 1 Reply Last reply 2 Sept 2021, 12:08 Reply Quote 0
                          • undefined
                            dc42 administrators @jbarros
                            last edited by dc42 9 Feb 2021, 15:52 2 Sept 2021, 12:08

                            @jbarros said in Accelerometer Usage:

                            What is the rationale behind this change?

                            It's normal that configuration commands when they succeed do not return a response. You can still get the details by sending M955 with no additional parameters just the P parameter.

                            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 Sept 2021, 12:59 Reply Quote 0
                            • undefined
                              jbarros @dc42
                              last edited by 2 Sept 2021, 12:59

                              @dc42 said in Accelerometer Usage:

                              @jbarros said in Accelerometer Usage:

                              What is the rationale behind this change?

                              It's normal that configuration commands when they succeed do not return a response. You can still get the details by sending M955 with no additional parameters.

                              Ok, I get that, I was assuming a response as seen on the other posts and as the accelerometer was ok I also never got an error message (lesson learned, try various situations)

                              Don't wan't to correct you but M955 needs the P parameter 😊

                              51b7b2a3-d293-44f2-bb7e-1498f65cdcb5-image.png

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