Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Two LIS3DH Three-Axis Accelerometer on a cartesian 3d printer

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    7
    379
    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.
    • A Former User?
      A Former User
      last edited by A Former User

      Is it possible to connect two Adafruit LIS3DH Three-Axis Accelerometer on a Duet 2 wifi with duex 5 expansion board?
      Will it work in RRF v3.4?
      I have voron switchwire ( slinging bed),
      Plan is to mount one on tool head and other one to bed, for input shaping.
      Thanks!

      dc42undefined Norderundefined 2 Replies Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @A Former User
        last edited by

        @voronswcroatia yes you can do that by giving them separate CS and INT pins, but you will only be able to activate one of them at a time. Use the M955 command to switch between them.

        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

        A Former User? 1 Reply Last reply Reply Quote 0
        • Norderundefined
          Norder @A Former User
          last edited by

          @voronswcroatia
          I also have two accelerometers for my printer.
          My plan is to permanently install them in the printer.
          At the moment only one is permanently connected, which I then change / reconnect from the print head to the print bed.
          It is currently held to the print head with magnets or clamped between the magnetic printing plate.
          The solution is also very simple and quick, but it doesn't look that nice. 😄

          In a subsequent total conversion (possibly next year) from linear rails to steel rods as guides and toothed belts instead of spindles, the acceleration sensors and USB3 sockets will be integrated into the new construction.
          One should be under the print bed and the other on the print head... just normal. 😄

          Then each sensor should have its own USB3 socket.
          A short piece of cable is routed from the Duet board to a USB3 socket on the printer housing.

          If I want to carry out an IS measurement, I simply connect the acceleration sensors with a standard USB3 cable, which I then simply reconnect depending on which axis I want to read out.

          I find it more comfortable than changing the config.g every time.

          Since the Duet can only read one acceleration sensor at a time, you should try to install the two acceleration sensors with the same orientation, then you don't have to set a second axis later in the IS plug-in.

          I think it's the most comfortable solution for a Cartesian 3D printer.

          Google Translate
          -- Original Text --

          Ich habe auch zwei Beschleunigungssensoren für meinen Drucker.
          Mein Vorhaben ist, sie fest im Drucker zu verbauen.
          Momentan ist nur einer fest angeschlossen den ich dann vom Druckkopf zum Druckbett wechsel / umstecke.
          Zur Zeit wird er mit Magneten am Druckkopf gehalten oder zwischen der magnetischen Druckplatte eingeklemmt.
          Die Lösung ist auch sehr einfach und schnell, sieht aber nicht so schön aus. 😄

          Bei einem späteren Totalumbau (eventuell nächstes Jahr) von Linearschienen auf Stahl-Rundstäbe als Führungen und Zahnriemen statt Spindeln, werden die Beschleunigungssensoren und USB3-Buchsen mit in die neue Konstruktion eingebunden.
          Einer soll unter das Druckbett und der andere an den Druckkopf... Normal eben. 😄

          Dann soll jeder Sensor seine eigene USB3-Buchse bekommen.
          Vom Duet-Board wird ein kurzes Stück Kabel zu einer USB3-Buchse am Druckergehäuse geführt.

          Wenn ich eine IS-Messung durchführen möchte, verbinde ich die Beschleunigungssensoren einfach mit einem handelsüblichen USB3 Kabel welches ich dann einfach umstecke je nachdem welche Achse ich auslesen lassen möchte.

          Ich finde es ist komfortabler als jedes mal die config.g zu ändern.

          Da das Duet immer nur einen Beschleunigungssensor auslesen kann, sollte man versuchen die beiden Beschleunigungssensoren mit der gleichen Ausrichtung zu verbauen, dann braucht später im IS-PlugIn auch keine zweite Achse einstellen.

          Ich denke es ist die komfortabelste Lösung für einen kartesischen 3D-Drucker.

          DDA5X... 0.9° Stepper... Linearrails... Duet 2 Wifi... PT100 Board... Duet IR-Probe... Dyze Pro Kit up to 500°C.. etc
          Thingiverse

          A Former User? 1 Reply Last reply Reply Quote 0
          • A Former User?
            A Former User @dc42
            last edited by A Former User

            @dc42
            Thanks!!
            can you make some example code, and I assume that other accelerometer goes on duex5 expansion board?🙌🙌
            Can RRF v3.4 combine data from both in input shape plugin?

            dc42undefined 1 Reply Last reply Reply Quote 0
            • A Former User?
              A Former User @Norder
              last edited by

              @Norder Thanx for sharing your solution, at this stage of RRF v3.4 I think that you solve the problem👍☀️

              1 Reply Last reply Reply Quote 1
              • A Former User?
                A Former User
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators @A Former User
                  last edited by

                  @voronswcroatia said in Two LIS3DH Three-Axis Accelerometer on a cartesian 3d printer:

                  @dc42
                  Thanks!!
                  can you make some example code, and I assume that other accelerometer goes on duex5 expansion board?🙌🙌
                  Can RRF v3.4 combine data from both in input shape plugin?

                  You can only have one accelerometer configured on a Duet 2 system at a time (even if you have ore than one connected); and the IS plugin is not designed to support more than one accelerometer at a time.

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