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

    BLTouch working

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    50
    266
    79.1k
    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.
    • Fickertundefined
      Fickert
      last edited by

      @Sniffle:

      David, I tried to go make a few changes to the wiki to update the info you had ??'s at, but have been blocked. If for some reason i am not unblocked I'll just make a post here to clarify the info.

      Not sure if you or David updated the Wiki but shouldn't the retract pin macro file be "M280 P3 S90 I1" ?

      1 Reply Last reply Reply Quote 0
      • Fickertundefined
        Fickert
        last edited by

        @3dprinting:

        @Fickert:

        @3dprinting:

        is it possible to test the bltouch without connecting to the power supply?
        I mean, if I plug in usb, I can use web control, but is it enough power to activate servos and all that jazz?
        I think It would work, but not sure. My boadr's sitting on the table and I'd rather get bltouch up and running before I disassemble my printer because my current z probe is not compatible.

        Supplying external 12v to the board shouldn't be difficult. An external psu or even just long wires from your psu in the printer. More importantly this thing is awesome (Duet Wifi) for that fact you don't really ever have to plug into it again.

        Yea, but I was hoping to cheat a little because my printer has a metal cabinet base I have to flip the printer over to access power, all my connectors need to be replaced to connect to the wifi, and I have an incompatible z probe right now,so when I set up the BLtouch, i gotta test it before installing the board, it's a lot of work to roll it back to 8 bit, especially since nobody within 40 miles of me sells 240k resistors, and the new bltouch doesn't come with one.

        But I'm 1 day in on the upgrade, and I alotted myself 3, so I'm not doing bad right now.

        Ahh I see. Got extra wires to run temporarily to the duet from your psu? Only gotta flip it once then 🙂

        Also the new bltouch doesn't need a 240ohm resistor. you just cut the jumper on the chip that says 3.3v logic.

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

          @Fickert:

          @Sniffle:

          David, I tried to go make a few changes to the wiki to update the info you had ??'s at, but have been blocked. If for some reason i am not unblocked I'll just make a post here to clarify the info.

          Not sure if you or David updated the Wiki but shouldn't the retract pin macro file be "M280 P3 S90 I1" ?

          I regained access to the wiki, and updated some of the info, I need to go back through and edit some more but it's more accurate now.

          1 Reply Last reply Reply Quote 0
          • 3dprinting meatheadundefined
            3dprinting meathead
            last edited by

            @Sniffle:

            @Fickert:

            @Sniffle:

            David, I tried to go make a few changes to the wiki to update the info you had ??'s at, but have been blocked. If for some reason i am not unblocked I'll just make a post here to clarify the info.

            Not sure if you or David updated the Wiki but shouldn't the retract pin macro file be "M280 P3 S90 I1" ?

            I regained access to the wiki, and updated some of the info, I need to go back through and edit some more but it's more accurate now.

            I have the new bltouch right here in my hand, and the color code for the probe output is
            black= ground
            white= signal out

            not sure if it's the right way to word it, I'd call it z+ and z-, but that might confuse with minimum and maximum heights, but I think you get the idea for the purpose of updating the wiki

            If I can learn it, than anyone can learn it.

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

              @3dprinting:

              @Sniffle:

              @Fickert:

              @Sniffle:

              David, I tried to go make a few changes to the wiki to update the info you had ??'s at, but have been blocked. If for some reason i am not unblocked I'll just make a post here to clarify the info.

              Not sure if you or David updated the Wiki but shouldn't the retract pin macro file be "M280 P3 S90 I1" ?

              I regained access to the wiki, and updated some of the info, I need to go back through and edit some more but it's more accurate now.

              I have the new bltouch right here in my hand, and the color code for the probe output is
              black= ground
              white= signal out

              not sure if it's the right way to word it, I'd call it z+ and z-, but that might confuse with minimum and maximum heights, but I think you get the idea for the purpose of updating the wiki

              I have 3 of them, my plan is to rewrite that section to have the 3 pin and the 2 pin separate

              1 Reply Last reply Reply Quote 0
              • Fickertundefined
                Fickert
                last edited by

                Okay so wonderful news, I can now deploy ad retract the pin! 🙂

                But checking endstops with m119, it shows I have a z stop at its min, when I do not even have one installed. I will have to double check my config for one. Using p5 and the probe pins I do not have to have a z end stop do I? Seems to be a bit more of an annoyance imo.

                Also with the pin up or down the m119 also stated the probe was not stopped. Shouldn't it be stopped when retracted?

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

                  If your M558 command specifies that the Z probe is used for homing, then when the probe is triggered, M119 should show both probe triggered and Z at min stop.

                  What the probe shows when retracted will depend on what the probe outputs. Deployable probes are usually designed to show that they are triggered when retracted, for safety.

                  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
                  • Fickertundefined
                    Fickert
                    last edited by

                    So I guess what exactly should my m558 command be exactly? It was "M558 P5 X0 Y0 Z1 H5 F120 T2000"

                    Is this correct still?

                    1 Reply Last reply Reply Quote 0
                    • 3dprinting meatheadundefined
                      3dprinting meathead
                      last edited by

                      Ok, so I have the probe mounted, and it deplys, retracts, and when I run the self test macro, it goes up and down endlessly like a blinker. Here's a video I made of it.
                      https://youtu.be/uu1BUnxgQMs
                      Is this how it's supposed to work? Am I missing an important step on how to see if the z probe is reading triggered in real time?
                      I don't know an easier way to do this, so here's my configuration.g, in it's entirety.
                      ; Configuration file for Duet WiFi (firmware version 1.17)
                      ; executed by the firmware on start-up
                      ;
                      ; generated by RepRapFirmware Configuration Tool on Sat Feb 18 2017 23:41:13 GMT-0500 (Eastern Standard Time)

                      ; 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 X200 Y200 Z260 S0 ; Set axis maxima

                      ; Endstops
                      M574 X1 Y1 Z0 S0 ; Define active low and unused microswitches
                      M558 P5 X0 Y0 Z1 H5 F120 T6000 ; Set Z probe type to unmodulated, the axes for which it is used and the probe + travel speeds
                      G31 P25 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height

                      ; Drives
                      M569 P0 S0 ; Drive 0 goes backwards
                      M569 P1 S0 ; Drive 1 goes backwards
                      M569 P2 S1 ; Drive 2 goes forwards
                      M569 P3 S1 ; Drive 3 goes forwards
                      M350 X16 Y16 Z16 E16 I1 ; Configure microstepping without interpolation
                      M92 X100 Y100 Z4000 E98 ; Set steps per mm
                      M566 X600 Y600 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
                      M203 X6000 Y6000 Z180 E1200 ; Set maximum speeds (mm/min)
                      M201 X500 Y20 Z250 E250 ; Set accelerations (mm/s^2)
                      M906 X800 Y800 Z800 E1000 I30 ; Set motor currents (mA) and motor idle factor in per cent
                      M84 S30 ; Set idle timeout

                      ; Heaters
                      M143 S275 ; Set maximum heater temperature to 275C
                      M301 H0 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
                      M305 P0 T100000 B3988 C0 R4700 ; Set thermistor + ADC parameters for heater 0
                      M305 P1 T100000 B-6788 C3.166739e-6 R4700 ; Set thermistor + ADC parameters for heater 1

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

                      ; Network
                      M550 PDMSDP5 ; Set machine name
                      M551
                      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
                      M307 H3 A-1 C-1 D-1
                      ; Miscellaneous
                      T0 ; Select first tool

                      thanks for the help!
                      edit:shouldnt post my password, I'll change it now. Yea, I'm a meathead

                      If I can learn it, than anyone can learn it.

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

                        post the Macro,
                        If you are using M280 P3 S120 I1 that's what it does it cycles continually until M280 P3 S160 I1 to reset the probe to it's normal operating procedure this is a built in bltouch feature and not part of reprap firmware.

                        see my post on page 2 or 4 for testing the probing of a single point.

                        1 Reply Last reply Reply Quote 1
                        • Fickertundefined
                          Fickert
                          last edited by

                          I finally got my bltouch to be usable as a probe and endstop for the z axis. Wohooo! Thanks so much guys!

                          I gotta ask too, I currently have the homing sequence to only probe once, unlike the normal endstop procedure (quickly enable endstop, back off and engage again slowly) procedure. What Homing code did you use to replicate this? Or are you using a simple one ouch method like I described?

                          1 Reply Last reply Reply Quote 0
                          • 3dprinting meatheadundefined
                            3dprinting meathead
                            last edited by

                            @Sniffle:

                            post the Macro,
                            If you are using M280 P3 S120 I1 that's what it does it cycles continually until M280 P3 S160 I1 to reset the probe to it's normal operating procedure this is a built in bltouch feature and not part of reprap firmware.

                            see my post on page 2 or 4 for testing the probing of a single point.

                            Ok, I'm up and running! probe is working great! Now gotts tune my bed, the map looks like utah, align my z axies, set z offset and enjoy

                            Thank you and everyone else who had the patience to deal with my meathead questions! There's no way I could have figured this out on my own.

                            If I can learn it, than anyone can learn it.

                            1 Reply Last reply Reply Quote 0
                            • Miasmictruthundefined
                              Miasmictruth
                              last edited by

                              After much struggle I finally was able to get the touch to work. For some reason using M558 P5 did not work for me the Z probe would always sit a 1000, so I ended up using M558 P4 and it works like a charm. Do I have an old version of the probe or something maybe?


                              ;Z Probe Setup in Config.g
                              M307 H3 A-1 C-1 D-1 ;reserve pin 21 for servo use
                              M558 P4 X0 Y0 Z1 H6 F450 T4000
                              G31 X-17 Y7 Z2.3 P25 ; Set the probe height and threshold; increase Z to decrease bed probe distance X11.0 Y0.5


                              ; Deploy Probe (having I1 at the end it did not work)
                              M280 P3 S10


                              ;Home Z
                              T0 ; select first hot end
                              G91 ; Relative coordinates
                              G1 Z5 F200 ; Lower bed to avoid hotend dragging in bed.
                              G90 ; Absoulte coordinates
                              G1 X35 Y15 F3000 ; Go to first bed probe point and home the Z axis
                              M401
                              G30 ; Calibrate Z-axis
                              M402
                              G1 Z1 F200 ; Raise bed to 1mm.


                              ;Mesh Level
                              ;Setup
                              T0 ; select first hot end
                              G91 ; Relative coordinates

                              ;Home X and Y
                              G1 Z4 F720 ; Lower bed to avoid hotend dragging in bed.
                              G1 X-350 Y-240 F3000 S1 ; move up to 240mm in the -X and -Y directions until the homing switches are triggered
                              G1 X6 Y6 F600 ; move slowly 6mm in +X and +Y directions
                              G1 X-10 Y-10 S1 ; move up to 10mm in the -X and -Y directions until the homing switches are triggered

                              ;Home Z
                              G90 ; Absoulte coordinates
                              G1 X35 Y15 Z6 F3000 ; Go to first bed probe point and home the Z axis
                              M401 ; Deploy Probe
                              G30 ; Home Z-axis

                              ;Preform Mesh level
                              M557 X10:290 Y10:190 S20 ; Bed level from X30Y12 to X299Y188 in 20mm increments

                              G29 S0 ; Auto Bed Level and create report (If I retacted probe first bad things happend)
                              M374 ; Save calibration grid
                              M402 ; Retract Probe

                              G1 X70 Y200 F3000 ; Dock after bedlevel. Move first in front of docking notch
                              G1 X70 Y235 F3000 ; Dock after bedlevel


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

                                With P4 in your M558 command, you need to connect the sensor output to the E0 endstop connector. With P5 you connect it to the IN pin on the ZProbe connector. I added a wiring table at https://duet3d.com/wiki/Connecting_a_Z_probe#BLTouch last week and updated it today, using what little information I was able to find about BLTouch on the web.

                                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
                                • Miasmictruthundefined
                                  Miasmictruth
                                  last edited by

                                  Oooh dang, I wasted so much time, I mixed it up I guess with reading to put it on E0 and using P5, I read through this forum 3 or so times trying to get all the information scattered around and still screwed it up 😕

                                  I am working on a more complete walk-through integrating the Duet with the BigBox, I plan on a section detailing the BLTouch as well.

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

                                    @claustro:

                                    Are this connections right?
                                    Can someone make a step by step description of the firmware modifications required?
                                    http://i68.tinypic.com/rle5g1.jpg

                                    these are not quite right. black and white leads should go to other port and not panel due connector. reverse pins accordingly

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

                                      Duet Wifi BL touch is not working. It blinks red and shows z probe = 1000. i cant get probe to deploy manually either. Am i missing something or is it just plain wrong? pretty sure it is wired right.
                                      config.g = ; BLTouch
                                      M307 H3 A-1 C-1 D-1
                                      M558 P5 X0 Y0 Z1 H3 F200 T5000

                                      Bed.g = ; bed.g
                                      ; called to perform automatic bed compensation via G32
                                      ; Clear any bed transform
                                      M561
                                      ; Home all axes
                                      G28
                                      ; Probe the bed at 5 points
                                      G30 P0 X15 Y15 H0 Z-99999
                                      G30 P1 X15 Y268 H0 Z-99999
                                      G30 P2 X255 Y268 H0 Z-99999
                                      G30 P3 X255 Y15 H0 Z-99999
                                      G30 P4 X128 Y138 H0 Z-99999 S

                                      Deployprobe.g

                                      M280 P3 S10 I1

                                      #Retractprobe.g
                                      M280 P3 S90 I1

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

                                        When the probe is blinking red it is in an error state and you need to use M280 P3 S160 I1 to reset the probe state

                                        You can use M280 P3 S120 I1 to run a self test, the S160 will be required to reset if from the self test

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

                                          Thanks Sniffle!, i was able to get z probe to reset with the command and learned 2 things. 1 is i have a loose connection on the 50 pin connector port and think i need a better connector type.it was alarming because bed was too high and probe post self test would fail. lowering bed before starting test and i can extend and retract no problem. The problem appears to be the z axis. after i home it, it wont move any more and appears to go backwards (ie movement +10 before home moves bed up but after homing z, hitting any of the move + buttons takes the bed to the bottom and printer errors out since no endstop on that end. anyone have any idea why z movement appears to invert after homing?

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

                                            I micro stepped through homez and am still seeing z axis movement invert after homing. I am also confused by the G92 setting. my z stop appears to be .3mm below printhead should i do G92 Z.3 or move sensor? i also tried skipping the last G90 command at end thinking that was inverting axis movement but same result. afte homing z goes backward and bed crashes into bottom of machine if i dont turn it off. even a manual move of .1 sends bed all 450mm down.
                                            ; homez.g
                                            ; called to home the Z axis

                                            G91 ; relative mode
                                            G1 Z-4 F200 ; lower bed 4mm to ensure it is below the switch trigger height
                                            G90 ; back to absolute mode
                                            G1 X128 Y141 F2000 ; put head wherever you want it to be when you home Z (omit this line if it doesn't matter)
                                            G91 ; relative mode
                                            G1 Z450 S1 F100 ; move Z up until the switch triggers
                                            G90 ; back to absolute mode
                                            G92 Z0 ; tell the firmware that we are at Z=0mm

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