Duet 2 wifi calibration - Anycubic Predator



  • I recently purchased a genuine duet2 wifi board from Filastruder for my new Anycubic predator delta and am working on getting it set up. Two problems seem to be persistent.

    1: I attempt to home just the X axis for the first time and get this warning:
    Warning: motor phase B may be disconnected reported by driver(s) 0

    Two of the steppers begin to move simultaneously and make really awful sounds. They then hit the endstops and continue to make said sounds but do not crash into the ceiling (endstops working). I then shut the machine off.

    2: The wifi signal will randomly disconnect then reconnect for seemingly no reason. The wifi module, sometimes upon startup, will fail to turn on completely. Cycling the powerswitch seems to solve the issue for the later.

    Here are my confi.g and homedelta.g:

    Pulled from JayUk's blog and changed a bit.
    Wired up exactly how he has his wired.
    I checked continuity for the stepper harnesses and it's good for every wire.

    
    ; Communication and general
    G90                                         	; Send absolute coordinates...
    M550 P"Anycubic Predator"                     	; Set machine name
    
    ;*** Networking
    M552 S1						; Turn network on
    
    M555 P2						; Set output to look like Marlin
    G21						; Work in millimetres
    G90						; Send absolute coordinates...
    M83						; ...but relative extruder moves
    M84 S30                                     	; Set idle timeout
    
    ; Axis and motor configuration
    M564 H0						; Allows axis movement before homing
    M569 P0 S1					; Drive 0 goes forwards
    M569 P1 S1					; Drive 1 goes forwards
    M569 P2 S1					; Drive 2 goes forwards
    M569 P3 S1					; Drive 3 goes forwards
    M574 X2 Y2 Z2 S1                            	; Ative high endstops
    M665 L440.000 R227 H456.0 B185.0 		; Delta radius, Diagonal rod length, printable radius, homed height
    M666 X0 Y0 Z0 A0.00 B0.00			; put your endstop adjustments here, or let auto calibration find them
    M350 X16 Y16 Z16 E16 I1  			; 16x microstepping with interpolation
    M92 X80.00 Y80.00 Z80.00 E380.45             	; Set steps per mm
    M906 X1000 Y1000 Z1000 E800 I60			; Set motor currents (mA) and increase idle current to 60%
    M201 X3000.00 Y3000.00 Z3000.00 E3000.00 	; Accelerations (mm/s^2)
    M203 X18000.00 Y18000.00 Z18000.00 E10000 ; Maximum speeds (mm/min)
    M566 X1200 Y1200 Z1200 E1200			; Maximum instant speed changes mm/minute
    
    ; Retraction
    M207 S4.0 F5000 R-0.025 T2500 Z0.5		; Firmware retraction
    
    ; Axis Limits
    M208 Z0 S1                                  	; Set minimum Z
    
    ; Thermistors and Heaters
    M305 P0 T100000 B4300 C0 R4700                  ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120                                	; Set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4300 C0 R4700                 	; Set thermistor + ADC parameters for heater 1
    M143 H1 S240                                	; Set temperature limit for heater 1 to 240C
    M307 H0 A137.8 C533.3 D1.5 V24.3 B0             ; Disable bang-bang mode for the bed heater and set PWM limit
    
    ; 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
    
    ; Tool definitions
    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
    
    ; Z probe and compensation definition
    M558 P4 H3 F120 T6000                       	; Set Z probe type to switch and the dive height + speeds
    G31 P500 X0 Y0 Z16.0                      	; Set Z probe trigger value, offset and trigger height
    M557 R115 S20                               	; Define mesh grid
    G29 S1	
    
    ; Custom settings are not configured
    M572 D0 S0.1					; Pressure Advance
    M591 D0 P2 C4 S1				; Activate filament sensor
    M404 N1.75 					; Set for print monitor
    M592 D0 A0.07772 B-0.00029 			; Nonlinear extrusion. Set parameters for extruder drive 0
    
    
    
    
    
    ; homedelta.g
    ; called to home all towers on a delta printer
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Tue Feb 26 2019 21:31:01 GMT+0000 (Greenwich Mean Time)
    G91                       				 ; relative positioning
    G1 S1 X470 Y470 Z470 F1800	 ; move all towers to the high end stopping at the endstops (first pass)
    G1 S2 X-5 Y-5 Z-5 F1800    		 ; go down a few mm
    G1 S1 X10 Y10 Z10 F360     	 ; move all towers up once more (second pass)
    G1 S2 X-5 Y-5 Z-5 F6000              ; move down a few mm so that the nozzle can be centred
    G90                       				 ; absolute positioning
    ;G1 X0 Y0 F6000             		 ; move X+Y to the centre
    
    
    

    Also having issues with setting up the wifi access point but one thing at a time.
    Any help would be appreciated.



  • @gperman said in Duet 2 wifi calibration - Anycubic Predator:

    Warning: motor phase B may be disconnected reported by driver(s) 0

    This is usually a bad crimp or other wiring problem. Given that this is a brand new setup, also check: https://duet3d.dozuki.com/Wiki/Choosing_and_connecting_stepper_motors#Section_Identifying_the_stepper_motor_phases

    Once you've identified the phases, be sure that they are plugged into the duet connector such that if the pins were numbered 1234, one of the phases is plugged into 12, and the other phase into 34. It doesn't matter which. If the motor turns backwards, use M569 to reverse it.



  • @gperman said in Duet 2 wifi calibration - Anycubic Predator:

    I attempt to home just the X axis for the first time and get this warning:

    Do you mean you were going to home only the X tower? Exactly what command did you issue?



  • I would highly recommend removing M564 H0 ; Allows axis movement before homing from your config.g.

    And, in your homedelta.g, the last line is commented out, it should be active:

    ;G1 X0 Y0 F6000 ; move X+Y to the centre
    G1 X0 Y0 F6000 ; move X+Y to the centre



  • @Danal said in Duet 2 wifi calibration - Anycubic Predator:

    @gperman said in Duet 2 wifi calibration - Anycubic Predator:

    Warning: motor phase B may be disconnected reported by driver(s) 0

    This is usually a bad crimp or other wiring problem. Given that this is a brand new setup, also check: https://duet3d.dozuki.com/Wiki/Choosing_and_connecting_stepper_motors#Section_Identifying_the_stepper_motor_phases

    Once you've identified the phases, be sure that they are plugged into the duet connector such that if the pins were numbered 1234, one of the phases is plugged into 12, and the other phase into 34. It doesn't matter which. If the motor turns backwards, use M569 to reverse it.

    I checked the phases initially when i first wired everything but gave it a second check just now. I have 2-3 ohms resistance on wires plugged into 1-2 and 3-4 to the duet board but no continuity to 1(or 2)-3(or 4). The steppers are 6 pin from Anycubic and worked with the trigorilla board. I pulled the pins carefully and checked the crimps. They were all perfect and held continuity through the harness going from the board to the steppers for each wire.

    I removed M564 H0 ; Allows axis movement before homing

    and activated G1 X0 Y0 F6000 ; move X+Y to the centre.

    I connected to Duet web control (always spotty connection, working on upgrading my router. Maybe that'll help.), uploaded the new config.g and homedelta.g and hit 'home all axes' button. Same results. Horrible noise from steppers, two of them move. Hit endstops and stop shy of the ceiling but continue to make noise.

    Still get the same error:
    Warning: motor phase B may be disconnected reported by driver(s) 0

    Then I turn off the power switch.



  • Phases sound OK.

    You say those are six wire motors. Normally, the two extra wires are "center taps". Which would not be used on a Duet. I'm trying to think of a good way to verify that we have the coil (phase) pairs, and not the center taps. You sound like you grasp all this pretty well, and it is probably enough for me just to say "be sure we don't have a center tap".

    Do you happen to have any other stepper motors? Or stepper drivers? Time to do some very basic "swap and verify" things...



  • Hi,

    This is how my Predator motors are wired to Duet2

    duet2 motor.jpg

    Thanks
    C



  • Ah, six, but only four populated. Forget what I said about six, above



  • @Carlo said in Duet 2 wifi calibration - Anycubic Predator:

    Hi,

    This is how my Predator motors are wired to Duet2

    duet2 motor.jpg

    Thanks
    C

    That is how mine is wired now.


  • Moderator

    @Carlo There's no way to know if that is the correct order for the wires. It depends on the internal wiring of the motor.

    You need to plug the loom into the motor, and check continuity at the connector on the Duet end. You should have continuity between pin 1 and 2, and between pin 3 and 4, but not any other eg pin 1 to 3 or 4.

    See https://duet3d.dozuki.com/Wiki/Choosing_and_connecting_stepper_motors#Section_Identifying_the_stepper_motor_phases

    Ian



  • @Danal said in Duet 2 wifi calibration - Anycubic Predator:

    Phases sound OK.

    You say those are six wire motors. Normally, the two extra wires are "center taps". Which would not be used on a Duet. I'm trying to think of a good way to verify that we have the coil (phase) pairs, and not the center taps. You sound like you grasp all this pretty well, and it is probably enough for me just to say "be sure we don't have a center tap".

    Do you happen to have any other stepper motors? Or stepper drivers? Time to do some very basic "swap and verify" things...

    I don't have spare drivers, I have a spare 4 wire stepper and a spare 6 wire, neither are the same unlabelled type steppers Anycubic supplies.



  • @gperman said in Duet 2 wifi calibration - Anycubic Predator:

    @Danal said in Duet 2 wifi calibration - Anycubic Predator:

    Phases sound OK.

    You say those are six wire motors. Normally, the two extra wires are "center taps". Which would not be used on a Duet. I'm trying to think of a good way to verify that we have the coil (phase) pairs, and not the center taps. You sound like you grasp all this pretty well, and it is probably enough for me just to say "be sure we don't have a center tap".

    Do you happen to have any other stepper motors? Or stepper drivers? Time to do some very basic "swap and verify" things...

    I don't have spare drivers, I have a spare 4 wire stepper and a spare 6 wire, neither are the same unlabelled type steppers Anycubic supplies.

    You might try one of those plugged into the Duet, just to see if it turns smoothly, or makes the same noise. I'd unplug all the other steppers, just for debugging.

    Power off when changing motor plugs, of course.



  • @droftarts
    Hi,

    I was simply illustrating the 4 vs 6 wire on the predator motors and made no mention of how to wire...

    Thanks



  • Solved one issue.

    One wire on the wire harness for the X tower wire was severed at the molex crimp underneath the insulation. Recrimped. Homes fine. Moving axes works fine.

    Still running through other procedures and need to dial in bed leveling which I haven't tried yet.

    I'm still having issues with the wifi module not turning on intermittently upon startup. For some reason, this also doesn't allow my PanelDue to send commands either. Display works but does not send commands to the main board.

    This forces me to need to reinstall the firmware but only after I open up the top case and pull the power in leads to the duet main board. Otherwise, I cannot connect, even if I unplug the external wire to the switch/power supply. It's very tedious and has happened to me 3 times since owning the board.

    DuetWifiServer.bin firmware version 2.04



  • PanelDue interface is a serial port (UART) that is part of the processor. WiFi interface is SPI. In other words, they are very separate. Both of them not responding is an indicator of a deeper problem.

    Power supply ok? Things like that.



  • @Danal

    The main switch is funky. Sometimes doesn't fully engage and will not fully boot before the system shuts off and I need to rethrow the switch. I can play around with that possibly. What should I look for/test for a bad power supply?

    If I need to connect to the main board to install new software, it seems that I can't do it without physically pulling the DC VIN wires into the board. Unplugging the external AC in plug doesn't seem to work. When connecting VIA terminal I get Incoming bluetooth module instead of usbmodem1411


  • Moderator

    @Carlo Sorry, replied thinking you were the OP.

    Ian


Log in to reply