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

Ganged motors with one direction pin #100

Closed
ereenke opened this issue Nov 8, 2021 · 10 comments
Closed

Ganged motors with one direction pin #100

ereenke opened this issue Nov 8, 2021 · 10 comments

Comments

@ereenke
Copy link

ereenke commented Nov 8, 2021

How to set up two motors per axis if their drivers are using one direction pin?

  x:  
    motor0:
      stepstick:
        direction_pin: gpio.26
        step_pin: gpio.12
        
    motor1:
      stepstick:
        direction_pin: gpio.26
        step_pin: gpio.22

[MSG:ERR: Configuration error at /machine/axes/x/motor1/stepstick: ERR: Setting up pin [gpio.26] failed. Details: Pin is already used.]␊

@ereenke ereenke changed the title Ganged Motors with one direction pin Ganged motors with one direction pin Nov 8, 2021
@bdring
Copy link
Owner

bdring commented Nov 8, 2021

We did not consider that method in the design. Are you expecting the axis to auto square?

You could try changing the second one to NO_PIN and see what happens.

@ereenke
Copy link
Author

ereenke commented Nov 8, 2021

Here's what happened:

[MSG:ERR: Validation error at /axes/x/motor1/stepstick: Direction pin must be configured.]␊
[MSG:INFO: Configuration is invalid]␊

@ereenke
Copy link
Author

ereenke commented Nov 8, 2021

I wanted to configure it as in the previous version of Grbl_Esp32: https://github.com/bdring/Grbl_Esp32/wiki/Motor-Ganging-and-Axis-Squaring

@bdring
Copy link
Owner

bdring commented Nov 8, 2021

We don't support motors without a direction pin right now. It would probably be possible, but I think we would have to limit it to the second motor only.

You could submit a feature request. The primary devs have a lot of other priorities, so it might be months before someone worked on it.

@MitchBradley
Copy link
Collaborator

As a workaround, if you have a spare GPIO pin that is not already used for some other purpose, you could assign it as the second direction pin, but not connect it to anything.

@ereenke
Copy link
Author

ereenke commented Nov 9, 2021

As a workaround, if you have a spare GPIO pin that is not already used for some other purpose, you could assign it as the second direction pin, but not connect it to anything.

It works. Thanks!

@ereenke
Copy link
Author

ereenke commented Nov 11, 2021

I found another problem. In this version, as it turned out, the connection of double limit switches is also impossible. I mean this:
This is an image

When specifying the same limit_all_pin for motor0 and motor1, an error pops up: "Pin is already used".

@MitchBradley
Copy link
Collaborator

If you have switches connected to only one GPIO, just list that GPIO under motor0 and do not list anything under motor1

@ereenke
Copy link
Author

ereenke commented Nov 11, 2021

If you have switches connected to only one GPIO, just list that GPIO under motor0 and do not list anything under motor1

I tried this. Homing on the second motor does not work. I had to connect each limit switch separately...

@bdring
Copy link
Owner

bdring commented Nov 11, 2021

We do not support auto squaring with one switch. We chose to use the stress free method where the axis does not need to be pulled out of square during homing.

This requires Fluid to use independent switches.

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

3 participants