Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SKR3 direction pin Z and Y2 AXIS #7

Closed
JoachimF opened this issue Dec 6, 2022 · 14 comments
Closed

SKR3 direction pin Z and Y2 AXIS #7

JoachimF opened this issue Dec 6, 2022 · 14 comments

Comments

@JoachimF
Copy link

JoachimF commented Dec 6, 2022

Hello,

I have mounted the SKR3 on the router, Y axis ganged and auto square. But I have the Z and Y2 direction pins that are not working, the board is new and never used. The wiring is NC switch between mcu pin and GND. I have tested the drivers on other axis and I have no problem. The pin stay at 0V.

Any idea?

@dresco
Copy link
Owner

dresco commented Dec 7, 2022

I'll get a logic analyser hooked up to my SKR3 board and investigate..

@dresco
Copy link
Owner

dresco commented Dec 7, 2022

Sorry, another typo, just pushed a fix;

diff --git a/Src/driver.c b/Src/driver.c
index 3e41828..49777d3 100644
--- a/Src/driver.c
+++ b/Src/driver.c
@@ -615,7 +615,7 @@ inline static __attribute__((always_inline)) void stepperSetDirOutputs (axes_sig
     dir_outbits.mask ^= settings.steppers.dir_invert.mask;
     DIGITAL_OUT(X_DIRECTION_PORT, X_DIRECTION_BIT, dir_outbits.x);
     DIGITAL_OUT(Y_DIRECTION_PORT, Y_DIRECTION_BIT, dir_outbits.y);
-    DIGITAL_OUT(Y_DIRECTION_PORT, Z_DIRECTION_BIT, dir_outbits.z);
+    DIGITAL_OUT(Z_DIRECTION_PORT, Z_DIRECTION_BIT, dir_outbits.z);
  #ifdef GANGING_ENABLED
     dir_outbits.mask ^= settings.steppers.ganged_dir_invert.mask;
   #ifdef X2_DIRECTION_PIN

The outputs look correct to me with that applied?

G0 X10
G0 Y10
G0 Z10
G0 X0
G0 Y0
G0 Z0

image

@JoachimF
Copy link
Author

JoachimF commented Dec 7, 2022

Missing M4, i'm using 4 axis XYZA plus Y2 on M4.

@dresco
Copy link
Owner

dresco commented Dec 7, 2022

Ok, reconfigured for N_AXIS=4 plus ganged Y, still looks good here?

G0 X10
G0 Y10
G0 Z10
G0 A10
G0 X0
G0 Y0
G0 Z0
G0 A0

image

@JoachimF
Copy link
Author

JoachimF commented Dec 8, 2022

Hello Dresco,

I have updated the SKR3, now the Z axis is moving in both way, but the Y2 is stuck in one direction. I tried to remove the A axis, so Y2 is now on M3, but same result.
Before A axis direction was working.

This is very strange, I have Ganged axis & Auto square, I'll try without auto square.

@dresco
Copy link
Owner

dresco commented Dec 8, 2022

Just for reference, these are the symbols I have defined (building latest master with no other updates);

image

@JoachimF
Copy link
Author

JoachimF commented Dec 8, 2022

I reload the Git, use your symbols, the Y2 dir pin seems to stay in input mode, I get 3.0V with multimeter, on Y dir pin I have 0.0V or 3.3V

@dresco
Copy link
Owner

dresco commented Dec 8, 2022

Strange, here is my binary - is that any different?
grblHAL Driver STM32H7xx.zip

@JoachimF
Copy link
Author

JoachimF commented Dec 8, 2022

Hello Jon,

My bad! The copper in the direction wire was broken! Thanks for your help, the router is working, now I have to test the dual spindle and the probe.

@dresco
Copy link
Owner

dresco commented Dec 8, 2022

The copper in the direction wire was broken! Thanks for your help, the router is working

Good news! Thanks for the update..

@JoachimF
Copy link
Author

JoachimF commented Dec 8, 2022

Here is the router !!

IMG_20221208_162725

@JoachimF JoachimF closed this as completed Dec 8, 2022
@JoachimF
Copy link
Author

JoachimF commented Dec 8, 2022

Thanks to you, I use now my 8 port logic analyser :-)

@JoachimF JoachimF reopened this Dec 8, 2022
@dresco
Copy link
Owner

dresco commented Dec 9, 2022

Cool, glad it's working for you! I keep wondering about putting a diode laser module on mine as a 2nd spindle, would be interested to hear how you get on..

@JoachimF
Copy link
Author

JoachimF commented Dec 9, 2022 via email

@dresco dresco closed this as completed Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants