BL Touch Problem Duet wifi 2



  • Hi Guys, Ive tried to get my BL Touch to work with my new build.
    A Quick bit about my build.
    24v Power supply,
    Duet Wifi 2 Board,
    Nema 17 Motors @ 0.9 degrees.
    Its based off a Anet A8.

    Now onto my issue. I have got the X and Y that home properly. Yay, However for the Z axis. I have used a Genuine BL Touch from antclabs. I followed the guide that was recommended everywhere. https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_BLTouch

    I Originally used the configuration tool to configure my printer then went into the config files to match them up to the above guide.

    However, When i power up the board it does its 3 ups and downs, followed by a constant red light with the pin up.
    Then when i send the command: M280 P3 S10 I1. The pin drops with a blue light.
    The next command (M280 P3 S120 I1) Which puts it into test mode. makes the pin drop then back up, drop and back up, continually. I place a piece of card underneath to mimic the bed and the pin goes up, Z probe to 1000 which is correct, however the bl touch is now flashing red and seems to become unresponsive. not correct.

    I then tried it without the test, deployed the probe, slowly moved the z probe down to the bed, this however did exactly the same as the above, as soon as it touched the base, it went up and flashed red.

    Has anyone got any idea what this could be. Its a Genuine BL Touch V3 Smart...

    Thank you!



  • @jackismad said in BL Touch Problem Duet wifi 2:

    24v Power supply,
    Duet Wifi 2 Board,

    What duet wifi board revision is it?

    Have you seen the very recent thread about the BLTouch V3?

    I'd have to double check, but I'm pretty sure that when you trigger the pin while in self test you'll have to send the command to clear the error state and reset the pin.

    Have you done a static test of the probe using G30 yet?



  • @phaedrux
    Hi, It is Firmware version: 2.02(RTOS) (2018-12-24b1) and 1.04b revision.
    I'm now Just trying to find this V3 thread!
    With regards to a static G30 test, I haven't no, i haven't seen this recommended anywhere?



  • @Phaedrux
    I've just tried to do a G30 static test, but i get the error or needing the Z to be homed first. I cant home it without the sensor working?





  • @phaedrux
    I cant seem to do any test on it bar the fact it deploys and retracts. I can't home the z axis to preform a G30 test because the z axis proceeds to just go down past the sensor until i emergency stop then manually lift the z axis.


  • administrators

    @jackismad, to perform a plain G30 test (with no XYZP parameters), you don't need to home Z first, just X and Y.



  • @jackismad said in BL Touch Problem Duet wifi 2:

    I can't home the z axis to preform a G

    You can use G92 Z0 to set the z axis as homed, then you can jog it around.



  • @phaedrux said in BL Touch Problem Duet wifi 2:

    BLTouch V3

    Is there a V3 ?

    According to Antclabs website the latest iteration is classified as V2.2

    Versions



  • @calvinx Yes, it's quite new though. They've only just posted the manual.
    https://www.antclabs.com/manual



  • Thanks for the reponce.
    I looked at the problem with fresh eyes this morning. I Found in my Homeall.g file it was calling the wrong file on this line.
    M98 deployprobe.g ; deploy mechanical Z probe
    and
    M98 retractprobe.g ; retract mechanical Z probe
    They were both like the old style Pdeployprobe.g/Pretractprobe.g. So i changed this, set the offsets then did a static test where it worked. I then proceeded to do a test, i homed all, it deployed and lowered correctly, when it hit the bed it rose 5. I must have changed a setting somewhere to make it do that.

    The next issue i now face, is after it rises i get a warning where robe.g couldn't be found. I am assuming i am doing something incorrectly and its not searching for the full deployprobe.g or retractprobe.g

    I moved on with doing a static test recommended by @Phaedrux.
    The result was with the probe deployed using the M401, When triggered the pin rises, goes red then the pin drops again with Z-probe reading 0 both times.

    The G30 Test, it does what it is suppose to do, it lowers then when it triggers it rises 5 again. (Need to find that in the config to stop it from doing that)

    I did start the dynamic test to find the trigger height. Which i worked it out to be -0.148 lower then when it triggers. i was going to amend this when i know it is accurate with the static test working first...

    Thanks again



  • @phaedrux

    Thanks for the info.



  • Can you post your homing files and config.g?

    You don't need to use M98 Pdeployprobe.g or M401 to control the pin. When using probe type P9 for the BLTouch the Duet will control the pin as needed when you call G30, G29, etc.

    You still need to have deployprobe.g and retractprobe.g macros in the sys folder with the servo commands in them.



  • @phaedrux Yeah sure, here they are, I

    Config.g
    ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Apr 13 2019 16:24:07 GMT+0100 (British Summer Time)

    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ; Network
    M550 P"Jack" ; Set machine name
    M552 S1 ; Enable network
    ;*** Access point is configured manually via M587
    M586 P0 S1 ; Enable HTTP
    M586 P1 S1 ; Enable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S0 ; Drive 0 goes forwards
    M569 P1 S0 ; Drive 1 goes forwards
    M569 P2 S1 ; Drive 2 goes backwards
    M569 P3 S1 ; Drive 3 goes forwards
    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X160.00 Y160.00 Z8000.00 E100.00 ; Set steps per mm
    M566 X600.00 Y600.00 Z18.00 E300.00 ; Set maximum instantaneous speed changes (mm/min)
    M203 X6000.00 Y6000.00 Z180.00 E6000.00 ; Set maximum speeds (mm/min)
    M201 X1500.00 Y1500.00 Z100.00 E10000.00 ; Set accelerations (mm/s^2)
    M906 X500.00 Y500.00 Z500.00 E800.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X-50 Y-10 Z0 S1 ; Set axis minima
    M208 X220 Y220 Z200 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 S0 ; Set active low and disabled endstops

    ; Z-Probe
    M574 Z1 S2 ; Set endstops controlled by probe
    M307 H3 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
    M558 P9 H5 F120 T1500 ; Set Z probe type to bltouch and the dive height + speeds
    G31 P1 X-50 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
    M557 X20:200 Y20:200 S40 ; Define mesh grid

    ; Heaters
    M307 H0 B0 S1.00 ; Disable bang-bang mode for the bed heater and set PWM limit
    M305 P0 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S130 ; Set temperature limit for heater 0 to 130C
    M305 P1 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S275 ; Set temperature limit for heater 1 to 275C

    ; Fans
    M106 P0 S0 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

    ; 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

    ; Automatic power saving
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

    ; Custom settings are not configured

    ; Miscellaneous
    M501 ; Load saved parameters from non-volatile memory
    T0 ; Select first tool

    homeall.g
    ; homeall.g
    ; called to home all axes
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Apr 13 2019 16:24:08 GMT+0100 (British Summer Time)
    G91 ; relative positioning
    G1 Z0.5 F1500 S2 ; lift Z relative to current position
    M98 deployprobe.g ; deploy mechanical Z probe
    G1 S1 X-258 Y-235 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 X5 Y5 F1500 ; go back a few mm
    G1 S1 X-258 Y-235 F360 ; move slowly to X and Y axis endstops once more (second pass)
    G90 ; absolute positioning
    G1 X20 Y20 F1500 ; go to first bed probe point and home Z
    G30 ; home Z by probing the bed

    ; Uncomment the following lines to lift Z after probing
    ;G91 ; relative positioning
    ;G1 S2 Z5 F25 ; lift Z relative to current position
    ;G90 ; absolute positioning

    M98 retractprobe.g ; retract mechanical Z probe

    homex.g
    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Apr 13 2019 16:24:08 GMT+0100 (British Summer Time)
    G91 ; relative positioning
    G1 Z5 F1500 S2 ; lift Z relative to current position
    G1 S1 X-258 F1800 ; move quickly to X axis endstop and stop there (first pass)
    G1 X5 F1500 ; go back a few mm
    G1 S1 X-258 F360 ; move slowly to X axis endstop once more (second pass)
    G1 Z-5 F1500 S2 ; lower Z again
    G90 ; absolute positioning

    homey.g
    ; homey.g
    ; called to home the Y axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Apr 13 2019 16:24:08 GMT+0100 (British Summer Time)
    G91 ; relative positioning
    G1 Z5 F1500 S2 ; lift Z relative to current position
    G1 S1 Y-235 F1800 ; move quickly to Y axis endstop and stop there (first pass)
    G1 Y5 F1500 ; go back a few mm
    G1 S1 Y-235 F360 ; move slowly to Y axis endstop once more (second pass)
    G1 Z-5 F1500 S2 ; lower Z again
    G90 ; absolute positioning

    homez.g
    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Apr 13 2019 16:24:08 GMT+0100 (British Summer Time)
    G91 ; relative positioning
    G1 Z0 F1500 S2 ; lift Z relative to current position
    G90 ; absolute positioning
    G1 X20 Y20 F1500 ; go to first probe point
    G30 ; home Z by probing the bed

    ; Uncomment the following lines to lift Z after probing
    ;G91 ; relative positioning
    ;G1 S2 Z5 F25 ; lift Z relative to current position
    ;G90 ; absolute positioning



  • @jackismad said in BL Touch Problem Duet wifi 2:

    M98 deployprobe.g ; deploy mechanical Z probe
    M98 retractprobe.g ; retract mechanical Z probe

    You can remove those from homeall.g

    M558 H5 sets the dive height of the probe, so that explains it lifting.

    In your homeall you have G1 Z0.5 F1500 S2 ; lift Z relative to current position which only lifts it 0.5mm, if you change that to 5mm things will be a bit smoother. I also like to return the nozzle to 5mm above the bed after the probe is finished just to keep the pin sufficiently above the bed.

    If you make those changes I think things will work a bit more smoothly.

    I think your probe is working as long as it's stopping the movement of the bed when you trigger the pin by hand during a G30 probe.

    https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe to find your trigger height.



  • @phaedrux Fantasic, thank you very much, just going to go through the test page now! I have just relised aswell my Z axis steps per mm is screwed up as 5mm seems more like 50mm!! Ill get this sorted then sort out the trigger height!

    Thanks again for your help!


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.