end stop switches with duet board
May 31, 2016 10:43AM
I am at the stage of commissioning my d-bot build and have hit a snag.

I have wired the Z,X and Y mechanical switches the same as the Y switch was wired in the ormerod 1 with duet version 6

The first thing I noticed is that the led on the duet that indicate the end stop were all bright and when the switches were activated they only dimmed instead of what I would have expected that they would have completely turned off.

So if I activate say the Y switch whilst the head is moving, it does not stop and just carries on until the end of the move or it crashed into the frame.

I bought the mechanical endstops from ooznest.co.uk but I think these are designed for a powered endstop so I just used the normally closed connections which are labelled sig and vcc but perhaps because of the components on the endstop boards, the signal is not fully broken.

The original d-bot used a different control board that used 3 wire end stops.

So should the Y movement stop as soon as the Y endstop is activated?
Should the X and Y endstop be wired together so that both motors stop?

How have others connected endstops to a duet board for a coreXY machine?


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
PRZ
Re: end stop switches with duet board
May 31, 2016 12:46PM
Not all mechanical end stops work well. I set a bunch of ten and some have the NO connection not working, while the NC work.

Wiring like the Ormerod, between the two external pins of the connector is ok (central pin is 3.3V).

The board LED shall be completely extinct while circuit is open. If not, you have a problem with switches

To check that the switches are properly working you can on the console :
- Check configuration with M574 (no parameter)

actuate them and
- Check status of all endstops with M119 (no parameter)

Alternatively on the web interface, you can open the window [Settings][Machine properties] the status of end stops (and other parameter is shown), this is numbered by drive reference, so X is drive 0 . The page is automatically updated, so you don't need to enter a command.

For CoreXY endstop configuration, lkcl have made some comments in another thread and recommended to have a look on his configuration files.


Pierre

- Safety [reprap.org]
- Embedded help system for Duet and RepRap Firmware [forums.reprap.org]
- Enclosed delta printers Lily [rouzeau.net] and Lily Big [rouzeau.net]
- OpenScad delta printer simulator [github.com]
- 3D printing on my site [www.rouzeau.net]
Re: end stop switches with duet board
May 31, 2016 12:51PM
Yes the LEDs should turn off completely when the endstop switch is triggered. If they are staying on but dimming instead, then it sounds like there is a resistor connecting the SIG pin to ground when the switch is triggered, and the voltage probably isn't rising enough for the Duet to recognise the switch as being triggered.

I suggest you either use those endstop switches the way they were designed to be used (i.e. powered - but from 3.3V not 5V), or use simple NC microswitches instead. The centre pin of each endstop connector provides 3.3V.

Use the M119 command or the web interface to check whether the switches are triggered or not.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: end stop switches with duet board
June 01, 2016 08:14AM
Thanks you for the help, I now have the end stops wired correctly
I had to change the homey to be G1 Y240 F3000 S1, it was G1 Y-240.If I home Y I cannot then move in the negative direction
I have M574 X1 Y1 Z1 S1 in my config file but am not sure if that is correct seeing that Y end stop is positive.
The Z endstop will also be triggered when the bed is high, so again not sure how to let the firmware know this.

I have another problem.
I have 2 Z leadscrew motors and have wired them in series as shown in the huxley wiring instructions:-
motor 1 red to board red pin, motor 1 blue to red of motor 2, motor 1 green to board green pin, motor 1 black to green of motor 2, motor 2 blue to board blue pin, motor 2 black to board black pin

This results in the motors turning in opposite directions
How can I reslove this?


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
PRZ
Re: end stop switches with duet board
June 01, 2016 09:28AM
That is strange if your motors [edit: and cables] are identical - They absolutely should be for wiring in serie -
You can swap the wires on only one coil to reverse the direction of a stepper.

[edit] I added a note on the paragraph here :
Duet_Wiring#Multiple_steppers_wiring [reprap.org]

Edited 2 time(s). Last edit at 06/01/2016 09:40AM by PRZ.


Pierre

- Safety [reprap.org]
- Embedded help system for Duet and RepRap Firmware [forums.reprap.org]
- Enclosed delta printers Lily [rouzeau.net] and Lily Big [rouzeau.net]
- OpenScad delta printer simulator [github.com]
- 3D printing on my site [www.rouzeau.net]
Re: end stop switches with duet board
June 01, 2016 01:06PM
Quote
appjaws1
Thanks you for the help, I now have the end stops wired correctly
I had to change the homey to be G1 Y240 F3000 S1, it was G1 Y-240.If I home Y I cannot then move in the negative direction
I have M574 X1 Y1 Z1 S1 in my config file but am not sure if that is correct seeing that Y end stop is positive.
The Z endstop will also be triggered when the bed is high, so again not sure how to let the firmware know this.

If your Y endstop is at the high-Y end of the axis, you should use Y2 in the M574 command instead of Y1. That way, when the endstop is triggered the firmware will set the current position to the Y axis upper limit as set in the M208 command.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: end stop switches with duet board
June 02, 2016 05:24AM
Thank you for the help, however,
I am totally confused now.

The 2 lead screw motors are the same bought from the same supplier, but it appears that the internal wiring of one of them may be wrong, reversing one of the coils solved this and now both motors are moving in the same direction.

Regardless of if I press a - or + button on the web control, the bed always moves down. So could this still be a problem with the motor connections or am I missing something in my config file?

