Duet3 cant connect if z probe present
-
Hi> I have received today a nice new inductive sensor. I was using one with a sensing distance of 2 mm for about 2 months with no problem but sometimes due to a nasty overhang the probes chrases with the print so now I have decided to move into a 4 mm distance inductive probe.
But Im having this problem: the raspberry pi now cant connect to the duet (my configuration is a duet3 connected woth a raspberry pi 3)
Nothing changed on my config.g since the sensor basically uses same pins. If I discpneects the sensor, the system starts with no problem, If I connect the sensor, the DWC cant connect to the duet board.
Any ideas where the problem can be with this sensor? It is the same manufacturer than my previous sensor. voltaje requested is the same.
Sensor is connected to:M558 P5 C"^!io3.in" H5 F120 T18000
Also, I have used a second duet3, and it is not showing this problem, both of them using the same sensor, same config.g
-
@tinchus Are the two duet boards the same revision?
-
@gloomyandy yes 1.01
-
How are you powering the Pi and the Duet3?
Can you please post the results of M122 and M98 P"config.g" plus your config.g for completeness?
-
@phaedrux I cant get you the M122 results because the raspi never connects to the duet when it fails, so I can never input any command into the console.
Power: rasp is being powered independently of the duet. Duet board gets it power from a 24V source (300W) and the raspi from the same PSU but with a different cable. The jumpers on the duet board are configures to this setup. But since your comment, I just did and experiment wich is confusing to me: I jumpered the pins that are suposed to be used in case the duet board is powering up the raspi.... and that seems to solve the problem. But this is not how things are being pwered, as I said, the raspi is being powered directly from the PSU and the duet from the PSU, none of them is powering the other . Weird, so this seems to be a solution but still I think something is wrong, I dont think this is normal si ce the other board I have doesnt have this problem.
My config:
;General preferences
G90 ; Home virtual
M83 ; Movimiento relativo para extrusores
M669 K0 ; Tipo de impresora cartesina;Definición de ejes
M569 P0.0 S1 D2 ;Sentido y comporamiento del driver 0 ***
M569 P0.1 S0 D2 ;Sentido y comporamiento del driver 1 ***
M569 P0.2 S1 D2 ;Sentido y comporamiento del driver 2
M569 P0.3 S1 D2 ;Sentido y comporamiento del driver 3
M569 P0.4 S1 D2 ;Sentido y comporamiento del driver 4
M569 P0.5 S1 D2 ;Sentido y comporamiento del driver 5M584 X0.0 Y0.1 Z0.2:0.3 E0.4:0.5 ;Asignación de driver a cada eje
M350 X16 Y16 Z16 E16:16 I1;Configuración de micropasos por ejesM92 X320 Y320 Z1600 E428.25:428.25 ; seteo de pasos por motor *** X Y
M566 X400.00 Y400.00 Z300.00 E500:500 P0 ; seteo de velocidad instantanea *** X Y
M203 X15000.00 Y15000.00 Z340.00 E2400.00:2400.00 ; seteo de velocidad máxima *** X Y
M201 X1500 Y1500 Z200 E1500.00:1500.00 ; seteo aceleración *** X Y valor bajo por seguridad
;M204 P100 T100 ; seteo de aceleración de impresión y viaje/ está desactivado ya que lo definen por intefaz
M906 X4400 Y2000 Z1000 E900:900 I50 ; seteo de la corriente de cada motor (mA), con porcenaje extra para motor quieto del 30%
M84 S300 ;Seteo de espera de inactividad para desbloquear motores 300s;Distancia de cada eje
M208 X0 Y0 Z0 S1 ;Distancia mínima de los 3 ejes *** X Y
M208 X400 Y400 Z406 S0 ;Distancia mínima de los 3 ejes *** X Y;Definición de Endstops
M574 X1 S1 P"!io1.in" ; Endstop X min, en el conector "io1.in" *** X
M574 Y1 S1 P"!io0.in" ; Endstop Y min, en el conector "io0.in" *** Y
M574 Z2 S2 ; Endstop Z Min.; Sensado Z
M558 P5 C"^!io3.in" H5 F120 T15000 ; tipo de sensor de z. P5 = switch NC, con el nombre "^!io3.in", H5 cuanto baja, T:velocidad mm/minG31 P500 X-7 Y-29 Z2.45 ; seteo del valor de prueba de Z y los offset correspondiente en cada coordenada
M557 X15:330 Y10:330 S35:30 ; define los puntos mínimos y máximos del testeo en X e Y, con una distancia de 41,25mm *** X Y;Heaters
M308 S0 P"temp0" Y"thermistor" T100000 B4138 A"chamber" ; configure sensor 0 as thermistor on pin temp0
M950 H0 C"out7" T0 ; create bed heater output on out0 and map it to sensor 0
M307 H0 R0.092 C284.700:284.700 D30 S1.00 V0 B0 ; enable PID mode for the chamber heater and set PWM limit
M141 H0 ; map chamber to heater 0
M143 H0 P0 S240 ; set temperature limit for heater 0 to 240C
M570 H0 T25 ; variation temp limit of the chamber set at delta 25
M308 S3 P"spi.cs0"Y"thermocouple-max31856" K"J" A"chamber_resistorR"
; M950 H3 C"out8" T3
M143 H0 T3 S590 A2M308 S4 P"spi.cs1"Y"thermocouple-max31856" K"J" A"chamber_resistorL"
; M950 H4 C"out9" T4
M143 H0 T4 S590 A2M308 S1 P"temp1" Y"thermistor" T500000 B4723 C1.19622e-7 ; configure sensor 1 as thermistor on pin temp1
M950 H1 C"out1" T1 ; create nozzle heater output on out1 and map it to sensor 1
M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M308 S2 P"temp2" Y"thermistor" T500000 B4723 C1.19622e-7 ; configure sensor 2 as thermistor on pin temp2
M950 H2 C"out2" T2 ; create nozzle heater output on out2 and map it to sensor 2
M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit;Herramientas/Elementos calefactores
M563 P0 D0 H1 ;define tool 0/ Definición del hotend 1
G10 P0 X0 Y0 Z0 ;set tool 0 axis offsets/ Donde está posicionado el pico cuando se hace el home
G10 P0 R0 S0 ;set initial tool 0 active and standby temperatures to 0C/ Posición de espera de enfriamiento
M563 P1 D1 H2 ;define tool 1/ Definición del hotend 2
G10 P1 X-61 Y0 Z-2.05 ;set tool 1 axis offsets/ Donde está posicionado el pico cuando se hace el home
G10 P1 R0 S0 ;set initial tool 1 active and standby temperatures to 0C/ Posición de espera de enfriamiento;Otros
;Retracción
M207 S6 R0.2 F1800 ;firmware retraction/ 6mm de retracción, 0,2 de cebado para compensar la inercia
M83
; movimiento relativo en extrusores/ es la segunda vez que se llama, revisar si es necesario
;Servo
M950 S0 C"0.out9" ; servo "0" in pin out9/ Este comando puede agregar un servo, elemento calefactor o un cooler *** ver si es igual por t°
M280 P0 S17 ; move servo for T1 up default position / posicionamiento del servo
; M376 H30;Temp Max cancell mesh levelling at 30 mm
M143 S450 ; set max temp to 450 degrees for T0
M143 H2 S450 ; set max temp to 450 for T1;Stop emergency
M950 J0 C"^io8.in" ; Se define el pin de emergencia/ J:número de pin -nombre del pin
M581 P0 R0 T0 ; Assigment of the emergency stop/ R: Modo(0= default) / T: número de disparador = pin;Buzzer
M950 P5 C"out3" ; assign gpio port 5 to out3 for buzzer. control with M42 P5 SX range 0 to 1
; M671 X0:350 Y175:175 S3 ; set 2 probing points to correct any possible tilted bed; Seguridad de cierre
; M591 D1 P1 C"io5.in" S1 ; pin tapa superior stop
M950 J6 C"io5.in" ; Se define el sensor de puerta cerrada
M581 P6 T2 S0 R1 ; set trigger2.g to be excuted if door opened while printing/ T2: llama a trigger2S0:flanco down - R1:cuando está imprimiendo
M950 J7 C"io6.in" ; define top lid pin stop
M581 P7 T3 S0 R1 ; set trigger3.g to be excuted if door opened while printing;M671 X230:0 Y175:175 S5 ;Define la posicion de los tornillos de la cama para la calibración manual
M671 X350:0 Y175:175 S5 ; set 2 probing points to correct any possible tilted bedM501 ; load saved parameters from non-volatile memory
T0 ; select first tool 0Thanks in advance
-
Can you do up a wiring diagram or some photos of the wiring?
Ground loop maybe, or voltages going where they shouldn't be.
-
@phaedrux Thank you. Ground loop was the problem!
Problem solved. There was a screw in the PSU breaking the insulation. -
@tinchus thanks for letting us know what the resolution was.