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

    Arduino as Z-Probe questions

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    23
    902
    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 @AdrAs
      last edited by dc42

      @AdrAs said in Arduino as Z-Probe questions:

      I'm currently working on a project which involves an Arduino microcontroller as probe interface. Arduino is generally running on 5V. Is it possible to use it to trigger the Z_PROBE_IN pin using the Arduino? How would I go about it? And what is the Z_PROBE_MOD pin for?

      Unless it's an old Duet, the Z probe input pin can tolerate up to 30V so you can connect the Arduino output to it directly.

      Whether you can use Z_PROBE_MOD to control a servo depends on which Duet you have.

      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

      AdrAsundefined 1 Reply Last reply Reply Quote 1
      • AdrAsundefined
        AdrAs @dc42
        last edited by AdrAs

        @dc42 I've got a Duet 2 Wifi

        Unless it's an old Duet, the Z probe input pin can tolerate up to 30V so you can connect the Arduino output to it directly.

        What do you consider as an old Duet?

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

          Duet WiFi version 1.04 has 30V tolerance on the Z probe pin. Older Duet WiFis are not.

          On Duet WiFi the Z Mod pin is not PWM capable, so it cannot be used to drive a servo.

          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

          AdrAsundefined 1 Reply Last reply Reply Quote 0
          • AdrAsundefined
            AdrAs
            last edited by

            Many thanks for that clarification! I've got a 1.02 wifi, so I guess I need to work with resistors

            1 Reply Last reply Reply Quote 0
            • AdrAsundefined
              AdrAs @dc42
              last edited by

              @dc42 said in Arduino as Z-Probe questions:

              Duet WiFi version 1.04 has 30V tolerance on the Z probe pin. Older Duet WiFis are not.

              I've got a 1.02 WIFI, so I guess this means the Z probe pin can only handle 3.3V, right?

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

                @AdrAs said in Arduino as Z-Probe questions:

                I've got a 1.02 WIFI, so I guess this means the Z probe pin can only handle 3.3V, right?

                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

                1 Reply Last reply Reply Quote 0
                • alankilianundefined
                  alankilian
                  last edited by

                  I learned some new stuff about the Duet series boards today!

                  I love days like this.

                  SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                  1 Reply Last reply Reply Quote 0
                  • AdrAsundefined
                    AdrAs
                    last edited by

                    That's great. And I learned, that I skip all the arduino 5V conversion stuff, and just go for an ESP module for my project 🙂 More Mhz, more memory, and free WIFI I'll never use 😄

                    1 Reply Last reply Reply Quote 0
                    • alankilianundefined
                      alankilian
                      last edited by alankilian

                      They also make 3.3 Volt Arduino-compatible boards if you want to stick with that.

                      (And a Trinket USB-attached Arduino, although I've had problems with trinkets before.)

                      SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                      AdrAsundefined 1 Reply Last reply Reply Quote 0
                      • AdrAsundefined
                        AdrAs @alankilian
                        last edited by

                        @alankilian Thanks, they are a bit too slow though. I need at least 16 Mhz

                        fcwiltundefined alankilianundefined 2 Replies Last reply Reply Quote 0
                        • fcwiltundefined
                          fcwilt @AdrAs
                          last edited by

                          @AdrAs said in Arduino as Z-Probe questions:

                          @alankilian Thanks, they are a bit too slow though. I need at least 16 Mhz

                          There are several Arduino boards that use 3.3 volts and have 16 MHz or better clock speeds.

                          I was looking at one the other day that had 1M of program memory, 256KB of ram and a clock speed of 64MHz.

                          Frederick

                          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                          1 Reply Last reply Reply Quote 0
                          • alankilianundefined
                            alankilian @AdrAs
                            last edited by

                            @AdrAs said in Arduino as Z-Probe questions:

                            @alankilian Thanks, they are a bit too slow though. I need at least 16 Mhz

                            There are SOME of Arduino-compatible 3.3 Volt boards that run fast available.

                            SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                            AdrAsundefined 1 Reply Last reply Reply Quote 0
                            • AdrAsundefined
                              AdrAs @alankilian
                              last edited by

                              @alankilian Thanks for the list. However I couldn't find anything which is small, running on 3.3v and has >16 mhz. Nevermind though, The ESP should arrive today and suits all my needs for now.

                              fcwiltundefined 1 Reply Last reply Reply Quote 0
                              • fcwiltundefined
                                fcwilt @AdrAs
                                last edited by

                                @AdrAs said in Arduino as Z-Probe questions:

                                @alankilian Thanks for the list. However I couldn't find anything which is small, running on 3.3v and has >16 mhz. Nevermind though, The ESP should arrive today and suits all my needs for now.

                                Did you see this one:

                                nano-33-ble

                                No WiFi but even smaller than the ESP and runs at a respectable 64 MHz.

                                Frederick

                                Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                1 Reply Last reply Reply Quote 0
                                • zaptaundefined
                                  zapta
                                  last edited by zapta

                                  For 3.3v Arcuino the SMT32 blue/blackpill are a good choice. Inexpensive, good documentation, support hardware debugger, support the Arduino framework, have USB C connector (e.g. for serial output), have a builtin DFU bootloader (for dongle-less field programming), and are compatible with platformio (great dev experience).

                                  E.g.
                                  https://www.amazon.com/Aideepen-Programming-Emulator-Downloader-STM32F103C8T6/dp/B07WRL3DF8

                                  https://www.aliexpress.com/item/4001049840288.html

                                  1 Reply Last reply Reply Quote 1
                                  • AdrAsundefined
                                    AdrAs
                                    last edited by

                                    @fcwilt @zapta

                                    Thank you guys, both look awesome.

                                    1 Reply Last reply Reply Quote 0
                                    • AdrAsundefined
                                      AdrAs
                                      last edited by AdrAs

                                      @dc42 I've got another question I hope you can help me.

                                      • When are the deployprobe and retractprobe macros executed? Only when a BLTouch is connected, or for the other probe types as well?
                                      dc42undefined 1 Reply Last reply Reply Quote 0
                                      • dc42undefined
                                        dc42 administrators @AdrAs
                                        last edited by

                                        @AdrAs said in Arduino as Z-Probe questions:

                                        @dc42 I've got another question I hope you can help me.

                                        • When are the deployprobe and retractprobe macros executed? Only when a BLTouch is connected, or for the other probe types as well?

                                        For BLTouch they are executed before and after every probing move. For other probe types, when running G29 S0 they are executed at the start and the end of the entire probing operation. They are also executed when you run M401 and M402.

                                        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
                                        • AdrAsundefined
                                          AdrAs
                                          last edited by

                                          Ok, thank you very much!

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