Need some help getting the Duet wifi + bltouch to cooperate
-
@R3play Thanks for replying. I have checked on my duet and it doesnt have a config-override.g. neither do the files i have downloaded from the reprap configurator to compare with. Is it something i need?
i dont know whether its relevant but the firmware details are below
Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
Firmware Electronics: Duet WiFi 1.02 or later
Firmware Version: 2.01(RTOS) (2018-07-26b2)
WiFi Server Version: 1.21
Web Interface Version: 1.21.2-dc42 -
If its the config json file then here it is
{"board":"duetwifi10","firmware":1.21,"nvram":false,"geometry":{"type":"cartesian","mins":[0,0,0],"maxes":[200,200,180],"delta_radius":105.6,"homed_height":250,"low_dive_height":false,"max_carriage_travel":260,"print_radius":85,"rod_length":215,"z_min":0},"drives":[{"direction":1,"microstepping":128,"microstepping_interpolation":false,"steps_per_mm":640,"instant_dv":15,"max_speed":200,"acceleration":1000,"current":855,"driver":0,"endstop_type":2,"endstop_location":2},{"direction":1,"microstepping":128,"microstepping_interpolation":false,"steps_per_mm":640,"instant_dv":15,"max_speed":200,"acceleration":1000,"current":855,"driver":1,"endstop_type":2,"endstop_location":2},{"direction":0,"microstepping":128,"microstepping_interpolation":false,"steps_per_mm":3200,"instant_dv":0.2,"max_speed":20,"acceleration":100,"current":855,"driver":2,"endstop_type":2,"endstop_location":2},{"direction":1,"microstepping":16,"microstepping_interpolation":false,"steps_per_mm":98,"instant_dv":2,"max_speed":50,"acceleration":5000,"current":855,"driver":3}],"idle":{"used":true,"factor":30,"timeout":30},"homing_speed_fast":30,"homing_speed_slow":6,"travel_speed":100,"z_dive_height":5,"slow_homing":false,"probe":{"type":"noprobe","recovery_time":0.4,"trigger_height":2.5,"trigger_value":500,"x_offset":0,"y_offset":0,"speed":2,"deploy":false,"points":[],"pwm_channel":3,"pwm_inverted":true},"num_nozzles":1,"bed_is_nozzle":false,"bed":{"present":true,"heater":0,"use_pid":true,"width":200,"length":200},"chamber":{"present":false,"heater":2,"use_pid":false},"heaters":[{"temp_limit":120,"scale_factor":100,"series":4700,"thermistor":100000,"beta":3988,"a":0.0004671239,"b":0.0002507523,"c":0,"channel":0},{"temp_limit":280,"scale_factor":100,"series":4700,"thermistor":100000,"beta":3998,"a":0.0003055357,"b":0.0002117134,"c":0,"channel":1}],"toolchange_wait_for_temperatures":true,"generate_t_code":true,"tools":[{"mix_ratio":[],"number":0,"name":"","extruders":[0],"heaters":[1],"x_offset":0,"y_offset":0,"z_offset":0}],"compensation_x_offset":25,"compensation_y_offset":25,"mesh":{"x_min":25,"x_max":175,"y_min":25,"y_max":175,"radius":85,"spacing":20},"home_first":true,"orthogonal":{"compensation":false,"height":50,"deviations":[0,0,0]},"network":{"enabled":true,"mac_address":"","name":"wanhao-di3","password":"hunter2","ssid":"thegame","ssid_password":"hunter2","dhcp":true,"ip":"192.168.1.20","netmask":"255.255.255.0","gateway":"192.168.1.254","protocols":{"http":true,"ftp":false,"telnet":false}},"fans":[{"value":30,"inverted":false,"frequency":500,"thermostatic":false,"heaters":[],"trigger_temperature":45},{"value":100,"inverted":false,"frequency":500,"thermostatic":true,"heaters":[1],"trigger_temperature":45},{"value":100,"inverted":false,"frequency":500,"thermostatic":true,"heaters":[1],"trigger_temperature":45}],"custom_settings":"","auto_save":{"enabled":false,"save_threshold":10,"resume_threshold":11,"gcodes_to_run":"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000"},"peripheral_points":3,"halfway_points":0,"calibration_factors":3,"probe_radius":85} -
@eldrad
Thats odd.
config-override.g is a system generated file.I'm no expert at the Duet firmware yet or so.
So I'll leave it now to someone more experienced than me.Maybe sending a M500 command will generate this?
-
@r3play said in Need some help getting the Duet wifi + bltouch to cooperate:
M500
that did indeed generate it
; This is a system-generated file - do not edit
; Heater model parameters
M307 H0 A193.0 C719.9 D8.7 S1.00 V0.0 B0
M307 H1 A219.0 C128.0 D13.9 S1.00 V0.0 B0
M307 H2 A340.0 C140.0 D5.5 S1.00 V0.0 B0
M307 H3 A340.0 C140.0 D5.5 S1.00 V0.0 B0
M307 H4 A340.0 C140.0 D5.5 S1.00 V0.0 B0
M307 H5 A340.0 C140.0 D5.5 S1.00 V0.0 B0
M307 H6 A340.0 C140.0 D5.5 S1.00 V0.0 B0 -
Ok, H7 isn't included in there wich is good.
I took a quick look at your config and couldn't find a error immediatly.
When sending the following commands, does the BLTouch react?
Pin Down: M280 P3 S10 I1
Pin Up: M280 P3 S90 I1
Self-Test: M280 P3 S120 I1
Reset BLTouch + Pin Up: M280 P3 S160 I1 -
@r3play As you have written they dont work.
M280 P7 S10 I1 ; Send PWM channel 7 the s10 (angle) command
M280 P7 S90 I1 ; Send PWM channel 7 the S90 (angle) command
M280 P7 S120 I1; Send PWM channel 7 the S10 (angle) command
M280 P7 S160 I1 ; Alarm Release and Push-Pin UPThe ones i have written above i have set macros for and they function ok. Looking at it i may have introduced a different p number on one or two things in testing from looking at other peoples guides.. wonder if that is a big issue
-
Try using the guide from Duet itself:
https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_BLTouchThat's how I have it wired up.
Just make sure you connect the wires correctly. (And ofcourse do this when the machine is powered off)
-
@r3play Ive changed the pins to match the ones pictured. when i try and run the commands you listed it responds with
M280 P3 S10 I1
Error: Invalid servo index 3 in M280 command -
Okay.
Now change the following in your config.g file:M307 H7 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
H7 to H3
And delete the following line in config-override.g:
M307 H3 A340.0 C140.0 D5.5 S1.00 V0.0 B0
-
@r3play right thats enabled the probe up and down etc
-
Now I would move Z up by a bit for safety and let Z home.
What happends when you manually touch the pin back up?Remember, if homing doesn't stop when doing this immediatly click on the emergency stop button in DWC! Else the head will just keep going and crash into the bed.
-
@r3play It deployed the probe that time when diving so thats a big step forward.. but the y axis was out of the way so didnt trigger... now to find where ive cocked up
-
@eldrad
okay, but did the machine stop when you manually pushed the probe in? -
@r3play missed that bit. will trigger it again and leg it to the other room to press it in
-
@eldrad that did work, then it went back up and did it again... now to find the bit to move the y axis under the probe... then working out how to mesh level lol.
-
If you clicked Home Z then it calls the homez.g file. And as you can see in that file in doesn't move the Y axis in there.
So if you would click on Home All, it will perform a home all on all axis and this move the bed under the probe.Glad it's working now!
And good luck on setting it up further -
@r3play Thanks for your help, youve been amazing. solved what i couldnt in minutes
-
Just noticed you have the following command twice in your config.g
M307 H7 A-1 C-1 D-1 ; dissable heater 7 for bltouch
Make sure you delete the following lines in there since you have it already set in the Z-Probe BLTouch section:
; Custom settings are not configured
M307 H7 A-1 C-1 D-1 ; dissable heater 7 for bltouch -
@r3play said in Need some help getting the Duet wifi + bltouch to cooperate:
M307 H7 A-1 C-1 D-1 ; dissable heater 7 for bltouch
will do, thanks
-
@r3play one more question. it throws an error Error: Invalid servo index 7 in M280 command when probing the Z but i cant find any reference to the servo 7 in config.g or the homeall or homez. any ideas?