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

    BLTouch + Duet Wifi

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    6
    16
    4.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.
    • Sniffleundefined
      Sniffle
      last edited by

      I have them setup in custom macros on the web interface, so that If i need them they are they are easily accessed without the need to type gcodes.

      1 Reply Last reply Reply Quote 0
      • ThePigSlayerundefined
        ThePigSlayer
        last edited by

        Thanks for the correction hendricks.

        You can setup macros but you will also need to edit the retract and deploy system files as those are what m402 and m401 call.

        Anyways, here is my bed.g file, which I call by just clicking the auto bed compensation button, or G32.

        M557 X50:150 Y50:150 S25    ; Define grid
        
        T0                          ; Select tool 0
        G91 			    ; Relative mode   
        G1 Z10 F150		    ; Make sure everything clears the bed                     
        
        ; ------------ Home Z ---------------------
        
        G90                         ; Absolute mode
        G1 X110.5 Y72 Z6 F4000      ; Home at center of bed, my offsets are X-10.5 and Y28
        M401                        ; Deploy probe
        G30                         ; Home Z-axis
        
        ;----------- Mesh Level ------------------
        
        G29                         ; Start mesh level
        M374                        ; Save results, but this might not be necessary 
        M402                        ; Retract probe 
        
        G1 X20 Y20 Z10 F3000        ; Dock position
        
        
        1 Reply Last reply Reply Quote 0
        • FrankNPrinterundefined
          FrankNPrinter
          last edited by

          I am settting up my bl touch now. appears to be wired and working correctly i jest can't seem to find where to enter the off set for the probe vs print head. Can someone please refresh my memory?

          1 Reply Last reply Reply Quote 0
          • FrankNPrinterundefined
            FrankNPrinter
            last edited by

            Thank you sir! just what i was looking for! stand by… 🙂

            1 Reply Last reply Reply Quote 0
            • FrankNPrinterundefined
              FrankNPrinter
              last edited by

              this is a cartesian. FT5 bl touch classic Here are my config files. I had the bl touch for months and started setting it up but was an even more of a newbie then then i am now. been doing manual level and printing fine for months. I found and copied a lot of above for the other files in this thread (thanks much to all above!!!) but i think cut and paste is not the best way to go about it. Everything appears to work and i can power up and home fine but when i try to bed level via auto compensation button or macro, probe deploys then print head shoots to front right corner of machine and bl touch is solid red so no apparent error. I know something is not right but no idea what. offset on x is 22 mm and doc indicates max is 15mm so not sure if that is a hard limit. probably just a mismatch from configs above… Any help in cleaning up my config would be much appreciated!

              "Config G"

              ; BLTouch
              M307 H3 A-1 C-1 D-1
              M558 P5 X-22 Y-9 Z4 H3 F200 T5000

              "Deployprobe.g"
              M280 P3 S10 I1 ;deploy probe might need to try no I1

              "Retractprobe.g"
              M280 P3 S90 I1 ; retract probe might need to try no I1

              "bed.g"
              ; called to perform automatic bed compensation via G32

              ; Clear any bed transform
              M561

              ;# Deployprobe.g
              M280 P3 S10 I1
              ; Probe the bed at 5 points
              G30 P0 X50 Y50 H0 Z-99999
              G30 P1 X50 Y250 H0 Z-99999
              G30 P2 X250 Y250 H0 Z-99999
              G30 P3 X250 Y50 H0 Z-99999
              G30 P4 X150 Y150 H0 Z-99999 S
              ;#Retractprobe.g
              M280 P3 S90 I1

              meshlevel.g
              ; called when tool 0 is freed
              ;
              meshlevel.g
              T0 ; Select first hot end
              G91 ; Relative coordinates - for dropping Z no matter what its current height
              G1 Z4 F6000 ; Lower bed to avoid hotend dragging in bed.

              G28 Y ; Home Y axis first to avoid crash
              G28 X ; Home X

              G90 ; Absolute coordinates
              G1 X50 Y50 F3000 ; Go to first bed probe point and home the Z axis

              G28 Z ; Home Z given we are in a known safe on-bed position

              M557 X10:250 Y10:250 S40 ; Bed probe from X50 to 220 and Y50 to 220 in 40mm increments

              M401 ; Lower BLTouch probe-refrences deployprobe.g
              G29 S2 ; Clears bed height map in RepRapFirmware
              G29 ; Kicks off the Z probing across the height map
              M402 ; Retract BLTouch probe refrences probretract.g

              M374 ; Save calibration data. Default is sys/heightmap.csv

              G1 X10 Y10 F3000 ; All done - move to BACK right

              ;Still playing with mesh stuff. Also note that for some reason sending simple probe code g29 or g30 will result in a crash into hotend.
              ;Using those codes does not include deploying probe M401.
              ;So I just made a macro for meshprobing so I can do it from the machine with out web service.

              Meshlevel macro
              T0 ; Select first hot end
              G91 ; Relative coordinates - for dropping Z no matter what its current height
              G1 Z4 F6000 ; Lower bed to avoid hotend dragging in bed.

              G28 Y ; Home Y axis first to avoid crash
              G28 X ; Home X

              G90 ; Absolute coordinates
              G1 X10 Y10 F3000 ; Go to first bed probe point and home the Z axis

              G28 Z ; Home Z given we are in a known safe on-bed position

              M557 X10:220 Y10:250 S40 ; Bed probe from X10 to 220 and Y10 to 185 in 40mm increments

              M401 ; Lower BLTouch probe-refrences deployprobe.g
              G29 S2 ; Clears bed height map in RepRapFirmware
              G29 ; Kicks off the Z probing across the height map
              M402 ; Retract BLTouch probe refrences proberetract.g

              M374 ; Save calibration data. Default is sys/heightmap.csv

              G1 X10 Y10 F3000 ; All done - move to BACK right

              1 Reply Last reply Reply Quote 0
              • FrankNPrinterundefined
                FrankNPrinter
                last edited by

                update. did some testing and these 3 commands appear to work fine so assumeing config files are fubar
                M280 P3 S20 I1; test mode

                M280 P3 S10 I1 ;deploys probe

                M280 P3 S90 I1 ; retracts probe

                1 Reply Last reply Reply Quote 0
                • AaronGreenundefined
                  AaronGreen
                  last edited by

                  I'm still not 100% on the calibration because I don't have a conclusive idea of the config information.

                  If we're all using a BLTouch with the DuetWiFi, every bit of information should be the same except the bed size and carriage height parameters.

                  Currently, my Auto Home process checks X and Y, then when the probe touches the bed it sets off the Alarm and rams the bed indefinitely.

                  –------------
                  ; General preferences
                  M111 S0 ; Debugging off
                  G21 ; Work in millimetres
                  G90 ; Send absolute coordinates...
                  M83 ; ...but relative extruder moves
                  M555 P2 ; Set firmware compatibility to look like Marlin
                  M208 X0 Y0 Z0 S1 ; Set axis minima
                  M208 X340 Y250 Z280 S0 ; Set axis maxima

                  ; Endstops
                  M574 X1 Y1 Z1 S0 ; Define active low and unused microswitches
                  M558 P5 X0 Y0 Z1 H5 F200 T6000 ; Set Z probe type to modulated, the axes for which it is used and the probe + travel speeds
                  G31 X-40 Y7 Z0.9 P1 ; Set Z probe trigger value, offset and trigger height

                  ;Z-offset (Z0.9). Higher value LOWER nozzle height
                  ; Lower value RAISE nozzle height

                  M557 X10:340 Y10:240 S68 ; Define mesh grid

                  M307 H3 A-1 C-1 D-1 ; disable heater 3, which makes it available for use to control the BLTouch

                  ; Drives
                  M569 P0 S1 ; Drive 0 goes forwards - X
                  M569 P1 S0 ; Drive 1 goes backwards - Y
                  M569 P2 S0 ; Drive 2 goes backwards - Z
                  M569 P3 S1 ; Drive 3 goes forwards - Extruder

                  M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation 16
                  M92 X160 Y160 Z1600 E800 ; Set steps per mm 16

                  M566 X600 Y420 Z12 E120 ; Set maximum instantaneous speed changes (mm/min) - (JERK)

                  M203 X6000 Y6000 Z500 E400 ; Set maximum speeds (mm/min)

                  M201 X1000 Y1000 Z1000 E250 ; Set accelerations (mm/s^2)

                  M204 P1000 T1000 ; Set Max acceleration for P=printing moves and T=travel moves
                  M906 X1600 Y1600 Z900 E1000 I30 ; Set motor currents (mA) and motor idle factor in per cent
                  M84 S30 ; Set idle timeout

                  ; Heaters
                  M143 S285 ; Set maximum heater temperature to 285C
                  ;M305 P1 X101

                  M305 P1 T107000 B10832 C4.891620e-7 R4700 ; Set thermistor + ADC parameters for heater 0 - BED
                  M305 P0 T99600 B4388 C0 R4700 ; Set thermistor + ADC parameters for heater 1 - HOTEND E3d

                  M307 H0 P96.0, I3.285, D603.9 ;Bed
                  M307 H1 P1.1, I0.011, D51.5 ;Hotend pid

                  ;M307 H1 P17.8, I0.055, D74.9 ;Hotend E3d pid

                  ; Tools
                  M563 P0 D0 H1 ; Define tool 0
                  G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
                  G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

                  ; Network
                  M550 CLU ; Set machine name
                  M552 P0.0.0.0 S1 ; Enable network and acquire dynamic address via DHCP

                  ; Fans
                  M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
                  M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
                  M106 P2 S1 I0 F500 H1 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

                  ; Custom settings are not configured

                  1 Reply Last reply Reply Quote 0
                  • Sniffleundefined
                    Sniffle
                    last edited by

                    @AaronGreen:

                    I'm still not 100% on the calibration because I don't have a conclusive idea of the config information.

                    If we're all using a BLTouch with the DuetWiFi, every bit of information should be the same except the bed size and carriage height parameters.

                    Currently, my Auto Home process checks X and Y, then when the probe touches the bed it sets off the Alarm and rams the bed indefinitely.

                    –------------
                    ; General preferences
                    M111 S0 ; Debugging off
                    G21 ; Work in millimetres
                    G90 ; Send absolute coordinates...
                    M83 ; ...but relative extruder moves
                    M555 P2 ; Set firmware compatibility to look like Marlin
                    M208 X0 Y0 Z0 S1 ; Set axis minima
                    M208 X340 Y250 Z280 S0 ; Set axis maxima

                    ; Endstops
                    M574 X1 Y1 Z1 S0 ; Define active low and unused microswitches
                    M558 P5 X0 Y0 Z1 H5 F200 T6000 ; Set Z probe type to modulated, the axes for which it is used and the probe + travel speeds
                    G31 X-40 Y7 Z0.9 P1 ; Set Z probe trigger value, offset and trigger height

                    ;Z-offset (Z0.9). Higher value LOWER nozzle height
                    ; Lower value RAISE nozzle height

                    M557 X10:340 Y10:240 S68 ; Define mesh grid

                    M307 H3 A-1 C-1 D-1 ; disable heater 3, which makes it available for use to control the BLTouch

                    ; Drives
                    M569 P0 S1 ; Drive 0 goes forwards - X
                    M569 P1 S0 ; Drive 1 goes backwards - Y
                    M569 P2 S0 ; Drive 2 goes backwards - Z
                    M569 P3 S1 ; Drive 3 goes forwards - Extruder

                    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation 16
                    M92 X160 Y160 Z1600 E800 ; Set steps per mm 16

                    M566 X600 Y420 Z12 E120 ; Set maximum instantaneous speed changes (mm/min) - (JERK)

                    M203 X6000 Y6000 Z500 E400 ; Set maximum speeds (mm/min)

                    M201 X1000 Y1000 Z1000 E250 ; Set accelerations (mm/s^2)

                    M204 P1000 T1000 ; Set Max acceleration for P=printing moves and T=travel moves
                    M906 X1600 Y1600 Z900 E1000 I30 ; Set motor currents (mA) and motor idle factor in per cent
                    M84 S30 ; Set idle timeout

                    ; Heaters
                    M143 S285 ; Set maximum heater temperature to 285C
                    ;M305 P1 X101

                    M305 P1 T107000 B10832 C4.891620e-7 R4700 ; Set thermistor + ADC parameters for heater 0 - BED
                    M305 P0 T99600 B4388 C0 R4700 ; Set thermistor + ADC parameters for heater 1 - HOTEND E3d

                    M307 H0 P96.0, I3.285, D603.9 ;Bed
                    M307 H1 P1.1, I0.011, D51.5 ;Hotend pid

                    ;M307 H1 P17.8, I0.055, D74.9 ;Hotend E3d pid

                    ; Tools
                    M563 P0 D0 H1 ; Define tool 0
                    G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
                    G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

                    ; Network
                    M550 CLU ; Set machine name
                    M552 P0.0.0.0 S1 ; Enable network and acquire dynamic address via DHCP

                    ; Fans
                    M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
                    M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
                    M106 P2 S1 I0 F500 H1 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

                    ; Custom settings are not configured

                    this does not show your homeall.g and homez.g, those files are what control your homing process, and most likely the procedure needs to be changed from the G1 command to lower indefinately to G30 which will amke it stop

                    1 Reply Last reply Reply Quote 0
                    • AaronGreenundefined
                      AaronGreen
                      last edited by

                      @Sniffle:

                      this does not show your homeall.g and homez.g, those files are what control your homing process, and most likely the procedure needs to be changed from the G1 command to lower indefinitely to G30 which will make it stop

                      This is what I have…

                      FYI. My set up also uses the Z probe connection for Z GND and IN. The rest are on Expansion Pin 1, 2 and 8 respectively.

                      I'm just on a 3D printer fixation at the moment because I've pushed back a major port folio gig for a props company I need to do a presentation for.


                      ; homeall.g

                      G91

                      ; Lift Z
                      G1 Z5 F6000

                      ; Course home X and Y
                      G1 X-235 Y-215 F4000 S1

                      ; Move away from the endstops
                      G1 X5 Y5 F5000

                      ; Fine home X and Y
                      G1 X-235 Y-215 F250 S1

                      ; Absolute positioning
                      G90

                      ; Go to first bed probe point and home Z
                      T0 ; select first hot end
                      G91 ; Relative coordinates
                      G1 Z3 F200 ; Lower bed to avoid hotend dragging in bed.
                      G90 ; Absoulte coordinates
                      G1 X170 Y125 F3000 ; Go to first bed probe point and home the Z axis
                      M401 ; deploy probe
                      G30 ;probe
                      M402 ;retract probe
                      G1 Z2 F200 ; Raise bed to 2mm.


                      homez.g

                      T0 ; select first hot end
                      G91 ; Relative coordinates
                      G1 Z5 F200 ; Lower bed to avoid hotend dragging in bed.
                      G90 ; Absoulte coordinates
                      G1 X170 Y125 F3000 ; Go to first bed probe point and home the Z axis
                      M401 ; deploy probe
                      G30 ; Calibrate Z-axis
                      M402
                      G1 Z2 F200 ; Raise bed to 2mm.

                      1 Reply Last reply Reply Quote 0
                      • AaronGreenundefined
                        AaronGreen
                        last edited by

                        I also noticed that the Z probe sensor on the console doesn't show any changes when the probe rams the bed, or when the alarm goes on or off, or if the probe is triggered.

                        Maybe the signal from the probe isn't reaching the console or something…

                        1 Reply Last reply Reply Quote 0
                        • AaronGreenundefined
                          AaronGreen
                          last edited by

                          Found the immediate problem. Rookie mistake. I checked the colouring of the BLT ground wire and it changed from black to blue when it went through the Tevo connector to the board, which meant the Z probe wires were switched.

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