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

inverting Z-probe pin

Scheduled Pinned Locked Moved
Beta Firmware
6
22
1.7k
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
    celulari
    last edited by 27 Mar 2020, 12:47

    Hello!!!

    I'm using a precision piezo for Z probe on my Duet 2 Wifi. On RRF version 3 i've managed to invert the signal of the piezo using the "I" parameter (I1). since RRF 3.01-RC2 i haven't be able to invert the signal using "I1" as per documentation, instead i need to invert the pin using a "!" before the pin name, but isn't working for me.

    here's how i'm doing it

    M558 P1 C"!zprobe.in+zprobe.mod" H5 R1 F420 T6000
    

    is something missing here?

    thanks 😊

    undefined 1 Reply Last reply 27 Mar 2020, 14:35 Reply Quote 0
    • ?
      A Former User
      last edited by 27 Mar 2020, 12:49

      Don't you have a M950 command where you can invert the pin?

      undefined 2 Replies Last reply 27 Mar 2020, 13:02 Reply Quote 0
      • undefined
        celulari @A Former User
        last edited by 27 Mar 2020, 13:02

        @bearer said in inverting Z-probe pin:

        M950 com

        Wow, that's new to me 😌 😌 😌
        i have some M950 for endstops, but not for the zprobe.in

        1 Reply Last reply Reply Quote 0
        • undefined
          celulari @A Former User
          last edited by 27 Mar 2020, 13:14

          @bearer can't find any examples of how can i do that... 😞

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by 27 Mar 2020, 13:20

            Maybe those are already defined for the Duet2; not too familiar with Duet 2 + RRF and just sort of assumed it would be a M950 thing if M558 didn't accept the!

            Maybe someone will have another idea.

            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators @celulari
              last edited by 27 Mar 2020, 14:35

              @celulari said in inverting Z-probe pin:

              Hello!!!

              I'm using a precision piezo for Z probe on my Duet 2 Wifi. On RRF version 3 i've managed to invert the signal of the piezo using the "I" parameter (I1). since RRF 3.01-RC2 i haven't be able to invert the signal using "I1" as per documentation, instead i need to invert the pin using a "!" before the pin name, but isn't working for me.

              here's how i'm doing it

              M558 P1 C"!zprobe.in+zprobe.mod" H5 R1 F420 T6000
              

              is something missing here?

              You are running the piezo in analog mode (P1 in the M558 command). Is that intentional? It might be that pin level inversion isn't working in analog mode.

              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 27 Mar 2020, 14:42 Reply Quote 0
              • undefined
                celulari @dc42
                last edited by 27 Mar 2020, 14:42

                @dc42 said in inverting Z-probe pin:

                You are running the piezo in analog mode (P1 in the M558 command). Is that intentional? It might be that pin level inversion isn't working in analog mode.

                Yes, that's intentional, because my piezo is under constat preasure and when i switch to digital mode is triggered constantly. i'been using it without troubles on RRF 3.0 using the "I1" parameter but i have no luck inverting the signal on newer versions.

                1 Reply Last reply Reply Quote 0
                • undefined
                  dc42 administrators
                  last edited by 27 Mar 2020, 14:49

                  I'll enable inversion of analog pins in 3.01-RC5.

                  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 undefined 2 Replies Last reply 27 Mar 2020, 14:50 Reply Quote 2
                  • undefined
                    celulari @dc42
                    last edited by 27 Mar 2020, 14:50

                    @dc42 said in inverting Z-probe pin:

                    I'll enable inversion of analog pins in 3.01-RC5.

                    THANK YOU!!!

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      gtj0 @dc42
                      last edited by 27 Mar 2020, 14:56

                      @dc42 said in inverting Z-probe pin:

                      I'll enable inversion of analog pins in 3.01-RC5.

                      Thanks. I need that as well.

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        tekkydave
                        last edited by 31 Mar 2020, 10:53

                        Just tried 3.01-RC5 and my analog piezo probe is no longer working. OK in 3.01-RC4.

                        In RC4 it sits at 525 when untriggered but in RC5 it sits at 497 and does not respond to pressure on the probe.

                        Defined like this

                        M558 P1 C"^!zprobe.in" R0.5 H3 F360 T9000 A5 S0.03 ; P1 = Analogue mode
                        G31 X0 Y0 Z-0.1 P530 ; X, Y, Z offsets, P530 = trigger threshold

                        Do I need to change anything for RC5?

                        undefined 1 Reply Last reply 31 Mar 2020, 12:57 Reply Quote 0
                        • undefined
                          tekkydave
                          last edited by 31 Mar 2020, 12:54

                          Works OK in Digital Mode in 3.01RC5

                          M558 P8 C"^!zprobe.in" R0.5 H3 F240 T9000 A5 S0.03 ; P8 = Digital mode (unfiltered)
                          G31 X0 Y0 Z-0.1 P100 ; X, Y, Z offsets, P100 = debounce interval

                          Something has changed between RC4 and RC5. I only have one probe which should default to probe 0 so nothing to do with the new K parameter.

                          undefined 1 Reply Last reply 31 Mar 2020, 13:10 Reply Quote 0
                          • undefined
                            celulari @tekkydave
                            last edited by 31 Mar 2020, 12:57

                            @tekkydave i'm using mine in analog mode and is working as intended... Funny thing, never managed to work in digital mode

                            undefined 1 Reply Last reply 31 Mar 2020, 13:12 Reply Quote 0
                            • undefined
                              droftarts administrators @tekkydave
                              last edited by 31 Mar 2020, 13:10

                              @tekkydave The implication from the couple of posts before your first one is that analogue pins can't be inverted, so the "!" in your initial config wasn't doing anything. Try without it, as the inversion works as of RC5.

                              Ian

                              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                              undefined 2 Replies Last reply 31 Mar 2020, 13:15 Reply Quote 0
                              • undefined
                                tekkydave @celulari
                                last edited by tekkydave 31 Mar 2020, 13:12

                                @celulari said in inverting Z-probe pin:

                                @tekkydave i'm using mine in analog mode and is working as intended... Funny thing, never managed to work in digital mode

                                Are you using the PP V2.85 board? If so remember you need to move the connector to the next set of pins in from the edge to pick up the 'D' output. Apologies if you already knew that but I keep forgetting myself 🙂

                                Mine works great in analog mode except in 3.01RC5. I prefer analog as you don't need to fiddle with the crappy pots on the pcb. I had a V2 pcb and the pots fell apart after about 20 adjustments. The only downside is the 1/3 slowdown but @dc42 said this in a previous post:

                                " it's likely that in a future version of RRF3 I will remove the automatic slowdown and replace it with 2 configurable feedrates in the M558 command: a fast feedrate for initial probing, and a slower feedrate for the second and subsequent probes, for those types of sensor that benefit from slow probing."

                                undefined 1 Reply Last reply 31 Mar 2020, 13:45 Reply Quote 0
                                • undefined
                                  tekkydave @droftarts
                                  last edited by 31 Mar 2020, 13:15

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    tekkydave @droftarts
                                    last edited by 31 Mar 2020, 13:26

                                    @droftarts said in inverting Z-probe pin:

                                    @tekkydave The implication from the couple of posts before your first one is that analogue pins can't be inverted, so the "!" in your initial config wasn't doing anything. Try without it, as the inversion works as of RC5.

                                    Ian

                                    That fixed it - many thanks 🙂

                                    undefined 1 Reply Last reply 31 Mar 2020, 14:40 Reply Quote 0
                                    • undefined
                                      celulari @tekkydave
                                      last edited by 31 Mar 2020, 13:45

                                      @tekkydave said in inverting Z-probe pin:

                                      Are you using the PP V2.85 board? If so remember you need to move the connector to the next set of pins in from the edge to pick up the 'D' output. Apologies if you already knew that but I keep forgetting myself 🙂

                                      Mine works great in analog mode except in 3.01RC5. I prefer analog as you don't need to fiddle with the crappy pots on the pcb. I had a V2 pcb and the pots fell apart after about 20 adjustments. The only downside is the 1/3 slowdown but @dc42 said this in a previous post:

                                      " it's likely that in a future version of RRF3 I will remove the automatic slowdown and replace it with 2 configurable feedrates in the M558 command: a fast feedrate for initial probing, and a slower feedrate for the second and subsequent probes, for those types of sensor that benefit from slow probing."

                                      I didn't knew about that! thanks, i will try, but now is working fine with RC5 as i can now invert the analog pin

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        droftarts administrators @tekkydave
                                        last edited by 31 Mar 2020, 14:40

                                        @tekkydave said in inverting Z-probe pin:

                                        That fixed it - many thanks

                                        Funny, because I didn't think it would! It's probably the pull up resistor ^ that you 'needed' to stop it being permanently triggered.

                                        Ian

                                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                                        undefined 1 Reply Last reply 31 Mar 2020, 14:48 Reply Quote 0
                                        • undefined
                                          tekkydave @droftarts
                                          last edited by 31 Mar 2020, 14:48

                                          @droftarts said in inverting Z-probe pin:

                                          @tekkydave said in inverting Z-probe pin:

                                          That fixed it - many thanks

                                          Funny, because I didn't think it would! It's probably the pull up resistor ^ that you 'needed' to stop it being permanently triggered.

                                          Ian

                                          The ! must have been in there from an earlier release but had become redundant. Until RC5 came along and actually inverted the input, stopping it from working.
                                          The pullup (^) is only needed in digital mode. It probably doesn't do anything in analog mode; why would you pull up an analog input?

                                          undefined 1 Reply Last reply 31 Mar 2020, 14:50 Reply Quote 0
                                          8 out of 22
                                          • First post
                                            8/22
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA