control stepper motors with two controllers

More
10 Jun 2024 16:30 #302761 by Ismacr63
Hello. I have a 3-axis milling machine controlled by parallel port (typical Chinese blue card) for my use, it works very well for me. 


I also have a controller with Arduino to control stepper motors that I use for quick tasks and not having to use the PC with LinuxCNC. 


I would like to know if there is any way to connect the two controls to control the motors with LinuxCNC or with the Arduino controller without having to change cables. 

I have to say that my intention is not to use both controls at the same time.

Please Log in or Create an account to join the conversation.

More
11 Jun 2024 10:01 #302805 by cornholio
You'd have to implement a multipole switch, one pole for each signal that needs swapping over.

Or if you only need to switch low current, a demultiplexer could be used for inputs and a multiplexer for outputs, but that's going require you designing a circuit.

Open collector transistors are a possibility but either way its going to require some work.
The following user(s) said Thank You: Ismacr63

Please Log in or Create an account to join the conversation.

More
11 Jun 2024 14:49 #302826 by JT
A plug for the step and direction signals is the simple way. With the power off just unplug the PC then plug in the Arduino

JT
The following user(s) said Thank You: Ismacr63

Please Log in or Create an account to join the conversation.

More
13 Jun 2024 19:11 #302964 by Ismacr63

A plug for the step and direction signals is the simple way. With the power off just unplug the PC then plug in the Arduino

JT

That's the first thing I thought of, but I don't like the idea of ​​changing connectors all the time.

The topic of making a circuit sounds good, but I don't have much of an idea.

Would anything happen if I connected the negative signals from the PC and Arduino together, and the positive signals directly from an external 5V power supply with the PC board turned off and vice versa?

Please Log in or Create an account to join the conversation.

More
14 Jun 2024 00:40 #302978 by cornholio
No don't do that. You would be feeding 5v into the computer, and breaking all the smoke valves.

I'd design the system so that all that has to be changed is the cable to the breakout board, so all that is required to change is one db25 connection.

So you have a situation that the grbl board or PC controls the machine via the breakout board. So one connection to change. The breakout board is powered by a separate power supply.

Please Log in or Create an account to join the conversation.

More
14 Jun 2024 01:03 - 14 Jun 2024 01:05 #302981 by PCW
Why not just use an old DB25 2 way parallel port switch?
Just make sure that there is a permanent (non-switched)
common ground between all systems:

www.amazon.com/CableWholesale-Way-Switch...Female/dp/B000I9B2K0
Last edit: 14 Jun 2024 01:05 by PCW.

Please Log in or Create an account to join the conversation.

More
01 Aug 2024 20:37 - 01 Aug 2024 20:39 #306671 by User_paulvdh_42
Often you can simply put some (schottky) diodes in series in the step and direction signals in between both "step generators" and the stepper motor drivers, but it depends on the actual hardware you have.

Another option that can work is to put some 74HC series logic in between and use that to switch signals. For example with a 74HC541 you can switch 8 digital signals on/off via the "G" inputs. You can then use a simple double throw switch to switch the "G" inputs of the TTL IC's.

In a more elaborate setup, you can control the "G" inputs with some microcontroller and you can make it as complex as you want or need.
Last edit: 01 Aug 2024 20:39 by User_paulvdh_42.

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.375 seconds
Powered by Kunena Forum