bltouch



  • setup and calibration. having serious issues



  • I think you'll need to be a bit more specific.

    What board are you using, what printer do you have, which version of the bltouch probe and so on.

    What does your configuration look like and what is going wrong?

    This has a few tips on how to help us help you .. https://forum.duet3d.com/topic/5909/guide-for-posting-requests-for-help/1



  • i have the duet2 wifi board with
    Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
    Firmware Electronics: Duet WiFi 1.02 or later
    Firmware Version: 2.02(RTOS) (2018-12-24b1)
    WiFi Server Version: 1.22
    Web Interface Version: 1.22.6
    and the bltouch is antclabs BlTouch. code is setup this way.[0_1568887452799_download.zip](Uploading 100%)
    ; Configuration file for Duet WiFi (firmware version 2.03)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2.0.4 on Wed Sep 18 2019 22:41:11 GMT-0400 (Eastern Daylight Time)

    ; General preferences
    G90 ; send absolute coordinates...
    M83 ; ...but relative extruder moves
    M550 P"X5S" ; set printer name

    M667 S1 ; select CoreXY mode

    ; Network
    M552 S1 ; enable network
    M586 P0 S1 ; enable HTTP
    M586 P1 S0 ; disable FTP
    M586 P2 S0 ; disable Telnet

    ; Drives
    M569 P0 S1 ; physical drive 0 goes forwards
    M569 P1 S1 ; physical drive 1 goes forwards
    M569 P2 S0 ; physical drive 2 goes backwards
    M569 P3 S0 ; physical drive 3 goes backwards
    M584 X0 Y1 Z2 E3 ; set drive mapping
    M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
    M92 X80.00 Y80.00 Z400.00 E97.00 ; set steps per mm
    M566 X600.00 Y600.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
    M203 X18000.00 Y18000.00 Z180.00 E1500.00 ; set maximum speeds (mm/min)
    M201 X3000.00 Y3000.00 Z100.00 E10000.00 ; set accelerations (mm/s^2)
    M906 X950 Y950 Z950 E950 I30 ; set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X0 Y0 Z0 S1 ; set axis minima
    M208 X330 Y330 Z400 S0 ; set axis maxima

    ; Endstops
    M574 X1 Y1 Z1 S0 ; set active low and disabled endstops

    ; Z-Probe
    M307 H3 A-1 C-1 D-1 ; disable heater on PWM channel for BLTouch
    M558 P7 H5 F600 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
    M556 S50 X0 Y0 Z0 ; set orthogonal axis compensation parameters
    M557 X73:195 Y30:195 S20 ; define mesh grid

    ; Heaters
    M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
    M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 1
    M143 H1 S280 ; set temperature limit for heater 1 to 280C

    ; 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
    M106 P2 S1 I0 F500 H-1 ; set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off

    ; Tools
    M563 P0 S"hotend" D0 H1 F0 ; 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

    ; Custom settings are not defined

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

    bl touch cycles at start up but can not get it to work with command M401. i get Error: M280: Invalid servo index 7 in M280 command.or 5 if i change it to 5.



  • You need to change the M307 line under Z-Probe and make sure the H value lines up with the heater number you have connected to the bltouch.

    For example, if you have the bltouch plugged into heater 7, change the line to the following

    ; Heaters
    M307 H7 A-1 C-1 D-1 ; disable heater
    

    Then you will want to check the following files to make sure they have a consistent heater number in the M280 command as well.

    /sys/deployprobe.g
    /sys/retractprobe.g
    

  • Moderator



  • @Phaedrux i was wondering if the deploy,and retract files look right.
    ; deployprobe.g ; called to deploy a physical Z probe
    ;
    ; generated by RepRapFirmware Configuration Tool v2.0.4 on Wed Sep 18 2019 22:41:11 GMT-0400 (Eastern Daylight Time)
    M280 P5 S10 :deploy bltouch

    ; retractprobe.g
    ; called to retract a physical Z probe
    ;
    ; generated by RepRapFirmware Configuration Tool v2.0.4 on Wed Sep 18 2019 22:41:11 GMT-0400 (Eastern Daylight Time)
    M280 P5 S90 :retract bltouch


  • Moderator

    Do they work? Are you using heater pin 5? You may need to invert the command with I1



  • @Phaedrux i believe it is pin 7 or 8. heater 3 i hooked it up according to pic on website. but cant find wiring diagram.



  • @tdybare69 i get a m280 error no matter if i set it to 5,7, or 9 like everybody is recommending. really need help.


  • Moderator

    Did you read any of the links I posted?

    https://duet3d.dozuki.com/Wiki/Duet_Wiring_Diagrams

    You'll need to know what pin you're connecting to. You'll need to follow the directions to unbind that heater pin to make it available as a servo pin. And you'll need to format your deploy and retract commands to use the right pin you've chosen.



  • @Phaedrux thanks for that i have it on pin 8 like in the pic, wich is heater3.



  • @tdybare69 i really do appreciate you taking the time to help me



  • @tdybare69 said in bltouch:

    @Phaedrux thanks for that i have it on pin 8 like in the pic, wich is heater3.

    Well if you are using heater three then you need a command M307 H3 A-1 C-1 D-1 to enable use of PWM on pin 8 of the expansion connector - assuming you are correct that pin 8 is heater 3.

    And in your M280 commands you also specify heater 3 use M288 P3 ### where ### is the servo position value needed by the BLTouch.

    For example M280 P3 160 will clear a BLTouch alarm condition.

    I put all the needed commands for configuring a Z-probe using a BLTouch in a file named configprobe.g. Then I call this file where needed.

    This is what is in that file - I am using heater 7:

    M307 H7 A-1 C-1 D-1 ; disable heater 7 to enable PWM5 - PWM signal still appears on E6 connector on Duex5
    M558 P9 H5 F300 T6000 A5 S0.01 R0.2 ; set probe configuration - step 1
    G31 X-44 Y0 Z1.350 P25 ; set probe configuration - step 2
    M280 P7 S160 ; clear BLTouch alarm (if any)

    Frederick



  • @tdybare69 I reloaded dc42 frmware version DuetFirmware 2.03, then went into reprap configtool. while in there when i got to the endstop section before i clicked bltouch. i checked the box for deploy/retract option. then finished config. uploaded it here is my config
    ; Configuration file for Duet WiFi (firmware version 2.03)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2.0.4 on Sat Sep 21 2019 00:16:41 GMT-0400 (Eastern Daylight Time)

    ; General preferences
    G90 ; send absolute coordinates...
    M83 ; ...but relative extruder moves
    M550 P"Turnigy X5S" ; set printer name

    M667 S1 ; select CoreXY mode

    ; Network
    M552 S1 ; enable network
    M586 P0 S1 ; enable HTTP
    M586 P1 S0 ; disable FTP
    M586 P2 S0 ; disable Telnet

    ; Drives
    M569 P0 S1 ; physical drive 0 goes forwards
    M569 P1 S1 ; physical drive 1 goes forwards
    M569 P2 S0 ; physical drive 2 goes backwards
    M569 P3 S0 ; physical drive 3 goes backwards
    M584 X0 Y1 Z2 E3 ; set drive mapping
    M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
    M92 X80.00 Y80.00 Z400.00 E97.00 ; set steps per mm
    M566 X600.00 Y600.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
    M203 X18000.00 Y18000.00 Z180.00 E1500.00 ; set maximum speeds (mm/min)
    M201 X3000.00 Y3000.00 Z100.00 E10000.00 ; set accelerations (mm/s^2)
    M906 X950 Y950 Z950 E950 I30 ; set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X0 Y0 Z0 S1 ; set axis minima
    M208 X330 Y330 Z400 S0 ; set axis maxima

    ; Endstops
    M574 X1 Y1 Z1 S0 ; set active low and disabled endstops

    ; Z-Probe
    M307 H3 A-1 C-1 D-1 ; disable heater on PWM channel for BLTouch
    M558 P9 H10 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds
    G31 P500 X-70 Y-30 Z2.5 ; set Z probe trigger value, offset and trigger height
    M556 S50 X0 Y0 Z0 ; set orthogonal axis compensation parameters
    M557 X15:215 Y15:195 S20 ; define mesh grid

    ; Heaters
    M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
    M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 1
    M143 H1 S280 ; set temperature limit for heater 1 to 280C

    ; 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
    M106 P2 S1 I0 F500 H-1 ; set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off

    ; Tools
    M563 P0 S"HotEnd" D0 H1 F0 ; 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

    ; Custom settings are not defined

    then i went into the deploy.g file
    ; deployprobe.g
    ; called to deploy a physical Z probe
    ;
    ; generated by RepRapFirmware Configuration Tool v2.0.4 on Sat Sep 21 2019 00:16:42 GMT-0400 (Eastern Daylight Time)
    M280 P3 S10 I1

    and the retract.g
    ; retractprobe.g
    ; called to retract a physical Z probe
    ;
    ; generated by RepRapFirmware Configuration Tool v2.0.4 on Sat Sep 21 2019 00:16:42 GMT-0400 (Eastern Daylight Time)
    M280 P3 S90 I1
    now i just have to calibrate.
    thanks for all the help.



  • @tdybare69 said in bltouch:

    M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
    M305 P1 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 1

    side note B4138 is the default and is most likely wrong for your thermistors.


Log in to reply