This is the config, please check to make sure I have everything correct.

; CoreXY config file for dc42 Duet firmware on D-bot-appjaws

M111 S0 ; Debug off
M550 appjawsxy ; Machine name (can be anything you like)
M551 Appjawsxy% ; Machine password (used for FTP connections)
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
;*** Adjust the IP address and gateway in the following 2 lines to suit your network
M552 P192.168.1.24 ; IP address (0 = use DHCP)
M554 P192.168.1.1 ; Gateway
M553 P255.255.255.0 ; Netmask
M555 P2 ; Set output to look like Marlin
;M575 P1 B57600 S1 ; Comms parameters for PanelDue

G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves

; Machine configuration
M569 P0 S1 ; Drive 0 goes forwards (change to S0 to reverse it)
M569 P1 S1 ; Drive 1 goes forwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M569 P4 S1 ; Drive 4 goes forwards
; If you use an endstop switch for Z homing, change Z0 to Z1 in the following line, and see also M558 command later in this file
M574 X1 Y2 Z1 S1 ; set endstop configuration (X and Y and endstops only, at low end, active high)
M667 S1 ; set CoreXY mode
M92 X80 Y80 Z4000 ; Set axis steps/mm
M906 X900 Y900 Z1000 E900 ; Set motor currents (mA)
M201 X800 Y800 Z15 E1000 ; Accelerations (mm/s^2)
M203 X15000 Y15000 Z100 E3600 ; Maximum speeds (mm/min)
M566 X600 Y600 Z30 E20 ; Maximum jerk speeds mm/minute
M208 X300 Y200 Z200 ; set axis maxima (adjust to suit your machine)
M208 X0 Y0 Z0 S1 ; set axis minima (adjust to make X=0 and Y=0 the edges of the bed)

; Z probe
;M558 P0 X0 Y0 Z0 ; Analog Z probe, also used for homing the Z axis

; Tool definition
; ********** Single nozzle settings **********
M563 P0 D0 H1 ; Define tool 0
M92 E430 ; Set extruder steps per mm (single nozzle)

; ********** Diamond nozzle settings **********
;M563 P0 D0:1:2 H1 ; Define tool 0 extruder 0
;M563 P1 D0:1:2 H1 ; Define tool 1 extruder 1
;M563 P2 D0:1:2 H1 ; Define tool 2 extruder 2
;M567 P0 E1.0:0.0:0.0 ; single colour - extruder 0
;M567 P1 E0.0:1.0:0.0 ; single colour - extruder 1
;M567 P2 E0.0:0.0:1.0 ; single colour - extruder 2
;M92 E430:430:430 ; Set extruder steps/mm (multiple nozzles)
;M568 P0 S1 ; turn on mixing Tool 0
;M568 P1 S1 ; turn on mixing Tool 0
;M568 P2 S1 ; turn on mixing Tool 0
;M207 S5.0 F2400 ; retract all extruders

; Thermistors and heaters
M305 P0 R1000 H40 L-26 ; H and/or L values to set the bed thermistor ADC correction
M305 P1 R1000 H40 L-26 ; H and/or L values to set the 1st nozzle thermistor ADC correction

;*** If you are using axis compensation, put the figures in the following command
;M556 S78 X0 Y0 Z0 ; Axis compensation here


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Re: end stop switches with duet board
June 02, 2016 06:36AM
It sounds to me that only one of the phases of the motors is being energised. I suggest you check both circuits from the Duet connector for continuity with a multimeter.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: end stop switches with duet board
June 02, 2016 08:03AM
Thanks, My bad, I cannot tell the difference between a blue and black wire!!!! Now I can go up and down correctly.

I saw sometime ago a post on how to calculate the steps per mm setting for a standard stepper motor with lead screw attached but I can't find it.
Can anybody point me in the right direction please.


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Re: end stop switches with duet board
June 02, 2016 12:13PM
If you know the details of the motor and lead screw, use the Prusa Calculator
Re: end stop switches with duet board
July 06, 2024 12:38PM
I recently finished upgrading a TRONXY VEHO 1000 printer to a duet board with BL Touch. he end stops work fine mechanically to the board, but when you run the homing, it doe not activate the end stops. Using M119 shows no end stops. The following is the RepRap code generated:

M574 X0 Y1 Z0 S1 ; set homing switch configuration (Y homing switch only, at low end , active high)
M574 X2 S0 P"!io3.in" ; configure X axis endstop
M574 Y2 S0 P"!io4.in" ; configure Y axis endstop
M574 Z2 S2 P"!io1.in" ; configure Z axis endstop
M574 Z2 S2 P"!io2.in" ; configure Z axis endstop

I keep getting told to go to the duet web site for answers. I have tried everything that it describes, no success. I know I am doing something wrong, but can't figure it out
Re: end stop switches with duet board
July 09, 2024 01:56AM
If you look at the M574 documentation at [docs.duet3d.com] you will see that S0 means no endstop and S2 means use the Z probe to home an axis other than Z. Your first M574 command says you are using endstop switches but doesn't give any port numbers. Your next two M574 lines say you have no X or Y endstop. So start fixing it by removing the first M574 command and changing S0 to S1 in the next two. You haven't said how you want to home Z but if it is using two endstop switches, one for each motor, change S2 to S1 in the last two lines.

Edited 1 time(s). Last edit at 07/09/2024 01:56AM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login