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

Wire digital controlled z-probe to z-probe header?

Scheduled Pinned Locked Moved
Duet Hardware and wiring
2
19
2.2k
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
    dragonn
    last edited by 19 Feb 2018, 16:51

    I have a modified bltouch witch is driven by a digital signal (0/1) not PWM. Can I use the Z_PROBE_MOD to control it? I am not sure if this is possible. As far I understand I need the mode 5 https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe I am right?

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 19 Feb 2018, 17:32

      You might be able to do that, because in mode 5 the MOD pin is driven high during probing moves and low at other times.

      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
      • undefined
        dragonn
        last edited by 19 Feb 2018, 18:24

        Sounds good, one question more - can I take 5V from the EXT 5V header? I tried putting jumper on the EXT 5V EN but I didn't measure 5V output on the header. I know it is for inputting the 5V not output, is they a diode with stops the voltage getting out?

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 19 Feb 2018, 22:17

          No, you can't take 5V from that header because there is a diode in between. Take it from the expansion header instead.

          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
          • undefined
            dragonn
            last edited by 21 Feb 2018, 17:41

            Do I need put something into deployprobe.g? The input of the probe works fine but it isn't deployed. My endstop settings in config.g is:

            [[g-code]]
            ; Endstops
            M574 X2 Y2 S1                             ; Set active high endstops
            M574 Z1 S2                                ; Set endstops controlled by probe
            M558 P5 H5 F120 T6000 I1                  ; Set Z probe type to switch and the dive height + speeds
            G31 P600 X10 Y0 Z2.5                      ; Set Z probe trigger value, offset and trigger height
            M557 X10:290 Y10:290 S20                  ; Define mesh grid
            
            
            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators
              last edited by 21 Feb 2018, 19:44

              Please explain what you mean by "The input of the probe works fine but it isn't deployed.".

              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
              • undefined
                dragonn
                last edited by 21 Feb 2018, 20:34

                By input I mean that the status is read. When I pull the bltouch probe pin out manually z-probe sensor in ui changes it reading from 1000 to 0. But when I do Home Z they is no signal on MOD pin with puts the pin out (remember this is a moded bltouch - a high signal pull the pin out.

                1 Reply Last reply Reply Quote 0
                • undefined
                  dc42 administrators
                  last edited by 21 Feb 2018, 20:59

                  Are you using a G30 command to home Z?

                  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
                  • undefined
                    dragonn
                    last edited by 21 Feb 2018, 21:19

                    ohhh… yeah when using g30 it works fine. So I need to modify homez.g and homeall.g to use G30, I am right?

                    [[g-code]]
                    G91               ; relative positioning
                    G1 Z5 F6000       ; lift Z relative to current position
                    G1 S1 Z-355 F1800 ; move Z down until the switch triggers
                    G1 Z5 F6000       ; go back a few mm
                    G1 S1 Z-355 F100  ; move slowly to Z axis endstop once more (second pass)
                    G92 Z2.5          ; set Z position to trigger height
                    
                    ```This is my homez.g now. How do I make double probing with G30? Not sure how since G30 doesn't have F parameter as I see.
                    1 Reply Last reply Reply Quote 0
                    • undefined
                      dc42 administrators
                      last edited by 22 Feb 2018, 06:52

                      See https://duet3d.dozuki.com/Wiki/ConfiguringRepRapFirmwareCartesianPrinter#Section_Homing_Z.

                      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
                      • undefined
                        dragonn
                        last edited by 22 Feb 2018, 15:13

                        Hmmm ok, G30 turns now the Z_MOD but only if the endstop isn't triggered and in my solution the endstop is triggered before Z_MOD goes high. When Z_MOD goes high the pin is pushed out and the endstop goes low so it is ready to trigger. Is they anyway to ignore "Error: Z probe already triggered at start of probing move"? I hope.

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          dc42 administrators
                          last edited by 22 Feb 2018, 18:40

                          Please post the gcode sequence you are using and explain what happens when.

                          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
                          • undefined
                            dragonn
                            last edited by 22 Feb 2018, 18:51

                            [[language]]
                            G91                ; relative positioning
                            G1 Z5 F200 	   ; raise head 4mm to ensure it is above the Z probe trigger height
                            G90 		   ; back to absolute mode
                            G1 X155 Y155 F2000 ; put head over the centre of the bed, or wherever you want to probe
                            G30 		   ; lower head, stop when probe triggered and set Z to trigger height
                            G92 Z2           ; set Z position to trigger height
                            G90;
                            G1 Z0 F200
                            G1 Z5 F200
                            
                            ```My homez.g. The problem is my bltouch isn't triggered only when Z_MOD is HIGH. When G30 runs it is triggered and shows an error. Now G30 works I assume this way:
                            1\. Check if probe isn't triggered
                            2\. If not pull Z_MOD pin high
                            3\. Probe z-height.
                            
                            I need to change it behavior to this:
                            1\. pull Z_MOD high
                            2\. check if probe isn't triggered
                            3\. Probe z-height.
                            1 Reply Last reply Reply Quote 0
                            • undefined
                              dragonn
                              last edited by 25 Mar 2018, 11:25

                              Bump, any update on that?
                              I made a video, maybe it will explain it better what is happening:
                              https://www.dropbox.com/s/hwvtikp42t1pcfm/VID_20180325_123803.3gp?dl=0
                              as you can see, the first homing failed. Z_MOD isn't pulled high because the probe is already triggered. The second time i pulled the pin by hand and now the homing is working like expected - the Z_MOD is pulled high (bltouch lights up).

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                dc42 administrators
                                last edited by 25 Mar 2018, 11:58

                                Does adding a delay before probing (R parameter in M558) make any difference?

                                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
                                • undefined
                                  dragonn
                                  last edited by 25 Mar 2018, 12:04

                                  No, I have already 2s delay. It is added only when I pull the pin manual before probing.

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    dc42 administrators
                                    last edited by 25 Mar 2018, 12:49

                                    I think you will need to connect that control wire to a pin on the expansion connector and control it using M42 commands in deployprobe.g and retractprobe.g. The problem is that RRF doesn't set the MOD pin high until the probing actually starts, which is too late for your probe. I can't change that behaviour without breaking other types of sensor.

                                    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
                                    • undefined
                                      dragonn
                                      last edited by 25 Mar 2018, 15:18

                                      Hmmmm what if I would add a transistor to the Z_MIN to block the signal when Z_MOD is low? I think this should work. I don't like the idea to wiring to the expansion connector because it looks ugly :D.

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        dc42 administrators
                                        last edited by 25 Mar 2018, 17:43

                                        You may need to add a delay to that circuit before the Z probe IN pin is allowed to go low, but I am sure that something like that could be made to work.

                                        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