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

Duet Wifi BLTouch wiring

Scheduled Pinned Locked Moved Unsolved
Duet Hardware and wiring
6
28
4.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.
  • undefined
    Agniusm
    last edited by 20 Mar 2021, 13:11

    I am about to fit BLTouch to my printer and find information which varies so just want to make sure i am doing this correctly.
    My duet wifi board is 1.02 or later electronics firmare and 2.03 firmware with 1.22.6 DWC
    I am wiring my probe as per (https://betrue3d.dk/bltouch-on-duet-wifi-configuratio-and-usage/) tutorial
    Using Z PROBE IN and GND on Z probe connector for bltouch signal and gnd and +5V and Heater 7 on the expansion connector for bltouch vcc and servo
    I will shrt 2 gnd's on bltouch as i dont have extra pins on my extruder harness.
    i have setup my config.g as follows:
    ; Endstops
    M574 X1 Y1 S1
    M591 D0 P2 C4 S1
    ; BLTouch endstop
    M574 Z1 S2

    ; Z Probe
    M558 P9 H5 F500 T4000 X0 Y0 Z1
    G31 P25 Xxx Y0 Z0.0
    M557 X10:405 Y5:395 S129
    ; BLTouch - Heaters
    M307 H7 A-1 C-1 D-1

    I have created and uploaded deployprobe.g and retractprobe.g and uploaded to sys folder
    My questions are:

    1. do i need to use resistor, i believe i am getting newest version BLTouch?
    2. do i need I parameter in deployprobe.g and retractprobe.g files (as i read somewhere that they are not needed):
      M280 P7 S10 I1
      M280 P7 S90 I1
      ?
    3. Do i need more or less parameters in M558 command if using P9 parameter instead of P5?
    undefined 1 Reply Last reply 20 Mar 2021, 15:01 Reply Quote 0
    • undefined
      Eman74
      last edited by 20 Mar 2021, 13:27

      @Agniusm said in Duet Wifi BLTouch wiring:

      https://betrue3d.dk/bltouch-on-duet-wifi-configuratio-and-usage/

      following as I'm doing same installation too, but I have a duex5 and I'm using PWM5 channel for servo function (so for me it's P5 and not P9, and I prefer to run the M307 line before)

      Emanuele

      undefined undefined 2 Replies Last reply 20 Mar 2021, 15:12 Reply Quote 1
      • undefined
        droftarts administrators @Agniusm
        last edited by droftarts 20 Mar 2021, 15:01

        @Agniusm said in Duet Wifi BLTouch wiring:

        1. do i need to use resistor, i believe i am getting newest version BLTouch?

        No, but... check your actual board version, printed on the Duet near the main microcontroller. If it’s 1.04, you’re fine. If it’s earlier, the BLTouch should work happily from 3.3V vcc rather than 5V (early ones didn’t). the current V3.1 BLTouch outputs 3.3V by default. No need for resistors or cut traces.

        1. do i need I parameter in deployprobe.g and retractprobe.g files (as i read somewhere that they are not needed):
          M280 P7 S10 I1
          M280 P7 S90 I1
          ?

        Yes. See https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_Software_setup_Duet_2_WiFi_Ethernet_running_RepRapFirmware_Num_2

        Important: In the M280 commands in the following, leave out the I1 parameter if the BLTouch is connected to a servo output on a DueX board.

        1. Do i need more or less parameters in M558 command if using P9 parameter instead of P5?

        You should use M558 P9 for BLTouch and set F, H and T parameters. X, Y and Z are deprecated. Other parameters are optional, but can be useful, depending on application. See https://duet3d.dozuki.com/Wiki/Gcode#Section_M558_in_RepRapFirmware_2_x_and_earlier

        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 20 Mar 2021, 18:16 Reply Quote 0
        • undefined
          droftarts administrators @Eman74
          last edited by droftarts 20 Mar 2021, 15:12

          @Eman74 said in Duet Wifi BLTouch wiring:

          following as I'm doing same installation too, but I have a duex5 and I'm using PWM5 channel for servo function (so for me it's P5 and not P9, and I prefer to run the M307 line before)

          Use M558 P9. Your M307 should be H5, rather than H7 (PWM5 is H7). Doesn’t matter where you put it in config.g, as it is not used until you run M280. Your M280 should be P5 P7 and no I1 (outputs are inverted on Duex).

          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 20 Mar 2021, 16:36 Reply Quote 0
          • undefined
            Eman74 @droftarts
            last edited by 20 Mar 2021, 16:36

            @droftarts I actually followed all your recommendations, with no luck.
            I'm a bit struggling here cause I double-checked the wiring, my bltouch is latst version and should support both 3.3v and 5v, I configured jumper for 3.3 logic and I'm using PWM5 but I cannot get the pin to deploy.
            I'll keep trying but I'm starting to think I should upgrade to RRF3 to get better results...

            Emanuele

            1 Reply Last reply Reply Quote 1
            • undefined
              Eman74 @droftarts
              last edited by 20 Mar 2021, 17:06

              @droftarts I just got tired of banging my head and followed steps to upgrade to 3.2.2 ...wish me luck...

              Emanuele

              undefined 1 Reply Last reply 20 Mar 2021, 23:56 Reply Quote 1
              • undefined
                Agniusm @Eman74
                last edited by 20 Mar 2021, 18:15

                @Eman74 PWM5 is Heater 7. I think you need to disable heater to use that pin. In firware 3 i think you need to use M950.
                P9 is for probe type. It was P5 mode some time ago but now duet has dedicated P9 for bltoucj. It has nothing to do with pwm5
                I would check your deploy and retract g files for syntax. My probe is comming on monday. I just set up all to start testing right away 🙂

                1 Reply Last reply Reply Quote 0
                • undefined
                  Agniusm @droftarts
                  last edited by 20 Mar 2021, 18:16

                  @droftarts thanks. I will check board revision. I suppose then i can use 3.3V of the z probe connector!?

                  undefined 1 Reply Last reply 20 Mar 2021, 21:10 Reply Quote 0
                  • undefined
                    Phaedrux Moderator @Agniusm
                    last edited by 20 Mar 2021, 21:10

                    @Agniusm said in Duet Wifi BLTouch wiring:

                    I suppose then i can use 3.3V of the z probe connector!?

                    No, the BLtouch still needs 5v.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      Phaedrux Moderator
                      last edited by 20 Mar 2021, 21:11

                      In case you wanted to update to RRF3...

                      If you still have access to DWC. Upload these 3 zip files, one at a time in the system tab. Don't extract them. Reboot after each. Use M115 to verify the firmware has been applied.
                      https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip
                      https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip
                      https://github.com/Duet3D/RepRapFirmware/releases/download/3.2.2/Duet2and3Firmware-3.2.2.zip
                      That will get your firmware and DWC up to date.

                      You can see the change logs here:
                      https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x

                      For your config, might be a good idea to run through the configurator tool and generate a fresh set for RRF3.
                      https://configtool.reprapfirmware.org/Start

                      Backup your existing config files in the sys folder in case you want to switch back to RRF3. IT’s easy to switch back and forth, just upload the zip file for the version you want and then upload your config files.

                      These documents will come in handy during the conversion.
                      https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview
                      https://duet3d.dozuki.com/Wiki/Gcode

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        droftarts administrators @Eman74
                        last edited by 20 Mar 2021, 23:56

                        @Eman74 apologies, @Agniusm is quite right, PWM5 is Heater7, so should be M307 H7 and M280 P7.

                        RRF 3.x defines things a bit differently, and you can define the actual name of the pin you want to use, eg duex.pwm5. But I recommend you use the configuration tool to take the pain out of changing your config. You can also generate a config for RRF 2.03, and just use the probe section and retractprobe.g and deployprobe.g macros.

                        Apologies too, to @Agniusm; @Phaedrux is correct, the BLTouch does need 5V vcc. I’m sure I’d read of people running them happily on 3.3V, but haven’t tested myself. The v3.1 BLTouch does output 3.3V (default) or 5V, so you don’t have to worry about resistors or cutting traces.

                        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
                        • undefined
                          Agniusm
                          last edited by 21 Mar 2021, 11:45

                          Oo f..ck, no matter, going to cut and recrimp my vcc wire for the third time 😂

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            Eman74
                            last edited by 21 Mar 2021, 17:40

                            I'm in the middle of a BLTouch nightmare... and I keep banging my head over it...

                            My BLTouch is original latest version 3.1

                            I updated to RRF 3 (lost a lot of time to get all axis and endstop working but all seems good a part from the BLTouch)

                            here is my config.g related (deployprobe and retracct are standard..):

                            M574 Z1 S2 ; configure Z-probe endstop for low end on Z
                            M558 P9 C"^zprobe.in" H5 F100 T3000 ; BLTouch connected to Z probe IN pin, free up MOD pin
                            M950 S0 C"exp.heater7" ; servo/gpio 0 is Z probe MOD pin tried also duex.pwm5 and !exp.heater7 without success
                            M280 P0 S10 ; send control signal to BLTouch through servo/gpio 0
                            G31 P25 X28 Y-61 Z0 ; BLTouch set offset
                            M557 X50:350 Y50:350 S50 ; define mesh grid

                            My Troubleshooting:

                            1. Double-checked wiring and tested connectivity with a tester;
                            2. verified jumper presence on duex 5
                            3. verified led on heater7 is switched on when I start the system
                            4. replaced BLTouch with another perfectly working on my cartesian printer with duet wifi and the behaviour is the same erroneous one, it does lights on and blink red without passing the switch-on test
                            5. tried other heaters on the duex with same result...

                            NOTE: I have 3 Z motors configured and working on Drive 5:6:7 (M584 X0 Y1 Z5:6:7 E3)

                            Any help would be really appreciated I followed all documents but somewhere something is just not right and I know it shouldn't be a huge thing cause I tried with another surely working one and it does the same thing so it's a config matter somewhere...

                            Emanuele

                            undefined 1 Reply Last reply 21 Mar 2021, 17:49 Reply Quote 1
                            • undefined
                              Phaedrux Moderator @Eman74
                              last edited by 21 Mar 2021, 17:49

                              @Eman74 probably best to start your own thread to keep things clear. It's hard to remember who said what about their setup.

                              What pin specifically are you using for the orange/yellow wire?

                              What Duet board?

                              Z-Bot CoreXY Build | Thingiverse Profile

                              undefined 2 Replies Last reply 21 Mar 2021, 17:51 Reply Quote 0
                              • undefined
                                Eman74 @Phaedrux
                                last edited by 21 Mar 2021, 17:51

                                @Phaedrux sure it's a duet wifi with a duex5 I'm going to start a thread thank you

                                Emanuele

                                1 Reply Last reply Reply Quote 1
                                • undefined
                                  Eman74 @Phaedrux
                                  last edited by 21 Mar 2021, 17:57

                                  @Phaedrux I just tried but it prevents me from posting new topics... it seems the same issue there was this morning...

                                  Emanuele

                                  undefined 1 Reply Last reply 21 Mar 2021, 18:00 Reply Quote 2
                                  • undefined
                                    Phaedrux Moderator @Eman74
                                    last edited by 21 Mar 2021, 18:00

                                    @Eman74 Try again after a few minutes.

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      Agniusm
                                      last edited by 22 Mar 2021, 11:59

                                      Received my probe today which came V3.1. My duet board is V1.02
                                      All working good.
                                      Wired as per tutorial:
                                      Probe VCC to expansion slot 5V on Duet
                                      Probe GND and Servo GND to Z Probe GND on duet
                                      Probe Signal to Z_PROBE_IN on Duet
                                      Probe Servo to expansion slot Heater7(PWM5) on Duet
                                      Used all the code in the first post.
                                      Thank you for help

                                      1 Reply Last reply Reply Quote 1
                                      • undefined
                                        Agniusm
                                        last edited by 23 Mar 2021, 15:51

                                        Just not to create another topic. I have this issue where after print, on the next print BLTouch does not deploy. I have to switch printer off, then back on for it to start working again. Is this a known issue or is there a fix for it?

                                        undefined 1 Reply Last reply 23 Mar 2021, 18:47 Reply Quote 0
                                        • undefined
                                          JayJay
                                          last edited by 23 Mar 2021, 16:07

                                          @Agniusm

                                          setup a macro to re-set the probe...

                                          M280 P0 S160 ;Re-Set the Probe BL Touch

                                          undefined 2 Replies Last reply 23 Mar 2021, 22:22 Reply Quote 0
                                          8 out of 28
                                          • First post
                                            8/28
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA