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

    Configuration for BLTouch

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    12
    1.4k
    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.
    • droftartsundefined
      droftarts administrators @Weevil
      last edited by

      @Weevil You don't need to set a modulation pin, that's for probes that need modulation, which the BLTouch does not, so leave it unassigned. Perhaps the config tool could be clearer on this. You only need to set the 'Input Pin' and 'PWM Control Channel (BLTouch only)', then select 'BLTouch' in Endstops > Z Probe > Z Probe Type. Doing this generates this:

      ; Z-Probe
      M950 S0 C"io7.out"                           ; create servo pin 0 for BLTouch
      M558 P9 C"io7.in" H5 F120 T6000              ; set Z probe type to bltouch and the dive height + speeds
      G31 P500 X0 Y0 Z2.5                          ; set Z probe trigger value, offset and trigger height
      

      As others have suggested in other threads, change G31 P500 to G31 P25 to improve sensitivity.

      You can connect a BLTouch to any pin I think, but as it says in the first point here,

      On Duet 3 it is one of io4.out, io5.out or io7.out. If you use one of these pin names, you will not need to invert the output.

      For wiring, see https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_Duet_Num_3
      For more details on setting up BLTouch with RRF3, see https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_Software_setup_RepRapFirmware_Num_3

      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

      1 Reply Last reply Reply Quote 2
      • Danalundefined
        Danal
        last edited by Danal

        This works for me on a Duet 3:

        M558 K0 P9 C"^io4.in" H5 A5 T6000 S0.02   ; Z probe BLtouch - Set the height of the bed when homing G28.  Combined with content of bed.g as invoked by G32, levels bed. Also used for Mesh.  
        		                          ; Hn = dive height
        				          ;   A bigger dive height prevents a situation where the bed is out of alignment by more than the dive height
                                                  ;   on any corner, which can crash the hot-end into the bed while moving the head in XY.
                                                  ;   Probing speed and travel speed are similarly reduced in case the Z probe isn't connected properly (or
                                                  ;   disconnects later after moving to a point) giving the user more time to stop.
                                                  ; An = Number of times to probe each point. 
                                                  ; Tnnn = Travel speed between probe points. 
                                                  ; Snnn = Tolerance when probing multiple times. Two readings inside this window and we move on. 
        M950 S0 C"^io4.out"                       ; Servo Control Pin for BLtouch. 
        

        Delta / Kossel printer fanatic

        Weevilundefined 1 Reply Last reply Reply Quote 2
        • Weevilundefined
          Weevil @Danal
          last edited by

          @Danal Ok, I tried your setting. The probe now lights up but it does not deploy or retract.

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @Weevil
            last edited by

            @Weevil read this? https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_Commissioning_Testing

            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

            Weevilundefined 1 Reply Last reply Reply Quote 1
            • Weevilundefined
              Weevil @droftarts
              last edited by

              @droftarts The test did not work. Upon powering up the board, the BLTouch deploys and retracts several times which I assume is a self-test. However, I cannot get it to deploy or retract. I am using this code:

              M950 S0 C"io7.out"
              M558 P9 C"io7.in" H5 F120 T6000
              G31 P500 X0 Y0 Z2.5

              droftartsundefined DIY-O-Sphereundefined 2 Replies Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @Weevil
                last edited by

                @Weevil that means it’s getting power. Check continuity on your wiring, and that its connected to the correct pins. Maybe post a picture. What M280 command are you sending to test? If the BLTouch was not setup correctly in the config tool when you downloaded config and other files, the deploy and retract macros will be incorrect.

                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

                1 Reply Last reply Reply Quote 0
                • DIY-O-Sphereundefined
                  DIY-O-Sphere @Weevil
                  last edited by DIY-O-Sphere

                  @Weevil

                  https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_Commissioning_Testing

                  That are the old codes for RRF2

                  You have to replace P3 by P0 and omit I1
                  So for RRF3 the codes are
                  M280 P0 S10
                  M280 P0 S90

                  Edit:
                  Or instead you can use M401 and M402 (for Typ P9 in M558)

                  (UTC+1)

                  Weevilundefined droftartsundefined 2 Replies Last reply Reply Quote 0
                  • Weevilundefined
                    Weevil @DIY-O-Sphere
                    last edited by

                    @DIY-O-Sphere Thanks, the tests confirm the BLTouch can deploy and retract on command. However, when I launch deployprobe.g from the web interface nothing happens yet the code matches:

                    ; deployprobe.g
                    ; called to deploy a physical Z probe
                    ;
                    ; generated by RepRapFirmware Configuration Tool v2.1.8 on Sat Feb 22 2020 12:08:41 GMT-0800 (Pacific Standard Time)
                    M280 P0 S10 ; deploy BLTouch

                    The same issue happens with retractprobe.g

                    Perhaps I am over thinking it as the code clearly works if I enter it as a single line command.

                    1 Reply Last reply Reply Quote 0
                    • Danalundefined
                      Danal
                      last edited by

                      The macros have no upper case letters, and are in the /sys directory? (Not in the macro part of DWC... just files in 'system').

                      Delta / Kossel printer fanatic

                      1 Reply Last reply Reply Quote 0
                      • droftartsundefined
                        droftarts administrators @DIY-O-Sphere
                        last edited by

                        @DIY-O-Sphere said in Configuration for BLTouch:

                        @Weevil
                        https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_Commissioning_Testing

                        That are the old codes for RRF2

                        You have to replace P3 by P0 and omit I1

                        Good point, I’ll update the docs.

                        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

                        Danalundefined 1 Reply Last reply Reply Quote 0
                        • Danalundefined
                          Danal @droftarts
                          last edited by

                          @droftarts said in Configuration for BLTouch:

                          Good point, I’ll update the docs.

                          Already done.

                          Delta / Kossel printer fanatic

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