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

    FSR Controller Module for Auto Bed Leveling

    Scheduled Pinned Locked Moved
    Third-party add-ons
    force sensitive resistor bed leveling
    5
    15
    2.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.
    • T3P3Tonyundefined
      T3P3Tony administrators @SnowCrash
      last edited by

      @snowcrash Yeah! great write up and application. I assume J1 is the output. What was the reasoning with not having that have same pinout as the Duet probe header?:

      0_1531782212771_008dcb7f-6c02-46f3-92fe-a8be9be4297f-image.png

      www.duet3d.com

      SnowCrashundefined 1 Reply Last reply Reply Quote 0
      • SnowCrashundefined
        SnowCrash @T3P3Tony
        last edited by SnowCrash

        @t3p3tony said in FSR Controller Module for Auto Bed Leveling:

        @snowcrash Yeah! great write up and application. I assume J1 is the output. What was the reasoning with not having that have same pinout as the Duet probe header?:

        0_1531782212771_008dcb7f-6c02-46f3-92fe-a8be9be4297f-image.png

        Thank you very much, @T3P3Tony!

        J1 is indeed the output (or general I/O) of the module.

        You're right that ideally the module would have had an identical pinout to that of the Duet header.

        For the power lines, I considered using the 3V3 from the header, but eventually opted to go with the 5V provided by the adjacent header (Panel Due) as I'm not using it and wanted to have the Atmega328P's running at max speed (16MHz) which requires a 5V supply for the chip.

        16MHz is almost certainly a total overkill and 8MHz would have most likely been more than enough for this application (though I haven't tested it in practice). Nevertheless, I figured it's a relatively easy tweak to switch from one supply to the other if the need arises, and the 5V supply was so close by I just couldn't resist 🙂

        Regarding the z_probe_mod pin - that's a great point and a complete oversight on my part! I Thanks for bringing it to my attention! I read the description of that pin before, but for some reason, only the analog option stuck in my mind and I completely forgot it could have a digital output as well. If the z_mod_probe pin can be controlled with gcode like pin 50 on the expansion board, then it should definitely be used for the on/off control pin of the module.

        Is it possible to use the M42 command to control this pin? And, if so, what would be its number?

        M42 P? I0 - Turn module off
        
         M42 P? I1 - Turn module on
        

        Btw, is there a table/diagram mapping the all the hardware pins and corresponding software numbers?

        wilrikerundefined 1 Reply Last reply Reply Quote 0
        • wilrikerundefined
          wilriker @SnowCrash
          last edited by

          @snowcrash said in FSR Controller Module for Auto Bed Leveling:

          Btw, is there a table/diagram mapping the all the hardware pins and corresponding software numbers?

          I think you are looking for Duet 2 Pinout Table?!

          Manuel
          Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
          with probably always latest firmware/DWC (incl. betas or self-compiled)
          My Tool Collection

          SnowCrashundefined 1 Reply Last reply Reply Quote 2
          • SnowCrashundefined
            SnowCrash @wilriker
            last edited by SnowCrash

            @wilriker said in FSR Controller Module for Auto Bed Leveling:

            @snowcrash said in FSR Controller Module for Auto Bed Leveling:

            Btw, is there a table/diagram mapping the all the hardware pins and corresponding software numbers?

            I think you are looking for Duet 2 Pinout Table?!

            Yep, thanks @wilriker!

            This table would make me think I'm looking to use pin 34 (z_probe_mod), but then I looked up the original pin I was planning on using and came across something strange:

            I was basing my original choice of pin 50 (CS5) on the documentation here, which has this table:

            0_1531833458925_logical_pins_table.png

            But the table you referred me to seems to have an entirely different designation for that pin (24 instead of 50):

            0_1531833565782_pin_cs5.png

            What am I missing here?

            wilrikerundefined 1 Reply Last reply Reply Quote 0
            • wilrikerundefined
              wilriker @SnowCrash
              last edited by

              @snowcrash said in FSR Controller Module for Auto Bed Leveling:

              What am I missing here?

              Aaaand that's the point where I am completely out again. 😂 I just remembered that I saw this table once but I have not yet really needed it, so no clue on why there exist different tables with different combinations of pins and numberings, sorry.

              Manuel
              Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
              with probably always latest firmware/DWC (incl. betas or self-compiled)
              My Tool Collection

              SnowCrashundefined 1 Reply Last reply Reply Quote 0
              • SnowCrashundefined
                SnowCrash @wilriker
                last edited by SnowCrash

                @wilriker said in FSR Controller Module for Auto Bed Leveling:

                @snowcrash said in FSR Controller Module for Auto Bed Leveling:

                What am I missing here?

                Aaaand that's the point where I am completely out again. 😂 I just remembered that I saw this table once but I have not yet really needed it, so no clue on why there exist different tables with different combinations of pins and numberings, sorry.

                Ha! Thanks for sharing what you do know about this 🙂

                @T3P3Tony, could you please help with the pin numbering in this context? especially, what numbers should I use to activate/deactivate pins 'z_probe_mod' and 'cs5' with M42 command's P parameter?

                1 Reply Last reply Reply Quote 0
                • SnowCrashundefined
                  SnowCrash
                  last edited by

                  Looks like @T3P3Tony is busy.

                  Does anyone else knows the answer to the above question about the pin destination numbers?

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

                    See https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins.

                    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

                    SnowCrashundefined 1 Reply Last reply Reply Quote 0
                    • SnowCrashundefined
                      SnowCrash @dc42
                      last edited by SnowCrash

                      @dc42 said in FSR Controller Module for Auto Bed Leveling:

                      See https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins.

                      Sorry, @dc42, but that's not really helpful - please read the last few posts and you'll see what I mean.

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

                        @snowcrash said in FSR Controller Module for Auto Bed Leveling:

                        @dc42 said in FSR Controller Module for Auto Bed Leveling:

                        See https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins.

                        Sorry, @dc42, but that's not really helpful - please read the last few posts and you'll see what I mean.

                        I added two rows to that table earlier today. You will be able to control the Z probe Mod pin via M42 in the next 2.01beta firmware, but bear in mind that it is driven automatically in some Z probe modes.

                        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

                        SnowCrashundefined 1 Reply Last reply Reply Quote 0
                        • SnowCrashundefined
                          SnowCrash @dc42
                          last edited by

                          @dc42 said in FSR Controller Module for Auto Bed Leveling:

                          @snowcrash said in FSR Controller Module for Auto Bed Leveling:

                          @dc42 said in FSR Controller Module for Auto Bed Leveling:

                          See https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins.

                          Sorry, @dc42, but that's not really helpful - please read the last few posts and you'll see what I mean.

                          I added two rows to that table earlier today. You will be able to control the Z probe Mod pin via M42 in the next 2.01beta firmware, but bear in mind that it is driven automatically in some Z probe modes.

                          Thanks for this.

                          So, assuming I have version 2.01 of the firmware, I can use: M42 P60 S0/S1 to control pin CS5, and M42 P65 S0/S1 to control pin z_mod_probe? Is this correct?

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

                            @snowcrash said in FSR Controller Module for Auto Bed Leveling:

                            So, assuming I have version 2.01 of the firmware, I can use: M42 P60 S0/S1 to control pin CS5, and M42 P65 S0/S1 to control pin z_mod_probe? Is this correct?

                            Yes, but you will have to wait for 2.01beta3 to use M42 P65.

                            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